PoplarTang / achartengine

Automatically exported from code.google.com/p/achartengine
0 stars 0 forks source link

Painting the grids with custom labels #406

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I customize the labels of the X axis like this:

for(int i = 0; i < values.getXNumLabels(); i++)
{
    if(i == 0)
        mRenderer.addXTextLabel(0, escala );
    else if(i == values.getXNumLabels()-1)
        mRenderer.addXTextLabel(values.getXNumLabels()-1, "end");
    else
        mRenderer.addXTextLabel(i, "label");
}

The vertical lines of the grid disappear. I set the grid lines:

mRenderer.setShowGridX(true);
mRenderer.setShowGridY(true);

And the engine just paint the lines of the grid for the Y axis.

Original issue reported on code.google.com by el.pada...@gmail.com on 25 Apr 2014 at 9:09

GoogleCodeExporter commented 9 years ago

Original comment by dandrome...@gmail.com on 20 May 2014 at 10:42