如何在没有背景的GraphView中绘制图表?

时间:2016-03-31 10:36:48

标签: android background android-graphview

如何使graphview背景完全空白,甚至不显示x轴和y轴。 在网上找不到任何东西

enter image description here

1 个答案:

答案 0 :(得分:11)

I got my solution by adding these lines

mygraphview.getGridLabelRenderer().setGridStyle(GridLabelRenderer.GridStyle.NONE);// It will remove the background grids

 mygraphview.getGridLabelRenderer().setHorizontalLabelsVisible(false);// remove horizontal x labels and line
  mygraphview.getGridLabelRenderer().setVerticalLabelsVisible(false);
// remove vertical labels and lines