答案 0 :(得分:1)
要删除水平线,请使用
YAxis leftAxis = mChart.getAxisLeft();
leftAxis.setDrawGridLines(false);
和
YAxis rightAxis = mChart.getAxisRight();
rightAxis.setDrawGridLines(false);
要删除垂直线,请使用
XAxis xAxis = mChart.getXAxis();
xAxix.setDrawGridLines(false);
答案 1 :(得分:1)
试试这个:
XAxis xAxis = mChart.getXAxis();
xAxis.setDrawGridLines(false);
xAxis.disableGridDashedLine();
YAxis leftAxis = mChart.getAxisLeft();
leftAxis.setDrawAxisLine(false); //If you do not want Axis Line.
leftAxis.setDrawGridLines(false); //If you do not want Grid Line.
YAxis rightAxis = mChart.getAxisRight();
rightAxis.setDrawAxisLine(false); //If you do not want Axis Line.
rightAxis.setDrawGridLines(false); //If you do not want Grid Line.
希望这个答案可以帮到你。