XYDrawableAnnotation

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
ben_ross
Posts: 5
Joined: Wed Aug 13, 2003 1:53 pm

XYDrawableAnnotation

Post by ben_ross » Wed Aug 13, 2003 1:59 pm

I have just updated to version 0.9.11 and I've been trying to use the XYDrawableAnnotation class with a CircleDrawer (MarkerDemo1). It looks like the circle is being drawn in the correct place on the XYPlot, but the height and width are in Graphics2D pixels instead of Plot axis value sizes. Is there an easy way to have the size of the circle be based on values in the Plot axis (such as 10 Plot units)?

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 Aug 13, 2003 5:50 pm

It's not supported, but it is a good suggestion. Can you add a feature request to the database at SourceForge so I don't forget about it?
David Gilbert
JFreeChart Project Leader

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

Guest

alternative?

Post by Guest » Wed Aug 13, 2003 8:29 pm

If I was generating an XYScatterPlot and wanted to draw a circle about the origin indicating the average value. My current work around is to actually generate a separate series using 32 points on a circle, then add this new series to the current XYPlot dataset.

Is there a better way to do this?

The average series is plotted as 32 separate points in the Scatter graph, is there an easy way to change it into a line graph of a circle?

Locked