Using MPAndroidChart i tried to make following two charts. Following images are self explanatory: one is when y-axis is positive and other when it is negative(here the values of the chart aren't visible): Positive Axis Chart Negative Axis Chart
keep below code in Main thread where you initialized the chart. It will work fine.
chart.getAxisLeft().setStartAtZero(false);
chart2.getAxisRight().setStartAtZero(false);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With