So I created a "Null" BoxAndWhiskerItem (i.e. one with null for all the values - except the outliers values which have to be non-null), added it to a DefaultBoxAndWhiskerCategoryDataset. However when the chart is displayed this breaks because of what seems to be a bug in BoxAndWhiskerRenderer.
Code: Select all
java.lang.IllegalArgumentException: Null 'area' argument.
at org.jfree.chart.entity.ChartEntity.<init>(ChartEntity.java:116)
at org.jfree.chart.entity.CategoryItemEntity.<init>(CategoryItemEntity.java:88 )
at org.jfree.chart.renderer.category.BoxAndWhiskerRenderer.drawHorizontalItem(BoxAndWhiskerRenderer.java:399)
at org.jfree.chart.renderer.category.BoxAndWhiskerRenderer.drawItem(BoxAndWhiskerRenderer.java:258)
at com.avaya.evat.reporting.charts.rtp.RtpSummaryChart$3.drawItem(RtpSummaryChart.java:584)
at org.jfree.chart.plot.CategoryPlot.render(CategoryPlot.java:2066)
at org.jfree.chart.plot.CategoryPlot.draw(CategoryPlot.java:1904)
at org.jfree.chart.plot.CombinedDomainCategoryPlot.draw(CombinedDomainCategoryPlot.java:347)
Is there a way to do what I want without breaking the API or rewriting the class ? I presume the box should be set to be the full width of the cell..