Draw a point on an existing chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
erabard
Posts: 3
Joined: Mon Sep 29, 2008 3:18 pm

Draw a point on an existing chart

Post by erabard » Tue Oct 14, 2008 1:43 pm

Hi, anyone know if is possible to draw a point on an existing chart as show in this picture (the green point is 'hand-made' ^^ ): img374.imageshack.us/my.php?image=plot2jd1.jpg

I would like to draw a point in a specific time istant (like the green at time=3) and for example, eventually, at time 4 delete the point at 3 and draw a new one.
Thanks to all
Federico.

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 » Wed Oct 15, 2008 8:57 am

You could either use an annotation on the chart (e.g. XYShapeAnnotation) or modify the renderer to draw a circle at a particular point.
David Gilbert
JFreeChart Project Leader

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

Locked