You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Daniel Jue <te...@gmail.com> on 2007/01/24 22:30:55 UTC

Favorite charting tool to use with Tapestry?

Hi, I wanted to get an idea of what Tapestry people have settled on
when charts needed to be drawn.

The Tap 3 and 4 workbenches use JCharts, which had become Krysalis
Jcharts, which has been abandoned.
I recently played with it and found it to be a lightweight and fast,
although it lacks some things I would like, and doesn't take in a wide
range of data types for input.

A few months ago I had integrated BIRT as a Tapestry service, which
included the BIRT chart engine.  It seemed a bit clunky and slow, but
the graphs were pretty.

I am thinking of re-writing jCharts enough to get the
functionality/flexibility I want, but I wanted to hear from the list
first.  (Specifically, I want to make Chart implement Serializable and
allow jCharts to directly accept data in datatypes other than
double[][] )

Are there other charting libraries that are trivial to integrate with Tapestry?

Dan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Favorite charting tool to use with Tapestry?

Posted by Robert Binna <r....@synedra.com>.
Hi

Last time I needed charting I used http://www.liquidx.net/plotkit/.
With it and some javascript glue code the only thing you need to do, is 
to render tables with the corresponding values.
Its probably not the most sufficticated solution but it is quite easy to 
use.

kind regards,
             Robert


Daniel Jue schrieb:
> Hi, I wanted to get an idea of what Tapestry people have settled on
> when charts needed to be drawn.
>
> The Tap 3 and 4 workbenches use JCharts, which had become Krysalis
> Jcharts, which has been abandoned.
> I recently played with it and found it to be a lightweight and fast,
> although it lacks some things I would like, and doesn't take in a wide
> range of data types for input.
>
> A few months ago I had integrated BIRT as a Tapestry service, which
> included the BIRT chart engine.  It seemed a bit clunky and slow, but
> the graphs were pretty.
>
> I am thinking of re-writing jCharts enough to get the
> functionality/flexibility I want, but I wanted to hear from the list
> first.  (Specifically, I want to make Chart implement Serializable and
> allow jCharts to directly accept data in datatypes other than
> double[][] )
>
> Are there other charting libraries that are trivial to integrate with 
> Tapestry?
>
> Dan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Favorite charting tool to use with Tapestry?

Posted by Daniel Jue <te...@gmail.com>.
> I am thinking of re-writing jCharts enough to get the
> functionality/flexibility I want, but I wanted to hear from the list
> first.  (Specifically, I want to make Chart implement Serializable and
> allow jCharts to directly accept data in datatypes other than
> double[][] )
Sorry, I meant "I want to make org.jCharts.properties.util.ChartFont
implement Serializable".  Chart is already serializable.

Dan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Favorite charting tool to use with Tapestry?

Posted by Barry Books <tr...@gmail.com>.
I use Fushion Charts. http://www.fusioncharts.com

You have to buy it but it's not too expensive. It generates charts on
the client from xml using flash. It's easy to use and does not put
much load on the server. You can also animate the graphs and connect
the html on the page so the graph can be changed without a trip to the
server.

If you don't mind flash it's a good solution. The dojo one above also
looks interesting but it did not work for me in Safari

Barry

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Favorite charting tool to use with Tapestry?

Posted by Jesse Kuhnert <jk...@gmail.com>.
If I had more duplicate versions of myself and time I'd definitely use
this for charting:

http://archive.dojotoolkit.org/nightly/tests/charting/test_engine.html

The graphics are all rendered in the native format of whatever browser
you are viewing them in, and are completely interactive as
demonstrated by:

http://archive.dojotoolkit.org/nightly/demos/gfx/circles.html

The guy who wrote a lot of that api also used to work at Pixar. (until
google snagged him recently, but he's still active on the project)

Mmmm... Makes jfreechart look pretty silly by comparison. (if only I
had more time..)

On 1/24/07, Martin Strand <do...@gmail.com> wrote:
> I haven't used it myself but jfreechart appears to be active:
> http://www.jfree.org/jfreechart/
>
> On Wed, 24 Jan 2007 22:30:55 +0100, Daniel Jue <te...@gmail.com> wrote:
>
> > Hi, I wanted to get an idea of what Tapestry people have settled on
> > when charts needed to be drawn.
> >
> > The Tap 3 and 4 workbenches use JCharts, which had become Krysalis
> > Jcharts, which has been abandoned.
> > I recently played with it and found it to be a lightweight and fast,
> > although it lacks some things I would like, and doesn't take in a wide
> > range of data types for input.
> >
> > A few months ago I had integrated BIRT as a Tapestry service, which
> > included the BIRT chart engine.  It seemed a bit clunky and slow, but
> > the graphs were pretty.
> >
> > I am thinking of re-writing jCharts enough to get the
> > functionality/flexibility I want, but I wanted to hear from the list
> > first.  (Specifically, I want to make Chart implement Serializable and
> > allow jCharts to directly accept data in datatypes other than
> > double[][] )
> >
> > Are there other charting libraries that are trivial to integrate with
> > Tapestry?
> >
> > Dan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Favorite charting tool to use with Tapestry?

Posted by Sam Gendler <sg...@ideasculptor.com>.
The jfreechart book is well worth the expense.  And it is supporting
the efforts of the developers.  Note that it is not subject to
per-user license fees or anything, so it is an annual fee (assuming
you care to update to the latest docs every year) that gives you
unlimited use, including source code to all of the demo apps, which is
invaluable when working with something like jfreechart.

--sam


On 1/26/07, Daniel Jue <te...@gmail.com> wrote:
> I've seen the light. =)
>
> I won't jump to javascript charting just yet--although it looks nice
> and interaction is great, I don't have the time and it's not required.
>  Besides, the feeling I get is that I'd probably want to upgrade to
> Tap 4.1.something before diving into dojo integration.
>
> It was very easy to switch over to JFreeCharts, although I wish there
> were more open source examples besides the pay-for user guide they
> offer.
>
> In fact in less than a couple hours I had abstracted my ChartService
> to act on a wrapper I called "IChart", which can wrap whatever
> charting tool I choose, as long as the chart rendering feature accepts
> an output stream.
>
> The IChart class has a method like this that passes render control to
> the charting tool it wraps:
>
> public static void writeChartAsJPEG(OutputStream out, IChart chart)
> throws IOException {
> ChartUtilities.writeChartAsJPEG(out, chart.getChart(),
> chart.getWidth(), chart.getHeight());
> }
>
> and the ChartService calls this and only has to supply the Chart and
> the OutputStream.
>
> The ChartService also reads in height and width from the html (ognl parameters).
>
> Dan
>
>
> On 1/25/07, Peter Stavrinides <p....@albourne.com> wrote:
> > We use JFreeChart, for both J2EE and Tapestry applications, and I must
> > say its really simple to use. getting it to work in Tapestry took me a
> > few days though because I didn't know the framework very well, in the
> > end it needed a ridiculous amount of code (4 lines or so). I used the
> > outputstream writer. This snippet is from my IEngineService service()
> > method:
> >
> >            JFreeChart freeChart = chart;
> >            WebResponse response = cycle.getInfrastructure().getResponse();
> >            OutputStream out = response.getOutputStream(new
> > ContentType("image/jpeg"));
> >            ChartUtilities.writeChartAsPNG(out, freeChart, width, 300);
> >
> >
> > Thiago H de Paula Figueiredo wrote:
> > > On Wed, 24 Jan 2007 20:03:22 -0200, Martin Strand
> > > <do...@gmail.com> wrote:
> > >
> > >> I haven't used it myself but jfreechart appears to be active:
> > >> http://www.jfree.org/jfreechart/
> > >
> > > I have used JFreeChart in some projects and it is very good. It
> > > supports many chart types (including some you probably never heard of
> > > before :), it's open source, it's relatively simple to use, and it's
> > > very powerful. If there isn't any JFreeChart-Tapestry integration
> > > written yet, it's about time! :) Unfortunately, i don't have the spare
> > > time needed now. :(
> > >
> > > There's Cewolf, a JFreeChart taglib I already used. Maybe we could
> > > take some ideas from it.
> > >
> > > --
> > > hasta la vista!!!
> > >
> > > |8) |8p |8) |8p |8) |8p |8) |8p |8) |8p |8) |8p |8) |8p |8) |8p |8) |8p
> > >
> > > thiago h. de paula figueiredo
> > > mestre em ciência da computação pelo dcc/ufmg
> > > ate' porque bobagem pouca e' bobagem . . .
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> >
> > --
> > Peter Stavrinides
> > Albourne Partners (Cyprus) Ltd
> > Tel: +357 22 750652
> >
> > If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Please visit http://www.albourne.com/email.html for important additional terms relating to this e-mail.
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Favorite charting tool to use with Tapestry?

Posted by Daniel Jue <te...@gmail.com>.
I've seen the light. =)

I won't jump to javascript charting just yet--although it looks nice
and interaction is great, I don't have the time and it's not required.
 Besides, the feeling I get is that I'd probably want to upgrade to
Tap 4.1.something before diving into dojo integration.

It was very easy to switch over to JFreeCharts, although I wish there
were more open source examples besides the pay-for user guide they
offer.

In fact in less than a couple hours I had abstracted my ChartService
to act on a wrapper I called "IChart", which can wrap whatever
charting tool I choose, as long as the chart rendering feature accepts
an output stream.

The IChart class has a method like this that passes render control to
the charting tool it wraps:

public static void writeChartAsJPEG(OutputStream out, IChart chart)
throws IOException {
ChartUtilities.writeChartAsJPEG(out, chart.getChart(),
chart.getWidth(), chart.getHeight());
}

and the ChartService calls this and only has to supply the Chart and
the OutputStream.

The ChartService also reads in height and width from the html (ognl parameters).

Dan


On 1/25/07, Peter Stavrinides <p....@albourne.com> wrote:
> We use JFreeChart, for both J2EE and Tapestry applications, and I must
> say its really simple to use. getting it to work in Tapestry took me a
> few days though because I didn't know the framework very well, in the
> end it needed a ridiculous amount of code (4 lines or so). I used the
> outputstream writer. This snippet is from my IEngineService service()
> method:
>
>            JFreeChart freeChart = chart;
>            WebResponse response = cycle.getInfrastructure().getResponse();
>            OutputStream out = response.getOutputStream(new
> ContentType("image/jpeg"));
>            ChartUtilities.writeChartAsPNG(out, freeChart, width, 300);
>
>
> Thiago H de Paula Figueiredo wrote:
> > On Wed, 24 Jan 2007 20:03:22 -0200, Martin Strand
> > <do...@gmail.com> wrote:
> >
> >> I haven't used it myself but jfreechart appears to be active:
> >> http://www.jfree.org/jfreechart/
> >
> > I have used JFreeChart in some projects and it is very good. It
> > supports many chart types (including some you probably never heard of
> > before :), it's open source, it's relatively simple to use, and it's
> > very powerful. If there isn't any JFreeChart-Tapestry integration
> > written yet, it's about time! :) Unfortunately, i don't have the spare
> > time needed now. :(
> >
> > There's Cewolf, a JFreeChart taglib I already used. Maybe we could
> > take some ideas from it.
> >
> > --
> > hasta la vista!!!
> >
> > |8) |8p |8) |8p |8) |8p |8) |8p |8) |8p |8) |8p |8) |8p |8) |8p |8) |8p
> >
> > thiago h. de paula figueiredo
> > mestre em ciência da computação pelo dcc/ufmg
> > ate' porque bobagem pouca e' bobagem . . .
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
>
> --
> Peter Stavrinides
> Albourne Partners (Cyprus) Ltd
> Tel: +357 22 750652
>
> If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Please visit http://www.albourne.com/email.html for important additional terms relating to this e-mail.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Favorite charting tool to use with Tapestry?

Posted by Peter Stavrinides <p....@albourne.com>.
We use JFreeChart, for both J2EE and Tapestry applications, and I must 
say its really simple to use. getting it to work in Tapestry took me a 
few days though because I didn't know the framework very well, in the 
end it needed a ridiculous amount of code (4 lines or so). I used the 
outputstream writer. This snippet is from my IEngineService service() 
method:

            JFreeChart freeChart = chart;
            WebResponse response = cycle.getInfrastructure().getResponse();
            OutputStream out = response.getOutputStream(new 
ContentType("image/jpeg"));
            ChartUtilities.writeChartAsPNG(out, freeChart, width, 300);


Thiago H de Paula Figueiredo wrote:
> On Wed, 24 Jan 2007 20:03:22 -0200, Martin Strand 
> <do...@gmail.com> wrote:
>
>> I haven't used it myself but jfreechart appears to be active:
>> http://www.jfree.org/jfreechart/
>
> I have used JFreeChart in some projects and it is very good. It 
> supports many chart types (including some you probably never heard of 
> before :), it's open source, it's relatively simple to use, and it's 
> very powerful. If there isn't any JFreeChart-Tapestry integration 
> written yet, it's about time! :) Unfortunately, i don't have the spare 
> time needed now. :(
>
> There's Cewolf, a JFreeChart taglib I already used. Maybe we could 
> take some ideas from it.
>
> -- 
> hasta la vista!!!
>
> |8) |8p |8) |8p |8) |8p |8) |8p |8) |8p |8) |8p |8) |8p |8) |8p |8) |8p
>
> thiago h. de paula figueiredo
> mestre em ciência da computação pelo dcc/ufmg
> ate' porque bobagem pouca e' bobagem . . .
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>

-- 
Peter Stavrinides
Albourne Partners (Cyprus) Ltd
Tel: +357 22 750652 

If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Please visit http://www.albourne.com/email.html for important additional terms relating to this e-mail. 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Favorite charting tool to use with Tapestry?

Posted by Thiago H de Paula Figueiredo <th...@terra.com.br>.
On Wed, 24 Jan 2007 20:03:22 -0200, Martin Strand  
<do...@gmail.com> wrote:

> I haven't used it myself but jfreechart appears to be active:
> http://www.jfree.org/jfreechart/

I have used JFreeChart in some projects and it is very good. It supports  
many chart types (including some you probably never heard of before :),  
it's open source, it's relatively simple to use, and it's very powerful.  
If there isn't any JFreeChart-Tapestry integration written yet, it's about  
time! :) Unfortunately, i don't have the spare time needed now. :(

There's Cewolf, a JFreeChart taglib I already used. Maybe we could take  
some ideas from it.

-- 

hasta la vista!!!

|8) |8p |8) |8p |8) |8p |8) |8p |8) |8p |8) |8p |8) |8p |8) |8p |8) |8p

thiago h. de paula figueiredo
mestre em ciência da computação pelo dcc/ufmg
ate' porque bobagem pouca e' bobagem . . .

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Favorite charting tool to use with Tapestry?

Posted by Martin Strand <do...@gmail.com>.
I haven't used it myself but jfreechart appears to be active:
http://www.jfree.org/jfreechart/

On Wed, 24 Jan 2007 22:30:55 +0100, Daniel Jue <te...@gmail.com> wrote:

> Hi, I wanted to get an idea of what Tapestry people have settled on
> when charts needed to be drawn.
>
> The Tap 3 and 4 workbenches use JCharts, which had become Krysalis
> Jcharts, which has been abandoned.
> I recently played with it and found it to be a lightweight and fast,
> although it lacks some things I would like, and doesn't take in a wide
> range of data types for input.
>
> A few months ago I had integrated BIRT as a Tapestry service, which
> included the BIRT chart engine.  It seemed a bit clunky and slow, but
> the graphs were pretty.
>
> I am thinking of re-writing jCharts enough to get the
> functionality/flexibility I want, but I wanted to hear from the list
> first.  (Specifically, I want to make Chart implement Serializable and
> allow jCharts to directly accept data in datatypes other than
> double[][] )
>
> Are there other charting libraries that are trivial to integrate with  
> Tapestry?
>
> Dan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org