Has anyone been able to figure out how to scale the y axis based on the brush selection? I have a graph that spans across 3 days with a brush selection that defaults to 12 hours. The plot shows the total daily rain (reset to 0.0mm at midnight) and the current rain rate (in mm/hr). Currently the both y-axis (left and right side) are scaled to the largest value in the 3 day span. I want both y-axis to independently scale and update as I move the brush selection.
You can see in my code below I have tried several things (unsuccessfully) to force the auto-scale of the y-axis by setting the in-brush config and the apex_config using (neither of which have worked):
It does the exact same thing to me too, I’ve tried everything, but the y-scale is set to the maximum value found in the contents of the graph_span: range and not as it should be in the selection_span: range.
The original library works fine: https://apexcharts.com/javascript-chart-demos/line-charts/brush-chart/
Hi all,
Anyone found a solution already for this issue?
I have a graph that once in a few days shows some bursts but for the rest very small values. And the beauty about the brush in the original Apexchart.js is that it zooms in the y-axis automatically