Dynamic Annotations over Domain/Range Axis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
ricochet99
Posts: 8
Joined: Tue Jun 23, 2015 2:37 pm
antibot: No, of course not.

Dynamic Annotations over Domain/Range Axis

Post by ricochet99 » Tue Jun 23, 2015 2:48 pm

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:

Image

If this is not possible what are good alternatives?

Thank you!

John Matthews
Posts: 513
Joined: Wed Sep 12, 2007 3:18 pm

Re: Dynamic Annotations over Domain/Range Axis

Post by John Matthews » Wed Jun 24, 2015 12:49 pm

You might look at CrosshairOverlayDemo1 seen here.

ricochet99
Posts: 8
Joined: Tue Jun 23, 2015 2:37 pm
antibot: No, of course not.

Re: Dynamic Annotations over Domain/Range Axis

Post by ricochet99 » Wed Jun 24, 2015 10:14 pm

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.

TradeHound
Posts: 2
Joined: Fri Apr 08, 2016 4:33 pm
antibot: No, of course not.

Re: Dynamic Annotations over Domain/Range Axis

Post by TradeHound » Thu Apr 28, 2016 10:43 pm

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?

TradeHound
Posts: 2
Joined: Fri Apr 08, 2016 4:33 pm
antibot: No, of course not.

Re: Dynamic Annotations over Domain/Range Axis

Post by TradeHound » Tue Jun 14, 2016 5:56 pm

I guess it isn't possible :(

Locked