Skip to content Skip to sidebar Skip to footer

How To Show Grid For A Custom X Axis Label: Achartengine

I want a functionality where if user clicks on the the graph and if the x co ordinate is close to our point on XY line graph then I want to show a vertical grid for that point. The

Solution 1:

You need to use:

renderer.setShowCustomTextGrid(true);

Solution 2:

Once you have the X axis value, you can add a custom text label this way:

renderer.addXTextLabel(x, "label");

Then, if you call a mChartView.repaint(), the custom text grid will be displayed.


Post a Comment for "How To Show Grid For A Custom X Axis Label: Achartengine"