Hi,
is it possible with JFreeChart having dynamic annotations/tooltips in the areas of a domain and/or range axis, i.e. outside of the chart drawing area?
When moving around over a subplot of a CombinedDomainXYPlot (x axis: DateAxis, y axis: NumberAxis) i would like it very much if i had detailed information about datetime and y value of
the current mouse/crosshairs location.
As an example please have a look at this screenshot:
If this is not possible what are good alternatives?
Thank you!
Dynamic Annotations over Domain/Range Axis
-
- Posts: 8
- Joined: Tue Jun 23, 2015 2:37 pm
- antibot: No, of course not.
-
- Posts: 513
- Joined: Wed Sep 12, 2007 3:18 pm
Re: Dynamic Annotations over Domain/Range Axis
You might look at CrosshairOverlayDemo1 seen here.
-
- Posts: 8
- Joined: Tue Jun 23, 2015 2:37 pm
- antibot: No, of course not.
Re: Dynamic Annotations over Domain/Range Axis
Thank you, John.
Meanwhile i have solved it quite similar, i.e. by showing an annotation near the crosshair center.
But i still wonder if it's possible to dynamically draw that information right over domain and range axis area.
Meanwhile i have solved it quite similar, i.e. by showing an annotation near the crosshair center.
But i still wonder if it's possible to dynamically draw that information right over domain and range axis area.
-
- Posts: 2
- Joined: Fri Apr 08, 2016 4:33 pm
- antibot: No, of course not.
Re: Dynamic Annotations over Domain/Range Axis
I'm trying to do this too: Show crosshair labels on the Axis, NOT on the plot (because it interferes with the data on the chart).
I have the crosshairs working except for where the labels are displayed. I am just adding annotation to the plot, like this:
plot.addAnnotation(aValue);//Shows on the plot, not the axis.
I'm not using the CrosshairOverlay. So would it be worth it to convert over to use the CrosshairOverlay?
Before I convert to CrosshairOverlay, I need to know if it will show the labels correctly, or will I have the same problem? For example:
Crosshair.setLabelVisible(true);//Will this show the label out on the Axis like I want?
I have the crosshairs working except for where the labels are displayed. I am just adding annotation to the plot, like this:
plot.addAnnotation(aValue);//Shows on the plot, not the axis.
I'm not using the CrosshairOverlay. So would it be worth it to convert over to use the CrosshairOverlay?
Before I convert to CrosshairOverlay, I need to know if it will show the labels correctly, or will I have the same problem? For example:
Crosshair.setLabelVisible(true);//Will this show the label out on the Axis like I want?
-
- Posts: 2
- Joined: Fri Apr 08, 2016 4:33 pm
- antibot: No, of course not.
Re: Dynamic Annotations over Domain/Range Axis
I guess it isn't possible