chartjs-chart-financial icon indicating copy to clipboard operation
chartjs-chart-financial copied to clipboard

Calculate user bounds when 'getMinMax()' is called

Open Cowjiang opened this issue 1 year ago • 0 comments

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.

Cowjiang avatar Aug 03 '23 07:08 Cowjiang