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
Annotations and markers outside data ranges
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
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
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


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
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

Re: Annotations and markers outside data ranges
Hi David,
I am also facing same issue. could you please let me know if the solution is available now.
Regards,
Pranav
I am also facing same issue. could you please let me know if the solution is available now.
Regards,
Pranav
-
- 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
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
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

