Is it possible to have auto-scale when zooming in a bar chart?

Problem:
I am using the preview function. The Y-axis is scaled to match the maximum value of the entire graph. Is it possible to automatically change the Y-axis scale to match the zoomed part of the graph instead of the entire graph?

Solution:
Yes, it's possible to have auto-scale when zooming. You could put autoFit:true into scaleY and remove zooming as I've done in this demo. Optionally, try using progression:'log' on scaleY.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us