Linuxkey007 / achartengine

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

using Line chart, when renderer.setXLabelsAlign(Align.LEFT), x axix label not at the the real data postion #295

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2. The X AXIS's not at the value where they are.
   for example, draw a vertical line where x value is 1. it is not draw at axix's label(not the text) of 1. the x label shift a little left of the line. 

What is the expected output? What do you see instead?

  Scale label need at the correct value's position. Currently is the Scale label not at the the real data position. 

Please provide a source code snippet that we can use to replicate the issue.

What version of the product binary library are you using?

r517;

Please provide any additional information below.

 Can fix this problem by remove following code in XYChart.java, line 364
        if (mRenderer.getXLabelsAlign() == Align.LEFT) {
          xLabelsLeft += mRenderer.getLabelsTextSize() / 4;
        }

Original issue reported on code.google.com by kelfen....@gmail.com on 10 Apr 2013 at 3:48

GoogleCodeExporter commented 9 years ago
Thanks.

Original comment by 4viewsoft@gmail.com on 13 May 2013 at 6:34