Reputation: 33
This is my code
mLineChart.setDrawBorders(false);
mLineChart.setBorderWidth(0);
i try use setDrawBorders(false),but left and right have gray thin line,
how hide this line?
Upvotes: 3
Views: 1098
Reputation: 952
Try adding :
mLineChart.getAxisLeft().setDrawAxisLine(false); mLineChart.getAxisRight().setDrawAxisLine(false);
You can also check if this axis draw enabled or not by :
mLineChart.getAxisLeft().isDrawAxisLineEnabled(); mLineChart.getAxisRight().isDrawAxisLineEnabled();
Upvotes: 4
Reputation: 3189
To remove left line you need to add:
mLineChart.getAxisLeft().setEnabled(false);
To remove right line you need to add:
mLineChart.getAxisRight().setEnabled(false);
Upvotes: 0