Annotations and markers outside data ranges

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
blueser
Posts: 23
Joined: Wed Sep 14, 2005 5:05 pm

Annotations and markers outside data ranges

Post by blueser » Wed Jun 04, 2008 9:02 pm

Hi,

we have some plots with annotations and markers that sometimes fall outside data ranges, and by default they're not drawn if auto-range is turned on.

Is there any way I could configure a XYPlot so that auto-range would automatically include annotations and markers?

Regards,

Andre

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 Jun 04, 2008 9:17 pm

Not currently. In the future, I'd like to add a flag to the annotations to state whether they should be included or excluded in the auto-range calculation...but of course that won't help you right now.
David Gilbert
JFreeChart Project Leader

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

blueser
Posts: 23
Joined: Wed Sep 14, 2005 5:05 pm

Post by blueser » Wed Jun 04, 2008 9:38 pm

Hi David, thks for the quick reply.

Well, I'll try to do it on my own, then. We are already extending NumberAxis and we have a wrapper for a JFreeChart, I thought maybe we could make our addMarker(...) and removeMarker(...) methods update a "markerRange" field on our range and domain axis, and we would override the getRange() method to consider these extra ranges as well (it would return the union of the data range and the marker range).

Does this make any sense? Any advice?

Regads,

Andre

PS: and, please, do consider adding support to this in the (near) future ;-)

plunavat
Posts: 29
Joined: Sun Jan 01, 2012 10:59 am
antibot: No, of course not.

Re: Annotations and markers outside data ranges

Post by plunavat » Sun Sep 23, 2012 7:25 am

Hi David,

I am also facing same issue. could you please let me know if the solution is available now.

Regards,
Pranav

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Annotations and markers outside data ranges

Post by david.gilbert » Sun Sep 23, 2012 5:49 pm

Unfortunately no work has been done on that, by me or by anyone else as far as I'm aware.
David Gilbert
JFreeChart Project Leader

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

Locked