hochileo / achartengine

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

Misalignment between data point for y axis wrt x axis #205

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Implemented the getTimeChartView from achartengine 1.0.0 (latest) version
2. When the time chart renders, the y axis points are displayed slightly ahead 
of the vertical grid line for the corresponding x axis value.
3. This only happens if the x axis data are non-sequential dates eg x1 = 
03/02/2012 x2=06/02/2012 x3=07/02/2012

What is the expected output? What do you see instead?
The y axis pts should be displayed exactly above the x axis value (coinciding 
with the vertical grid line for that x axis pt), but currently it is displayed 
slightly on the left side of the x axis value.

Please provide a source code snippet that we can use to replicate the issue.
The AChartEngine Demo's Project Ticket Status(Time Chart) itself shows this 
discrepancy.

What version of the product binary library are you using?
1.0.0 (latest version)

Please provide any additional information below.

Original issue reported on code.google.com by omkar.gh...@gmail.com on 7 Apr 2012 at 4:32

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in SVN rev. r424.
Use this to enable the behavior you need, otherwise it will still use the 
labels computation algorithm:
renderer.setXRoundedLabels(false);

Original comment by dandrome...@gmail.com on 13 Jun 2012 at 11:41