Can jFreeChart help me?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
android21
Posts: 13
Joined: Wed Jul 11, 2007 5:56 pm

Can jFreeChart help me?

Post by android21 » Thu Jul 12, 2007 7:02 pm

Dear all,
I am new to this jFreeChart and would like to ask for advice. Iam trying to develop a software that is able to read data from an input (for example data flowing in real time) and plot a real time line chart. The data was recorded in excel but not real time, this time i want to plot the data in real time with chart. And this chart monitor will be placed inside my java swing application.
Anyone knows if jFreeChart can help?

Thanks a lot in advance.

lukkumar
Posts: 17
Joined: Thu Jun 07, 2007 8:10 pm

Post by lukkumar » Thu Jul 12, 2007 8:25 pm

JFreeChart is a charting library that helps to plot all kind of charts, see the JFreeChart Applet Demo. I have used it to pull the data from DB and displayed all kinds of charts.
If you have data in Excel then you could use a SQL* Loader or External table to load that into DB and then use the JFreeChart for displaying the charts.
JFreeChart works well with standalone and server applications.

Hope this might help you.

Laks.

android21
Posts: 13
Joined: Wed Jul 11, 2007 5:56 pm

Post by android21 » Fri Jul 13, 2007 2:04 am

Thank you lukkumar. But i need to know if jFreeChart can generate a trend chart with that SQL Loader, is jFreeChart can generate a real-time flowing chart?

Many Thanks. :D

android21
Posts: 13
Joined: Wed Jul 11, 2007 5:56 pm

Post by android21 » Fri Jul 13, 2007 8:06 am

Hmm anyone would like to help?

zinZ
Posts: 19
Joined: Mon Jul 09, 2007 2:18 pm

Post by zinZ » Fri Jul 13, 2007 9:01 am

You should look at the demo at Miscellaneous/Dynamic Charts.
Maybe it is that you search.

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Fri Jul 13, 2007 3:30 pm

android21 wrote:is jFreeChart can generate a real-time flowing chart?
It all depends on what you mean by "real-time flowing chart". JFreeChart can create charts that update multiple times per second, but it isn't ideally suited to this task because it redraws the whole chart for every frame. This uses more CPU cycles than strictly necessary...whether or not that is a problem depends on your data, the types of charts you are drawing, the frequency of updates, the hardware you are running on, and all sorts of other things that I don't know about. My advice: put together a prototype and see if it performs well enough for your requirements.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

android21
Posts: 13
Joined: Wed Jul 11, 2007 5:56 pm

Post by android21 » Sat Jul 14, 2007 8:47 am

oh Thanks for the reply, but iam really new to his jFreeChart, not even sure how i am going to connect to JDBC to get the data yet. So if the data comes in every microsecond, jFreeChart can't really help me?

Thank you

jwenting
Posts: 157
Joined: Sat Jul 15, 2006 7:46 am

Post by jwenting » Mon Jul 16, 2007 7:14 am

android21 wrote:oh Thanks for the reply, but iam really new to his jFreeChart, not even sure how i am going to connect to JDBC to get the data yet.
As soon as you have the data, jFreeChart can help you plot it.
So if the data comes in every microsecond, jFreeChart can't really help me?

Thank you
Most likely nothing can, as that interval is shorter than the time it takes to generate a chart using any library I've seen.

Locked