I am using MPAndroidChart and I want to remove background lines at every interval displayed. Tried with this but no use. dailyTargetChart.setDrawGridBackground(false);
XAxis xl = dailyTargetChart.getXAxis();
xl.setDrawAxisLine(true);
xl.setDrawGridLines(false);
YAxis yl = dailyTargetChart.getAxisLeft();
yl.setDrawAxisLine(true);
yl.setDrawGridLines(true);
YAxis yr = dailyTargetChart.getAxisRight();
yr.setDrawAxisLine(true);
yr.setDrawGridLines(false);
Tried this also but vertical lines are still visible at intervals
Try this
horizontalBarChart.getXAxis().setEnabled(false);
horizontalBarChart.getAxisLeft().setEnabled(false);
horizontalBarChart.getAxisRight().setEnabled(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