Set xaxis.min such that the range of data graphed doesn't contain the maximum of the data set
Expected Behavior
The y-axis should scale to fit the data of the range specified by xaxis.min
Actual Behavior
The y-axis is scaled to fit the entire range of the dataset, not just what's within the range specified by xaxis.min. This causes the graph to be less visually descriptive
Screenshots
Upon loading the chart:
Desired autoScaleYAxis behavior, achieved by pressing a button that calls zoomX:
A workaround, wait a few milliseconds in mounted(), then call zoomX using your desired x min:
async mounted() { await new Promise(r => setTimeout(r, 1)); // call to zoomX here },
Description
Steps to Reproduce
Expected Behavior
The y-axis should scale to fit the data of the range specified by xaxis.min
Actual Behavior
The y-axis is scaled to fit the entire range of the dataset, not just what's within the range specified by xaxis.min. This causes the graph to be less visually descriptive
Screenshots
Upon loading the chart:
Desired autoScaleYAxis behavior, achieved by pressing a button that calls zoomX:
Reproduction Link
https://codesandbox.io/s/vue-basic-example-forked-c4p9vy?file=/src/components/Chart.component.vue