wangyao5 / achartengine

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

Infinite and NaN values resulted in bad looking graphs #158

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add a Infinity or NaN value to a series
2. Graph the series

What is the expected output? What do you see instead?
That series will not display at all on the graph, or that data point will 
display with strange lines.

I think the expected result would be for all series data except for the NaN's 
and Infinities to be displayed (in the above example, 1, 2, 3, and 4 should be 
displayed).

To reproduce this issue, you can edit 
demo/org/achartengine/chartdemo/demo/chart/AverageTemperatureChart.java and 
change one of the data points to Float.POSITIVE_INFINITY or 
Float.NEGATIVE_INFINITY. I'm attaching a screenshot what the graph looks like 
when the data on line 66 is changed to:
    values.add(new double[] { 12.3, Float.POSITIVE_INFINITY, 13.8, 16.8, 20.4, 24.4, 26.4, 26.1, 23.6, 20.3, 17.2,
        13.9 });

What version of the product binary library are you using?
svn revision 320

Original issue reported on code.google.com by candrews...@gmail.com on 16 Dec 2011 at 4:12

Attachments:

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

Original comment by dandrome...@gmail.com on 4 Jan 2012 at 9:28