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
you can add this and enjoy it!
mRenderer.setMarginsColor(Color.RED);
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With