Threaded View
-
20 Jul 2012 10:41 PM #1
Bad AsssertionError "Cannot mix positive and negative values in BarSeries"
Bad AsssertionError "Cannot mix positive and negative values in BarSeries"
Unfortunately this assert does not seem to work as expected and causes errors (in dev mode)
In my chart I have fairly large (Long) values, this conversion to a double and then multiplication seems to result in this assertion error even when there are no negative values in the data.Code:public class BarSeries<M> extends MultipleColorSeries<M> { private void calculatePaths() { ... double value = yFields.get(j).getValue(store.get(i)).doubleValue(); assert value * minY >= 0 : "Cannot mix positive and negative values in BarSeries."; ... } }
In my data I see values ranging between 0 and 5587930998, could it also be because I sometimes have a chart full of 0's ?
Success! Looks like we've fixed this one. According to our records the fix was applied for
a bug in our system
in
a recent build.


Reply With Quote