Trying to summarize as much as possible, we have the following use case:
A chart with two 'y' scales - both scales are created using the 'suggestedMin' and 'suggestedMax' properties
Starts to zoom in
Hides the scale and datasets of one of the 'y' scales - this is done via the native legend plugin of chartjs
Resets zoom (this.chart.resetZoom()) - zoom is reset
Observing the onZoomComplete callback, the previously hidden scale now has a 'min'=0 and 'max'=1
The expectation would be that the scale would have the initial values
If the chart scales are build using the 'min' and 'max' properties instead of the 'suggestedMin' and 'suggestedMax' (point 1), then the expectation is correctly met.
Hello,
Trying to summarize as much as possible, we have the following use case:
If the chart scales are build using the 'min' and 'max' properties instead of the 'suggestedMin' and 'suggestedMax' (point 1), then the expectation is correctly met.
Thank you.