ibrahimsaputra / achartengine

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

Bar chart does't handle null values correctly #85

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This problem applies to stack and normal bar charts.

If you try to graph a value of MathHelper.NULL_VALUE, the bar to the left of to 
value in the same series is rendered incorrectly - it seems to be too skinny.

To reproduce, edit SalesStackBarChart.java (in the demo app) and change any of 
the values to MathHelper.NULL_VALUE, then view the demo.

I'm attached a screenshot - these are the values that are graphed:
    List<double[]> values = new ArrayList<double[]>();
    values.add(new double[] { 14230, MathHelper.NULL_VALUE, 14240, 15244, 15900, 19200, 22030, 21200, 19500, 15500,
        12600, 14000 });
    values.add(new double[] { 5230, 7300, 9240, 10540, 7900, 9200, 12030, 11200, 9500, 10500,
        11600, 13500 });

Original issue reported on code.google.com by candrews...@gmail.com on 17 Jun 2011 at 6:53

Attachments:

GoogleCodeExporter commented 9 years ago
Actually, there's a lot more wrong than just the skinny bar. I'm attaching a 
screenshot of the unmodified demo.

As you can see, the blue values are incorrect for all bars after the "null" 
value in in the original screenshot.

Original comment by candrews...@gmail.com on 17 Jun 2011 at 7:06

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in SVN rev. r232.

Original comment by dandrome...@gmail.com on 30 Jun 2011 at 7:15