昨天研究了icefaces 的各种Chart,icefaces组件真的是很强大,用起来真的很简单。
呵
做了个三围的饼图和柱型图,感觉还不错。
原始代码
//render barstacked type of chart
<ice:outputChart type="barstacked"
chartTitle="Book Sales"
yaxisTitle="Sales"
xaxisTitle="Months"
xaxisLabels="Jan, Feb, Mar, Apr"
labels="JSF, AJAX"
data="20, 55, 22, 44: 22, 33, 44, 55"
/>
//render pie3d chart
<ice:outputChart type="pie3d"
chartTitle="Book Sales"
labels="JSF, AJAX, Web Services"
data="99, 50, 20"
colors="blue, green, cyan"
/>
还有一个有很多Chart的个人博客
他的博客地址是:http://www.blogjava.net/mstar/archive/2008/06/10/OpenSource_Charting_Lib.html