[jboss-cvs] jboss-seam/examples/itext/view ...
Norman Richards
norman.richards at jboss.com
Sat Apr 28 19:50:42 EDT 2007
User: nrichards
Date: 07/04/28 19:50:42
Modified: examples/itext/view chart.xhtml
Log:
more charts
Revision Changes Path
1.2 +31 -0 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.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- chart.xhtml 26 Apr 2007 23:16:46 -0000 1.1
+++ chart.xhtml 28 Apr 2007 23:50:42 -0000 1.2
@@ -35,5 +35,36 @@
<p:data columnKey="#{item.name}" rowKey="data2" value="#{item.value}" />
</ui:repeat>
</p:barchart>
+
+
+ <p:linechart title="Line Chart" width="500" height="500"
+ domainAxisLabel="domain" rangeAxisLabel="range">
+ <ui:repeat value="#{data.pieData}" var="item">
+ <p:data columnKey="#{item.name}" rowKey="data1" value="#{item.value}" />
+ </ui:repeat>
+
+ <ui:repeat value="#{data.pieData}" var="item">
+ <p:data columnKey="#{item.name}" rowKey="data2" value="#{item.value*1.4}" />
+ </ui:repeat>
+
+ <ui:repeat value="#{data.pieData}" var="item">
+ <p:data columnKey="#{item.name}" rowKey="data3" value="#{item.value*.8+6.0}" />
+ </ui:repeat>
+ </p:linechart>
+
+ <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>
+ <p:data columnKey="foo" rowKey="data1" value="75.1" />
+
+ <ui:repeat value="#{data.pieData}" var="item">
+ <p:data columnKey="#{item.name}" rowKey="data2" value="#{item.value+5}" />
+ </ui:repeat>
+ <p:data columnKey="foo" rowKey="data2" value="75.1" />
+
+ </p:linechart>
</p:document>
More information about the jboss-cvs-commits
mailing list