line chart?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Ronald

line chart?

Post by Ronald » Mon Mar 18, 2002 5:24 pm

First of all, excuse my ignorance.
I'd like to know how to draw line charts from an ascii file containing x-values and their corresponding y-value.
Thank you.
I'm desperately crying...(i'm french and my english is poor)

David Gilbert

Re: line chart?

Post by David Gilbert » Mon Mar 18, 2002 6:24 pm

JFreeChart doesn't read data out of ASCII files (although an XML-based format might be supported in the future) so you'll have to write some code to read the data. You could store the data you read using the XYSeries class, then add each series to an XYSeriesCollection class...and this can be used with JFreeChart.

Regards,

DG.

Locked