Dynamic chart whose values changes on clicking

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
masandeep
Posts: 5
Joined: Tue Jan 31, 2006 5:54 pm

Dynamic chart whose values changes on clicking

Post by masandeep » Tue Jan 31, 2006 6:00 pm

I would like to implement a chart(say XYline chart) in which whenever i click on a point its value changes and is represented on graph.

It should be dynamic in nature.

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 » Thu Feb 02, 2006 5:32 pm

You need to add a ChartMouseListener to the panel, then respond to the events in your own code (for instance, by updating the dataset with a new value).
David Gilbert
JFreeChart Project Leader

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

Locked