How to plot chart in GraphView with no background?
Asked Answered
A

1

10

How to make graphview background completely blank, not even show x axis and y axis. couldn't find anything on web

enter image description here

Anticipation answered 31/3, 2016 at 10:36 Comment(0)
A
12
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
Anticipation answered 4/4, 2016 at 10:29 Comment(1)
In addition, you may have to set the background to invisible: mygraphview.setBackgroundColor(Color.TRANSPARENT);Parttime

© 2022 - 2024 — McMap. All rights reserved.