Is there a way to change the background color of the graph intent when using achartengine?
Currently, it displays all the graphs with a black background.
I looked into GraphicalActivity.java but couldnt find a solution.
Anyone?
in GraphicalView.java
‘s onDraw()
method add this line
mRenderer.setApplyBackgroundColor(true);
mRenderer.setBackgroundColor(Color.RED);
it will work
Answer:
you can add this and enjoy it!
mRenderer.setMarginsColor(Color.RED);
Answer:
The response is correct, but you don’t have to do that in the GraphicalView.java.
You should do that in your own class building the renderer for the chart.
Tags: androidandroid, graph