Reputation: 313
I'm using the achartengine in my android application, so i don't know how to show the gridlines for the y axis in the bar-chart. Does anyone know how to do with that?
Bar chart grid lines for y axis image
Thanks for any helps
Clark
Upvotes: 3
Views: 3132
Reputation: 21
Answer given by Dan is correct.
You can enable by the below code.
renderer.setShowGrid(true);
renderer.setShowGridX(true);
renderer.setShowGridY(true);`
You can disable the grid by below code
renderer.setShow(false);
renderer.setShowGridX(false);
renderer.setShowGridY(false);
Upvotes: 1
Reputation: 32391
You can enable all grid lines to be displayed by calling:
renderer.setShowGrid(true);
or you can enable them separately:
renderer.setShowGridX(true);
renderer.setShowGridY(true);
However, please note that grid lines are rendered along the chart labels.
Upvotes: 4