Menu

#1012 DefaultStatisticalCategoryDataset.getRangeBounds NaN

closed-fixed
None
5
2011-10-20
2010-09-21
No

DefaultStatisticalCategoryDataset.getRangeBounds does not correctly compute the range when minimumRangeValueIncStdDev or maximumRangeValueIncStdDev is NaN. In such a case it should fallback to using the minimumRangeValue and maximumRangeValue.

Suboptimal workaround:

private class Dataset extends DefaultStatisticalCategoryDataset {
@Override
public Range getRangeBounds(boolean includeInterval) {
Range result = super.getRangeBounds(includeInterval);
if (result == null && includeInterval) {
result = super.getRangeBounds(false);
}
return result;
}
}

Discussion

  • David Gilbert

    David Gilbert - 2011-10-20

    I committed a JUnit test and a fix for this, to be included in the upcoming JFreeChart 1.0.14 release.

     
  • David Gilbert

    David Gilbert - 2011-10-20
    • assigned_to: nobody --> mungady
    • status: open --> closed-fixed
     

Log in to post a comment.