yuxinburen / achartengine

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

horizontal lines in YAxisMax limit appear thinner #113

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a line chart containing an horizontal line:
new double[]{0, 4, 4, 2, 2, 0}
2. Set the YAxisMax to the corresponding value:
renderer.setYAxisMax(4);
3. Set line width bigger than by default:
r.setLineWidth(3f);

What is the expected output? What do you see instead?
The expected output would be the whole chart with same width but instead of 
that, the horizontal part in the Y limit appears thinner.

What version of the product binary library are you using? 7.0

Please provide any additional information below.
If panning down the chart then it recovers the set width but logically if you 
set renderer.setPanEnabled(true, false) the bug remains permanently.

Whole project with this issue is attached.

Original issue reported on code.google.com by juliale...@gmail.com on 8 Aug 2011 at 12:17

Attachments:

GoogleCodeExporter commented 9 years ago
I understand the issue now.
Just do a renderer.setYAxisMax(4.05); or something and you will see it all.
If you set the maximum at 4 than it is really at 4. A line with a width of 3 
will be displayed between 3.995 and 4.005 or something similar, so only the 
part below 4 is visible.

Original comment by dandrome...@gmail.com on 10 Aug 2011 at 5:14

GoogleCodeExporter commented 9 years ago
I know, but as I said in the discussion list, if I have a serie of different 
charts each one with a very different YAxisMax, I cannot add a fixed value for 
all of them.

Original comment by juliale...@gmail.com on 11 Aug 2011 at 8:42