JSF Chart Creator

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
cagatay_civici
Posts: 54
Joined: Sun Aug 28, 2005 8:13 pm

Post by cagatay_civici » Thu May 10, 2007 9:47 pm

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.

* Provided an optional configuration to switch between a servlet and a phaselistener as the generator of the charts. This is done so because, a phaselistener can be used in a portlet environment and a servlet can be used when some other lib's phaselistener(like Ajax4JSF) prevents chart's phaselistener from getting called.

* Added a new child component called chartAxis that can be used to customize a single axis.

* Created a renderer for the chart component so users can override it if they want.

* Clickable chart sections; Previous version was supporting custom image maps but this new feature generates automatic image maps for each chart section and users can attach events to be processed when for example a bar is clicked for a bar chart.

* Several bug fixes.

Much more information can be found at ChartCreator's home page at;

http://jsf-comp.sourceforge.net/compone ... index.html

API and TLD Docs at;

http://people.apache.org/~cagatay/chart ... /docs/tld/

http://people.apache.org/~cagatay/chart ... /docs/api/

Download at;

http://sourceforge.net/project/showfile ... _id=137466

Best Regards,

Cagatay
Last edited by cagatay_civici on Sat May 12, 2007 10:14 am, edited 1 time in total.

lesteve
Posts: 1
Joined: Fri May 11, 2007 1:58 pm

Post by lesteve » Fri May 11, 2007 2:08 pm

Thanks for the new version of the ChartCreator!

Unfortunately I get an UnsupportedClassVersionError with JBoss 4.0.5.GA and Java 1.5.0_06. Did you compile the release for Java 1.6 only?

cagatay_civici
Posts: 54
Joined: Sun Aug 28, 2005 8:13 pm

Post by cagatay_civici » Fri May 11, 2007 3:15 pm

Ooops:( I guess I haven't configured the ant taks's compiler after upgrading my jdk to 6. I'm going to fix this asap, thanks for the catch.

cagatay_civici
Posts: 54
Joined: Sun Aug 28, 2005 8:13 pm

Post by cagatay_civici » Sat May 12, 2007 9:41 am

I've fixed the jvm dependency issue and made a M2 Release that's compatible with 1.4+.

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

Post by Chris Graham » Fri May 18, 2007 7:01 am

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?
-Chris

cagatay_civici
Posts: 54
Joined: Sun Aug 28, 2005 8:13 pm

Post by cagatay_civici » Fri May 18, 2007 8:06 am

Hi Chris,

No, I haven't add your patches yet but probably they'll be in the next release.

Thanks,

Cagatay

hbzhang11
Posts: 3
Joined: Thu May 24, 2007 9:27 am

How can i set Chart Creator work with myfaces 1.1.5

Post by hbzhang11 » Thu May 24, 2007 9:42 am

I try to get chart creator worked with myfaces ,but I don't know how to edit the web.xml file. how can i configure with chart creat listener?

<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
<context-param>
<param-name>
net.sf.jsfcomp.chartcreator.USE_CHARTLET
</param-name>
<param-value>false</param-value>
</context-param>

<listener>
<listener-class>
org.apache.myfaces.webapp.StartupServletContextListener
</listener-class>
</listener>

<listener>
<listener-class>
???????
</listener-class>
</listener>

<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>0</load-on-startup>
</servlet>

<servlet>
<servlet-name>Chartlet</servlet-name>
<servlet-class>net.sf.jsfcomp.chartcreator.Chartlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>


<servlet-mapping>
<servlet-name>Chartlet</servlet-name>
<url-pattern>*.chart</url-pattern>
</servlet-mapping>

<filter>
<filter-name>MyFacesExtensionsFilter</filter-name>
<filter-class>
org.apache.myfaces.webapp.filter.ExtensionsFilter
</filter-class>
<init-param>
<param-name>uploadMaxFileSize</param-name>
<param-value>100m</param-value>
</init-param>
<init-param>
<param-name>uploadThresholdSize</param-name>
<param-value>100k</param-value>
</init-param>
</filter>

<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>*.faces</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>/faces/*</url-pattern>
</filter-mapping>

cagatay_civici
Posts: 54
Joined: Sun Aug 28, 2005 8:13 pm

Post by cagatay_civici » Thu May 24, 2007 3:11 pm

Hi,

There's an example configuration in sample web application and it's also documented in the chartcreator documentation homepage.

Cagatay

jsilence
Posts: 1
Joined: Thu May 31, 2007 2:45 pm

Still does not work for me

Post by jsilence » Thu May 31, 2007 3:38 pm

cagatay_civici wrote:I've fixed the jvm dependency issue and made a M2 Release that's compatible with 1.4+.
I still get the same error when I try to deploy the example webapp on Bea Weblogic Express 9.2. :(

-jsl
Wherever you go, there you are.

cagatay_civici
Posts: 54
Joined: Sun Aug 28, 2005 8:13 pm

Post by cagatay_civici » Thu Jun 07, 2007 9:36 pm

Seems the issue is still there, ok I'll take care of this once and for all. The next release will be 1.2.0, no more rc's.

cagatay_civici
Posts: 54
Joined: Sun Aug 28, 2005 8:13 pm

Post by cagatay_civici » Mon Jun 11, 2007 9:59 am

I've deployed the example webapp of chartcreator online,

http://www.nightdev.devisland.net/chartcreator

cagatay_civici
Posts: 54
Joined: Sun Aug 28, 2005 8:13 pm

Post by cagatay_civici » Wed Jun 13, 2007 7:37 am

Version 1.2.0 is released, it contains several minor fixes and hopefully the jdk version issue is gone now:) As a reminder online demo is at

http://www.nightdev.devisland.net/chartcreator.

mxrblind
Posts: 2
Joined: Wed Jul 04, 2007 5:45 pm

IBM portlet

Post by mxrblind » Wed Jul 04, 2007 6:34 pm

Hi. I just downloaded the new release for ChartCreator... Thanks!

I'm trying to get a simple chart work into an IBM portlet. Is it possible? I just copied your example, for the jsf-comp/Chart creator page. But it doesn't work in my portlet. I followed the instructions...but chart doesn't appear. I copied and pasted your <c:chart> code into my portletview jsp.

my bean has your code for getPieDataSet. Also, I tried changing the context-param to true and false...still doesn't appear...

Thanks for your help!!

mickyt
Posts: 2
Joined: Mon Jul 16, 2007 3:11 pm

more customized line chart

Post by mickyt » Mon Jul 16, 2007 3:15 pm

Hi,

Can I customize how a chart looks like ? for example, for a 2D line chart can I set the weight of the line and the points to be visible and a tooltip on the points ?

thanks,
Mihaela.

mickyt
Posts: 2
Joined: Mon Jul 16, 2007 3:11 pm

Post by mickyt » Thu Jul 26, 2007 10:54 am

hi,

anybody there ?

if i have some static data that i have to show in a graph, can i somehow generate only once the image and then, after refreshing or requestion the same page, to use the already generated image ?

Locked