Plot by hand on scatter plot

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Post Reply
henryblack
Posts: 1
Joined: Tue Oct 09, 2018 8:37 am
antibot: No, of course not.

Plot by hand on scatter plot

Post by henryblack » Tue Oct 09, 2018 8:39 am

Hello,

I'am a french student, so I'm sorry for my English.

I have a serie of point that I plot on a scatter JFreechart.
I would like to draw points by hand when I click on the graph and get back their coordinates.

Is it possible and how to do that ?

Thank you.
Have a good day.

John Matthews
Posts: 464
Joined: Wed Sep 12, 2007 3:18 pm

Re: Plot by hand on scatter plot

Post by John Matthews » Wed Oct 10, 2018 3:49 am

Add a ChartMouseListener to your ChartPanel and examine the ChartEntity associated with the ChartMouseEvent.

Post Reply