Good morning guys,
I’m trying to build a page following the example here in the apexchart website:
https://apexcharts.com/javascript-chart-demos/line-charts/brush-chart/
I copy all the options but when I set in the brush chart the options → Chart → brush → enabled to true, the chart disappear.
What am I doing wrong?
Here is the code of the main chart:
{
"chart": {
"toolbar": {
"show": false,
"autoSelected": "pan"
},
"type": "line",
"id": "chart2"
},
"colors": [
"#77B6EA"
],
"xaxis": {
"type": "datetime"
},
"yaxis": {
"decimalsInFloat": 0
}
}
and here is the code of the second chart where I should manage the selection:
{
"chart": {
"type": "area",
"id": "chart1",
"brush": {
"enabled": false,
"target": "chart2"
},
"selection": {
"enabled": true,
"xaxis": {
"min": "new Date(\u002713 Sep 2022\u0027).getTime()",
"max": "new Date(\u002716 Sep 2022\u0027).getTime()"
}
}
},
"colors": [
"#77B6EA"
],
"xaxis": {
"type": "datetime"
},
"yaxis": {
"decimalsInFloat": 0,
"max": 300,
"min": 0
}
}
Here is the screenshot of the view with the enabled option set to false
"brush": {
"enabled": false,
and here is the screenshot of the view with the enabled option set to true, it become white with no message