plot graph extracting data from text file

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
NAGRAJ
Posts: 1
Joined: Tue Apr 27, 2010 3:31 am
antibot: No, of course not.

plot graph extracting data from text file

Post by NAGRAJ » Tue Apr 27, 2010 3:41 am

i want to plot a bar graph using jfree chart by extracting data from text file and plot dynamically........plz help me as i'm a beginner in java.......

jsnel
Posts: 19
Joined: Thu Apr 19, 2007 12:00 pm

Re: plot graph extracting data from text file

Post by jsnel » Tue May 04, 2010 1:41 pm

You have 2 completely independent problems here:

1) Read values from a text file, interpret them as Java native variables (Integers, Doubles, etc) and put them into a format that can be converted into JFreeChart's internal data structure. (how to do this?)
2) Use JFreeChart to plot the converted data by means of a Bar Chart. (how to do this?)

Maybe, as you are a beginning in Java, you might want to start with something easier. Visualization of data is not exactly the first thing most people start with.
Alternatively you could also consider using an already pre-programmed tool like OpenOffice.org's Calc or Microsoft's Excel to visualize your data.
Creator of Glotaran, a software program developed for global and target analysis of time-resolved spectroscopy and microscopy data. Big fan of JFreeChart.

Locked