[jboss-cvs] jboss-seam/examples/itext/view ...
Norman Richards
norman.richards at jboss.com
Mon May 7 11:24:57 EDT 2007
User: nrichards
Date: 07/05/07 11:24:57
Modified: examples/itext/view chart.xhtml
Log:
use series for barchart
Revision Changes Path
1.4 +43 -13 jboss-seam/examples/itext/view/chart.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: chart.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/itext/view/chart.xhtml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- chart.xhtml 3 May 2007 02:37:08 -0000 1.3
+++ chart.xhtml 7 May 2007 15:24:57 -0000 1.4
@@ -24,6 +24,20 @@
<p:data key="baz" value="20" sectionPaint="#555555" sectionOutlineStroke="dot2" />
</p:piechart>
+ <p:piechart title="Pie Chart" width="500" height="500" legend="true" is3D="true"
+ borderBackgroundPaint="#ffffff" borderStroke="dot1" borderPaint="blue" borderVisible="false"
+ plotBackgroundPaint="#ffffff" plotBackgroundAlpha="1" plotForegroundAlpha="1"
+ plotOutlinePaint="blue" plotOutlineStroke="dot1"
+ labelBackgroundPaint="gray" labelPaint="white" labelLinkStroke="dot2"
+ direction="anticlockwise" >
+ <ui:repeat value="#{data.pieData}" var="item">
+ <p:data key="#{item.name}" value="#{item.value}" sectionPaint="#777777" sectionOutlineStroke="dot2" />
+ </ui:repeat>
+ <p:data key="foo" value="20" explodedPercent=".2" sectionPaint="#111111" />
+ <p:data key="bar" value="20" explodedPercent=".3" sectionPaint="#333333" />
+ <p:data key="baz" value="20" sectionPaint="#555555" sectionOutlineStroke="dot2" />
+ </p:piechart>
+
<p:piechart title="3d Pie Chart" width="500" height="500" legend="true" is3D="true" backgroundPaint="bar"
plotForegroundAlpha=".2">
<ui:repeat value="#{data.pieData}" var="item">
@@ -31,22 +45,36 @@
</ui:repeat>
</p:piechart>
- <p:barchart title="Bar Chart" width="500" height="500" orientation="horizontal">
+ <p:barchart title="Bar Chart3D" width="500" height="500" orientation="vertical" legend="true">
+ <p:series key="data1" seriesPaint="blue" seriesStroke="dot2"
+ seriesFillPaint="red" seriesVisibleInLegend="true"
+ seriesOutlinePaint="pink" seriesOutlineStroke="dot1">
+
<ui:repeat value="#{data.pieData}" var="item">
- <p:data columnKey="#{item.name}" rowKey="data1" value="#{item.value}" />
+ <p:data columnKey="#{item.name}" value="#{item.value}" />
</ui:repeat>
+ </p:series>
+ <p:series key="data2" seriesPaint="green" seriesStroke="dot2">
<ui:repeat value="#{data.pieData}" var="item">
- <p:data columnKey="#{item.name}" rowKey="data2" value="#{item.value}" />
+ <p:data columnKey="#{item.name}" value="#{item.value+10}" />
</ui:repeat>
+ </p:series>
</p:barchart>
<p:barchart title="Bar Chart3D" width="500" height="500" orientation="vertical" is3D="true" legend="true">
+ <p:series key="data1" seriesPaint="blue" seriesStroke="dot2"
+ seriesFillPaint="red" seriesVisibleInLegend="true"
+ seriesOutlinePaint="pink" seriesOutlineStroke="dot1">
+
<ui:repeat value="#{data.pieData}" var="item">
- <p:data columnKey="#{item.name}" rowKey="data1" value="#{item.value}" />
+ <p:data columnKey="#{item.name}" value="#{item.value}" />
</ui:repeat>
+ </p:series>
+ <p:series key="data2" seriesPaint="green" seriesStroke="dot2">
<ui:repeat value="#{data.pieData}" var="item">
- <p:data columnKey="#{item.name}" rowKey="data2" value="#{item.value}" />
+ <p:data columnKey="#{item.name}" value="#{item.value-10}" />
</ui:repeat>
+ </p:series>
</p:barchart>
@@ -68,6 +96,8 @@
<p:linechart title="Line Chart3D" width="500" height="500"
is3D="true" legend="true"
domainAxisLabel="domain" rangeAxisLabel="range" foo="bar">
+
+
<ui:repeat value="#{data.pieData}" var="item">
<p:data columnKey="#{item.name}" rowKey="data1" value="#{item.value}" />
</ui:repeat>
More information about the jboss-cvs-commits
mailing list