Two Laptop Bag
The moose likes JSF and the fly likes Create multiple line charts in a single JSF frame using JFreechart Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Create multiple line charts in a single JSF frame using JFreechart" Watch "Create multiple line charts in a single JSF frame using JFreechart" New topic
Author

Create multiple line charts in a single JSF frame using JFreechart

Son Ho
Greenhorn

Joined: Jan 21, 2012
Posts: 2
Is there a way to DYNAMICALLY create multiple line charts in a single JSF(JavaServer Faces) frame using JFreechart?

Currently, I am able to create multiple line charts STATICALLY in a single JSF frame using JFreechart with the following JSF tags in the index.xhtml:

<p> image 1:</p>
<corejsf:chart width="500" height="500" title="Chart 1"
names="#{planets.names}" values="#{planets.values}"/>


<p> image2:</p>
<corejsf:chart width="500" height="500" title="Chart 2"
names="#{planets.name}" values="#{planets.value}"/>

Different attributes, names/name (String[]) and values/value(double[]), were used to create multiple line charts in a single JSF frame. Manually creating additional attribute(s) for additional line charts is not good.

Any help would be appreciated.

Thanks,

sonh
Son Ho
Greenhorn

Joined: Jan 21, 2012
Posts: 2
I figured it out using ui:repeat tag.

Son Ho
 
 
subject: Create multiple line charts in a single JSF frame using JFreechart
 
Threads others viewed
Any1 know drawin pie chart using jfreechart
Any1 know drawin pie chart using jfreechart
Unable to display the Applet in jsp display tomcat
How to generate charts using cewolf
Cewolf Multiple Charts - Tooltip / Link Issue
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture