Does the graphs

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

Does the graphs

Post by ofir » Wed Feb 14, 2001 2:17 pm

Dear all,

does the graphs can "move" ?


that is, when using XY Line graph, when a new x value
arrives to my XYDataSource, i want the left most x value
to disappear and the graph to be repaint.
It is possible ?

Thanks,
Ofir

Vijaya Natarajan

RE: Does the graphs

Post by Vijaya Natarajan » Wed Feb 14, 2001 8:13 pm

Do you mean that can you supply new DataSource to the graph.
Yes, sure, chart.setDataSource(data); where data is the
new XYDataSource that you want to show.
chart.setDataSource(data); will automatically set the data
and repaint the graph for you.
--Viji

David Gilbert

RE: Does the graphs

Post by David Gilbert » Sun Feb 18, 2001 7:39 am

You can replace the data source completely as Viji suggests. In the future I hope to implement a dynamic data source (SourceForge task id = 22711) that will make it easier to change the data for a chart.

Regards,

DG.

ofir

RE: Does the graphs

Post by ofir » Wed Feb 21, 2001 10:07 pm

Thank you very much !!

Locked