MPAndroidChart
MPAndroidChart copied to clipboard
Y axis calculate max and min label not depend the current view point data, but all the data set?
I have a chart with a scrolled axis, then I set chart with code:
setAutoScaleMinMaxEnabled(true);
but the max and min value of y axis is not calculated by the current draw area, but all the dataset.
Then the result appears like below pictures:

When the chart shrinks by touched, like this:

The problem is the first pictures: the chart is so too crowded on y axis direction because the max and min label on y axis is not adjusted by the current visible left and right data.
How to resolve this problem, please?
Do you disable mAxisLeft or mAxisRight? If you don't want to show the label in YAxis, you can set isDrawLabelsEnabled as false rather than disable it.