PieChart missing value.

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
rcy
Posts: 2
Joined: Wed Oct 10, 2012 8:47 pm
antibot: No, of course not.

PieChart missing value.

Post by rcy » Thu Oct 25, 2012 10:46 pm

Hi,

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>
Any idea why

Thanks

John Matthews
Posts: 513
Joined: Wed Sep 12, 2007 3:18 pm

Re: PieChart missing value.

Post by John Matthews » Fri Oct 26, 2012 12:01 am

Cross-posted here.

Locked