In the MPAndroidChart line chart, I have different kinds of data. When the data is all 0s, I would like to expand y range from 0.3 (which is the default value) to 10. However, when I use y.setAxisMaxValue(20f)
, y.setAxisMinValue(-20f)
kinds of codes, it stays in the same range all the time. For instance, the normal data is like that but the data with all zeros like this picture. Then I use set axis min max values functions, the data with all zeros becomes the data I wanted as this. However, the normal data is gone to the somewhere I can't see like this graph
What can I do about this issue?