asethi1 / charts4j

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

DataUtil scale problem #36

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
If the data input array has the same value at all its indexes it results in
min == max for a Preconditions check and an Exception is raised.

java.lang.IllegalArgumentException: min >= max!
    at com.googlecode.charts4j.collect.Preconditions.checkArgument(Unknown Source)
    at com.googlecode.charts4j.DataUtil.scaleWithinRange(Unknown Source)
    at com.googlecode.charts4j.DataUtil.scale(Unknown Source)
    at com.googlecode.charts4j.DataUtil.scale(Unknown Source)

Original issue reported on code.google.com by Dieter.K...@googlemail.com on 13 Aug 2009 at 8:01