Cagatay Civici’s Weblog

“Real power can’t be given, it must be taken”

JSF ChartCreator - Resurrection

Posted by cagataycivici on May 10, 2007

It’s been a while since I’ve stopped maintaining JSF ChartCreator but after seeing the 2000+ downloads for the previous version, I’ve decided to prepare a comeback:) This version is 1.2.0-M1 and contains many new features, several bugfixes and better documentation.

* 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/components/chartcreator/index.html

API and TLD Docs at;

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

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

Download at;

http://sourceforge.net/project/showfiles.php?group_id=137466

UPDATE: M1 release has an ugly jvm compatibility issue and was only working with java6, I’ve made a quick fix and made a M2 release that’s compatible with java 1.4+.

11 Responses to “JSF ChartCreator - Resurrection”

  1. Jay Silence Says:

    The source of the webapp seems to be incomplete. Would you be so kind and take a look at the package?

    Thanks,

    -jsl

  2. Cagatay Civici Says:

    Just checked, all the sources in the webapp seems included.

  3. Rene A. Says:

    I just searched for a way to use jFreeChart in JSF and found you wonderful ChartCreator component!

    Thank you for making this open source!

  4. Suraj Says:

    Hi,

    We needed to render a barchart with clickable bars and your’s ChartCreator came out as a great help.

    I got it working but got stuck at the issue of redirecting to a new page on the click of a bar on the chart.

    Your sample example shows how to catch the click event in javascript. But I need to catch this click event in my backing bean.

    I also posted this issue on JFreeChart forum but haven’t got response yet. (”JFree Chart Creator:passing variables back to my bean” on Wed Jul 25, 2007)

    I am trying some possible solutions which include calling bean methods from javascript but this would be very crude way of doing it.

    Looking for a cleaner approach …

    Suraj

  5. Phil Stone Says:

    Thank you for this excellent component.

    Have you considered submitting it to the ibiblio Maven repository?

    Phil

  6. Orlando Says:

    Hi I’want to understand how I can override the default renderer.
    Is there a tutorial or a little example?

    Thanks in advance,
    Orlando.

  7. srikanth Says:

    Images are not printing if we check the Every vist to the page on the IE Options, so what could be the problem., I am using chartcreator JSF FREE CHART, and JFreeChart,

    Thanks
    Srikanth

  8. ernesto q Says:

    I was googling for a way to integrate jsf and jfree chart.i stumbled upon your lovely component..i have one question tho.can it natively support gantt charts?

    thanks for creating such a wonderful component.God bless

  9. mini_me Says:

    Hi there…

    I’ve read so many good news about this component so far.
    The problem is that I always get an exception when trying to run the application. something with JasperException… And eclipse tells me that the url/uri can’t be resolved…

    So is there anywhere a short tutorial which tells me how to use the component correctly?

  10. Prihand Says:

    I try to use xyarea chart type. The dataset is timeseries. The chart counldnt draw the xAxis with date format (as Jfreechart demo can)…:) any suggestion?

  11. Anonymous Says:

    Hai,
    We are using JSF chart creator for our application.We had successfully integrated with our database.But now we want to take the print out of this graph,but unfortunately its print preview is not coming in IE.So we are unable to take the print out .In the demo application that you provided with download its prreview is coming properly.Could you please help me…

    Thanks and Regards,
    Subash

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>