JSF Chart Creator

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
anujcb
Posts: 8
Joined: Thu Nov 15, 2007 12:03 am

Post by anujcb » Mon Dec 10, 2007 11:49 pm

aloleary wrote:Any comments on JSF / Chart Creator having any Ajax support capability ? like Ajax4JSF wrapper etc ...

This would be fantastic... Imagine a JFree chart dynamically updating in the page without page re-load...

Any pointers on anyone working on this ... if not I will try and make something using Ajax4Jsf

-A-
I just completed a prototype application using ICE Faces components and Jfree charts. The best part is the interactiveness it gives, i can look at charts almost realtime, change the axis range, dynamically overlay multiple data sets all without refreshing the whole page.

thedrake
Posts: 1
Joined: Mon Dec 17, 2007 10:30 am

Post by thedrake » Mon Dec 17, 2007 10:41 am

Hello,
I want to do a TimeSeries graph (like the pricevolume demo) but with bars (reprensented by the volume).
In the example, they make a chart, and change the renderer of the chart's plot.
I would like to do the same but i can't find how...
For now, I just return a TimeSeriesCollection in the datasource property with the type timeseries.
Is there a way to define that it should be rendered in bars and not axis ?
Thanks.

jeck
Posts: 1
Joined: Wed Jan 30, 2008 3:16 pm

Hi cagatay_civici

Post by jeck » Wed Jan 30, 2008 3:22 pm

I have tryed to use also Chart Creator in a portlet but in JBoss Portal have you fixed this or is still under development ... the chart does not appear !!!

srikanthgsk
Posts: 3
Joined: Wed Nov 07, 2007 7:59 pm

Hi cagatay_civici -printed the images are blank,only

Post by srikanthgsk » Fri Feb 01, 2008 4:38 am

Hi, I have big problem ,as I am able to see the images but when I printed the images are blank,only when I select 'Every Vist to the Page' In IE 6.0 option(tools-internetOption-under general tab setting, selecting Every vist to the Page', as my client done't want to store in cache, so its matter of printing the image, I am not getting any idea how to fix this problem.

if any one have solutions that will be great

Thanks
Srikanth

srikanthgsk
Posts: 3
Joined: Wed Nov 07, 2007 7:59 pm

Re: Hi cagatay_civici -printed the images are blank,only

Post by srikanthgsk » Fri Feb 08, 2008 5:02 pm

srikanthgsk wrote:Hi, I have big problem ,as I am able to see the images but when I printed the images are blank,only when I select 'Every Vist to the Page' In IE 6.0 option(tools-internetOption-under general tab setting, selecting Every vist to the Page', as my client done't want to store in cache, so its matter of printing the image, I am not getting any idea how to fix this problem.

if any one have solutions that will be great

I solved the problem, I commented the //emptySession(sessionMap, id);
in ChartListener and also Chartlet, now its working fine.

Thanks
Srikanth

lingoosoft
Posts: 3
Joined: Fri Feb 15, 2008 7:18 am

Post by lingoosoft » Sat Feb 16, 2008 1:48 am

JSF Chart Creator show chinese is garbled.

I use utf8.

How can I do?

thanks.

shamesh_joshi
Posts: 7
Joined: Mon Jun 18, 2007 8:15 am
Location: Kathmandu
Contact:

Adding Secondary Range dataset in Line chart

Post by shamesh_joshi » Fri Mar 14, 2008 11:19 am

Hello all, I'm bit confused in using the Chart Creater. The <c:chartAxis> is assumed to add Child component to customize an axis. I tried it with xyline chart as provided in demo. and works fine :

Code: Select all

<c:chart id="chart2" 	datasource="#{myBack.firstXYDataset}" xlabel="Month" ylabel="Paid $" type="xyline" is3d="false" legendBorder="false"	legendFontSize="12">

	<c:chartAxis  id="cntAxis" label="Count" 
		verticalTickLabels="true" tickMarks="true" 
		datasource="#{myBack.secondXYDataset}"
		tickLabelFontSize="12" />

</c:chart>
But when similar approach is taken for line chart it only shows primary range data set.

Code: Select all

<c:chart id="chart3" datasource="#{myBack.categoryDataset}" xlabel="Month" ylabel="Paid $" type="line" is3d="false" legendBorder="false" legendFontSize="12">

<c:chartAxis  id="cntAxis1" label="Count" verticalTickLabels="true" tickMarks="true" datasource="#{myBack.secondaryCategoryDataset}" tickLabelFontSize="12" />

</c:chart>
Shouldn't this code be working??
Please any Help??

shamesh_joshi
Posts: 7
Joined: Mon Jun 18, 2007 8:15 am
Location: Kathmandu
Contact:

Bug: ChartAxis's rendered="false"

Post by shamesh_joshi » Fri Mar 28, 2008 4:59 am

if ChartAxis's rendered="false" is set, the renderer still renderes the chartaxis.

Code: Select all

<c:chart generateMap="true" id="chart9" datasource="#{myCharts.categoryDataset}"
			xlabel="Month" ylabel="Paid Amount" type="line" is3d="false"
			legendBorder="false" legendFontSize="12" startAngle="30">
			<c:chartAxis id="cntAxis123" label="Count" verticalTickLabels="true" rendered="false"
				tickMarks="true" datasource="#{myCharts.secondaryCategoryDataset}"
				tickLabels="true" tickLabelFontSize="12" />
			
		</c:chart>

pacomou
Posts: 4
Joined: Mon Apr 28, 2008 10:45 am

Post by pacomou » Mon Apr 28, 2008 4:23 pm

Hello everybody,


Mr cagatay_civici, please I am facing problem with chartcreator. when I add jsf-comp.jar to my project it dosen't work and tomcat indicate error like this:

org.apache.jasper.JasperException: L'uri absolue: http://sourceforge.net/projects/jsf-comp ne peut être résolu dans le fichier web.xml ou dans les fichiers jar déployés avec cette application
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
.....

I configured jsf and it works good with my project. when I add chartcreator to my project as a user librairy it indicate the error above.
Why chartcreator jar contains "faces-config.xml"? already I have it with my jsf??!! should I delete it or copy its content to my old "faces-config.xml".

Please help me I need your help because I m blocked at this stage.


Best regards.

Chris Graham
Posts: 2
Joined: Fri May 18, 2007 6:58 am
Location: Melbourne, Vic, Australia

Post by Chris Graham » Tue Apr 29, 2008 2:14 am

pacomou wrote:Hello everybody,


I configured jsf and it works good with my project. when I add chartcreator to my project as a user librairy it indicate the error above.
Why chartcreator jar contains "faces-config.xml"? already I have it with my jsf??!! should I delete it or copy its content to my old "faces-config.xml".

Please help me I need your help because I m blocked at this stage.

Best regards.
No, you leave the faces-config.xml file where it is (in the meta-inf dir) inside the jar.

This is the correct packaging for JSF components.

pacomou
Posts: 4
Joined: Mon Apr 28, 2008 10:45 am

Post by pacomou » Tue Apr 29, 2008 9:45 am

thanks Chris Graham,

Now it works good, I just added all jars found in the webapp example lib directory to the lib of my project and it works. maybe the problem was that one jar was messing in my first example.

Best Regards.

Edward I
Posts: 3
Joined: Thu May 29, 2008 3:05 pm

Showing percentages in pie chart labels

Post by Edward I » Fri May 30, 2008 2:22 pm

Hi,
Is it possible to customize the pie chart labels in jsf chart creator? i.e., right now all the labels are just the category you use in the dataset (A,B,C,etc.), but I would like to have the % numbers in there as well (A 10%, B 15%, C 75%).

This is possible in JFreeChart according to the docs, but I'm just not sure how to access it in my JSF page with chart Creator.

Thanks

Edward I
Posts: 3
Joined: Thu May 29, 2008 3:05 pm

Pie chart labels

Post by Edward I » Mon Jun 09, 2008 5:59 pm

Hi all, it seems the below post might address my problem of showing percentages on the legend/labels on pie charts. The legendContainer still isn't integrated, but is it available anywhere? Is JSF chart creator still being maintained or has it been superseded?
Thanks again
Chris Graham wrote:
cagatay_civici wrote:Dear JFreeChart Community,

I'm pleased to announce that JSF ChartCreator's new version 1.2.0-M1 is ready, This release contains many new features and several bug fixes.
Hi Cagatay.
I sent you the additions that I made to your component to allow for alternative legends (the legendContainer attributes) for pie charts.

Did you get it and have you had a chance to implement them into your source?

jmhwhite2001
Posts: 3
Joined: Fri Jul 11, 2008 2:53 pm

Chart Creator and Dial/Meters

Post by jmhwhite2001 » Fri Jul 11, 2008 2:55 pm

By looking at the TLD, it seems to not support this type of chart. Does it? Are there any plans if it does not.

Thanks!

sagefool1975
Posts: 1
Joined: Thu Aug 07, 2008 2:32 am

StackedAreaGraphs

Post by sagefool1975 » Thu Aug 07, 2008 8:12 pm

have big white bars in them. Looking at general jfreechart posts it looks like this is because the renderer now has margins. There doesn't appear to be anyway to set the margins to zero in chartcreator, any chance this could be patched? Seems easy enough to do.

Locked