I have web application and I am using jsf.
After upgrade from version 1.0.0 – 1.0.14 with the same code for some reason I cant see the value in the PieChart
Code: Select all
// 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?
);
Code: Select all
<h:panelGrid style=" margin:0px auto">
<p:graphicImage value="#{chartBean.jfreeContent}"/>
</h:panelGrid>
Thanks