
I have a chart with lines, plines and an x-range horizontal, this x-range have to be below my x-axis.
I have tried many methods but no one seems to work, I understand that I can't access to it with pure CSS
There is a way to accomplish this ?
I'm on a Vue application
This is my code:
X-range is in the last serie
Thanks for your help !
Code: Select all
productionChartOptions: any = {
chart: {
marginTop: 70,
},
legend: {
useHTML: true,
x: 0,
y: 0,
},
xAxis: [
{
type: "datetime",
visible: true,
offset: 50,
},
{
type: "datetime",
visible: false,
linkedTo: 0,
},
],
yAxis: [
{
min: 0,
startOnTick: false,
endOnTick: false,
maxPadding: 0,
gridLineWidth: 0,
opposite: true,
lineWidth: 0,
title: {
text: null,
},
labels: {
style: {
color: "#2C2C2C",
fontWeight: "lighter",
},
},
},
{
oposite: false,
visible: false,
},
],
series: [
{
xAxis: 0,
type: "column",
name: "Production",
data: [],
color: "#60C0FF",
borderRadius: 9,
tooltip: {
valueSuffix: "MWh",
},
},
{
xAxis: 0,
type: "spline",
name: "Budget",
data: [],
color: "#666",
lineWidth: 1,
marker: {
lineWidth: 2,
lineColor: "#FFF",
fillColor: "#7098A7",
radius: 8,
},
tooltip: {
valueSuffix: "MWh",
},
},
{
yAxis: 1,
xAxis: 1,
name: "PerformanceStateChange",
type: "xrange",
pointWidth: 20,
borderRadius: 0,
borderWidth: 0,
showInLegend: false,
enableMouseTracking: false,
dataLabels: {
align: "right",
format: "{y} points",
},
className: "x-range-bla",
// pointPlacement: "between",
},
],
};