chartjs / chartjs-chart-financial

Chart.js module for charting financial securities
MIT License
720 stars 195 forks source link

Calculate user bounds when 'getMinMax()' is called #148

Closed Cowjiang closed 4 months ago

Cowjiang commented 11 months ago

In the Financial Chart, thx y-axis remains unchanged when I use chatjs-plugin-zoom to zoom in. That's because the FinancialController overrides the method 'getMinMax()' and it doesn't calculate the range of data points which in user bounds.

So I add a method to get min/max values by scale.getUserBounds() and a filter for parsedDatas.