A discussion forum for JFreeChart (a 2D chart library for the Java platform).
-
Nadia
Post
by Nadia » Wed Mar 31, 2004 3:11 am
HI!
I found jfreechart last week, very funy!! But can we use mouse events on a chart ( example, modifying Histograms, Pie charts ect.. by draggig the mouse)
Thank you very much for your help.
Nadia.
-
heijho01
- Posts: 12
- Joined: Thu Jul 17, 2003 2:16 pm
Post
by heijho01 » Wed Mar 31, 2004 8:28 am
(As it was for 0.9.16)
You have to implement ChartMouseListener. This interface has to methods; chartMouseClicked and chartMouseMoved.
Later you can add this Listener to a
ChartPanel -> chartPanel.addChartMouseListener(myListener).
I hope I helped you with this.
Jeroen