1
votes

I have web application with jsf.

After upgrade jfreechart from version 1.0.0 – 1.0.14 with the same code for some reason I cant see the value inside the PieChart.

// create a dataset...
    DefaultPieDataset dataset = new DefaultPieDataset();
    dataset.setValue("Category 1", new Integer(2));
    dataset.setValue("Category 2", new Double(27.9));
    dataset.setValue("Category 3", new Double(79.5));
 // create a chart...
    JFreeChart jfreechart = ChartFactory.createPieChart(
            "Sample Pie Chart",
            dataset,
            true, // legend?
            true, // tooltips?
            false // URLs?
            );

 <h:panelGrid style=" margin:0px auto">
    <p:graphicImage value="#{chartBean.jfreeContent}"/> 
</h:panelGrid>

Any idea why

Thanks

1
Cross-posted here. - trashgod

1 Answers

1
votes

I changed line 89 in PieChartDemo1 and saw no discernible difference.

dataset.setValue("Two", new Integer(10));