We use cewolf over here...same thing applies. Create data for the chart in
an action, pick up this data in a JSPPortlet with cewolf taglibs added...
This is what one of my graph pages looks like:
<!-- JSPPortlet page -->
<%@ taglib uri='/templates/jsp/tld/template.tld' prefix='jetspeed' %>
//Jetspeed taglib
<%@ taglib uri='/templates/jsp/tld/cewolf-1.1.tld' prefix='cewolf' %>
//Cewolf taglib
<jsp:useBean id="premiumGraph" scope="session" class="PremiumGraphBean"/>
//PremiumGraph implements a cewolf DatasetProducer, and holds a 2D Integer
array created from java.sql.ResultSet
<cewolf:chart id="line" title="<%= premiumGraph.getHeading()%>"
type="Pie" xaxislabel="Time"
yaxislabel="Premium" showlegend="false">
<cewolf:data>
<cewolf:producer id="premiumGraph"/> //Names the object
holding graph
</cewolf:data>
</cewolf:chart>
<cewolf:img chartid="line" renderer="cewolf" width="800" height="300">
<cewolf:map id="premiumGraph"/> //Prompts the graph object for data.
</cewolf:img>
<!--// JSPPortlet page -->
-----Original Message-----
From: Devinder Sachdeva [mailto:[EMAIL PROTECTED]
Sent: Tuesday 17 August 2004 11:56 PM
To: Jetspeed Users List
Subject: RE: chart portlet on jetspeed
Just create portlet as steps mentioned in the JetSpeed .
I'm not aware how does cewolf and jfreechart work but for easycharts add
the following lines in the JSP or VM portlet .
There are a quite bit good examples in the easychart .
<applet code=com.objectplanet.chart.ext.TimeLineChartApplet
CODEBASE="."
archive="/chart.ext.jar" width=700 height=350>
<param name=chartTitle value="2004 Monthly Revenues"> <param
name=seriesCount value=3>
>
"Shen, Ching" <[EMAIL PROTECTED]>
08/17/2004 05:47 PM
Please respond to "Jetspeed Users List"
To: "Jetspeed Users List" <[EMAIL PROTECTED]>
cc:
Subject: RE: chart portlet on jetspeed
There are also other chart packages, such as cewolf and jfreechart.
The problem is I need a portlet sample which can embeded chart capability
since I don't know what it should looks like.
Any samples you can share?
-----Original Message-----
From: Devinder Sachdeva [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 3:00 PM
To: Jetspeed Users List
Subject: Re: chart portlet on jetspeed
Ching-
Create a Portlet (VM) or JSP include applet as <applet
code=com.objectplanet.chart.ext.TimeLineChartApplet
CODEBASE="."
archive="/chart.ext.jar" width=700 height=350>
<param name=chartTitle value="2004 Monthly Revenues"> <param
name=seriesCount value=3> ..
....................................................................
We used http://www.objectplanet.com/EasyCharts/
Keep EasyChart jar in classpath .It works fine.
Thanks
Devinder
"Shen, Ching" <[EMAIL PROTECTED]>
08/17/2004 03:51 PM
Please respond to "Jetspeed Users List"
To: <[EMAIL PROTECTED]>
cc:
Subject: chart portlet on jetspeed
Does anybody have a portlet for chart, from 2 columns, with at least 1
column data , whether from a file or from database?
I am new in jetspeed and is looking for an example Any suggestion/comments
will be greatly appreciated.
Thank you!
Ching Shen
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]