cagatay_civici wrote:Hi Rogers,
....................
in the new version there will not be any need for a servlet and thus jfreechart will also work with portlets. hopefully:)
.........................
.........................
...................
..
Cagatay,
<jsp:root version="1.2" xmlns:c="http://sourceforge.net/projects/jsf-comp" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
<ui:form binding="#{quickStatsChart.form1}" id="form1">
<ui:panelLayout binding="#{quickStatsChart.chartPanel}" id="chartPanel" panelLayout="flow" style="height: 400px; left: 0px; top: 0px; position: absolute; width: 600px">
<c:chart antialias="true" background="gray" atasource="#{quickStatsChart.pieDataSet}" height="300" id="chart1" is3d="true" title="Example Chart" type="pie" width="400" xlabel="X Label" ylabel="Y Label"/>
</ui:panelLayout>
public DefaultPieDataset getPieDataSet()
{
DefaultPieDataset pieDataSet = new DefaultPieDataset();
pieDataSet.setValue("A", 52);
pieDataSet.setValue("B", 18);
pieDataSet.setValue("C", 30);
return pieDataSet;
}
Return to JFreeChart - General
Users browsing this forum: Google [Bot] and 6 guests