yuxinburen / achartengine

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

Bars drawn with different thickness for some dataset. #186

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Randomly seen for certain datasets.

What is the expected output? What do you see instead?
All bars should be drawn of equal thickness.

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

What version of the product binary library are you using?
achartengine-0.7.0.362

Please provide any additional information below.
In the method protected float getHalfDiffX(float[] points, int length, int 
seriesNr)
The halfDiffX is made default to 10 if points[length - 2] - points[0] is 0. But 
in case of a stacked bar chart we are getting points[length - 2] - points[0] = 
0 sometimes and therefore seeing few bars of default thickness while others are 
of desired thickness.
so in case when points[length - 2] = points[0] I have defaulted the halfdiffX 
to the HalfdiffX got for other bars of the dataset instead of 10.

Original issue reported on code.google.com by vikramra...@gmail.com on 7 Feb 2012 at 3:54

Attachments:

GoogleCodeExporter commented 9 years ago
Hi please find the attached patch

Original comment by vikramra...@gmail.com on 7 Feb 2012 at 3:57

Attachments:

GoogleCodeExporter commented 9 years ago
Can you please add some code showing the problem that your patch is fixing?

Original comment by dandrome...@gmail.com on 18 May 2012 at 3:39

GoogleCodeExporter commented 9 years ago

Original comment by dandrome...@gmail.com on 8 Jan 2013 at 4:30