[jboss-user] [JBoss Seam] - Re: Charts

sstrenn do-not-reply at jboss.com
Fri Nov 30 02:33:51 EST 2007


If you want very cool, interactive charts, you might try http://www.fusioncharts.com/free/.  

Here is an example screenshot:

https://www.cs.sbcc.edu/strenn/cs129/TopOrdersFusionChart.jpg

All you have to do is provide the data in XML format, which I did with a standard facelet and <ui:repeat>:


  | <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://jboss.com/products/seam/taglib"
  | 	xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
  | 	xmlns:rich="http://richfaces.org/rich" xmlns:fn="http://java.sun.com/jsp/jstl/functions">
  | 
  | 	<graph caption='Top Sales Orders' xAxisName='' yAxisName='Sales Subtotal' showNames='1' rotateNames='1' decimalPrecision='0'
  | 		formatNumberScale='0' numberPrefix="$" bgSWF='img/ContentBackgroundWide.jpg' baseFont="Arial" baseFontSize="12"
  | 		outCnvBaseFont="Arial" outCnvsBaseFontSize="16" animation="1"> 
  | 		<ui:repeat value="#{topOrders.bySubTotal}" var="topOrder">
  | 			<set name='#{topOrder.customerName}' value='#{topOrder.subtotal}' color="#{colorManager.nextColor}"
  | 				link="SalesOrderView.seam?salesOrderId=#{topOrder.id}"
  | 				hoverText="#{topOrder.customerName}: Order ##{topOrder.id} on #{fn:substring(topOrder.orderDate, 0, 10)}" />
  | 		</ui:repeat> 
  | 	</graph>
  | 
  | </ui:composition>anonymous wrote : 
  |   | 
  |   | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109161#4109161

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109161



More information about the jboss-user mailing list