Hello,
I've some problem with the new JFreeChart 0.9.5 ChartFactory.createVerticalBarChart3D method:
DefaultCategoryDataset categoryDataset;
JFreeChart chart;
categoryDataset = new DefaultCategoryDataset();
categoryDataset.addValue(1d, "PIPPO", "PIPPO");
categoryDataset.addValue(2d, "PLUTO", "PLUTO");
try {
//line 98
chart = ChartFactory.createVerticalBarChart3D(
"zzz",
"xxx",
"yyy",
categoryDataset,
true,
false,
false);
...
I have a
java.lang.IndexOutOfBoundsException: Index: -1, Size: 1
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at com.jrefinery.data.DefaultKeyedValues.getValue(Unknown Source)
at com.jrefinery.data.DefaultKeyedValues.getValue(Unknown Source)
at com.jrefinery.data.DefaultKeyedValues2D.getValue(Unknown Source)
at com.jrefinery.data.DefaultCategoryDataset.getValue(Unknown Source)
at com.jrefinery.data.DatasetUtilities.getRangeExtent(Unknown Source)
at com.jrefinery.chart.plot.VerticalCategoryPlot.getVerticalDataRange(Unknown Source)
at com.jrefinery.chart.axis.VerticalNumberAxis.autoAdjustRange(Unknown Source)
at com.jrefinery.chart.axis.VerticalNumberAxis.configure(Unknown Source)
at com.jrefinery.chart.axis.Axis.setPlot(Unknown Source)
at com.jrefinery.chart.plot.CategoryPlot.<init>(Unknown Source)
at com.jrefinery.chart.plot.VerticalCategoryPlot.<init>(Unknown Source)
at com.jrefinery.chart.ChartFactory.createVerticalBarChart3D(Unknown Source)
at com.ras.worksite.proiezionepensione.servlet.JFChartProiezionePensione.createChart(JFChartProiezionePensione.java:98)
at com.ras.worksite.proiezionepensione.servlet.JFChartProiezionePensione.service(JFChartProiezionePensione.java:154)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
What's wrong?
Thank you
createVerticalBarChart3D problem
Re: createVerticalBarChart3D problem
I've added this to the bug database on SourceForge (id 684471). Hopefully I will get it fixed later today, because it looks like it could affect a lot of things...
Regards,
Dave Gilbert
Regards,
Dave Gilbert