SourceForge has been redesigned. Learn more.
Close

#13 Eastwood fails on numbers in scientific notation

closed
nobody
None
5
2009-05-01
2009-04-24
Andrea Aime
No

The following request:
http://chart.apis.google.com/chart?cht=bvs&chd=t:1.1430602E7&chds=0,30000000&chs=100x200
works fine against Google charts, but fails against Eastwood with the following stack trace:

java.lang.IllegalArgumentException: 'data' contains bad characters.
at org.jfree.eastwood.DataUtilities.parseTextData(DataUtilities.java:190)
at org.jfree.eastwood.DataUtilities.parseCategoryDataset(DataUtilities.java:376)
at org.jfree.eastwood.ChartEngine.buildChart(ChartEngine.java:420)
at org.jfree.eastwood.ChartEngine.buildChart(ChartEngine.java:130)

Discussion

  • Andrea Aime

    Andrea Aime - 2009-05-01

    While fixing this I also noticed the negative number -> null was not respected for the last element in the list, and for the first after a pipe (|).
    Added tests and fixed this as well.

     
  • Andrea Aime

    Andrea Aime - 2009-05-01

    Fixed at r75

     
  • Andrea Aime

    Andrea Aime - 2009-05-01
    • status: open --> closed
     

Log in to post a comment.