Crosshair overlay in a subplot

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
pacobm
Posts: 5
Joined: Sun Mar 29, 2015 7:28 pm
antibot: No, of course not.

Crosshair overlay in a subplot

Post by pacobm » Sun Mar 29, 2015 7:38 pm

Hi all,

I'm having problems with the creation of a crosshai overlay with labels over a chart with a CombinedDomainXYPlot.
I've tested the crosshair overlay over a chart with a XYPlot and works fine, but I need this same feature in a chart with a CombinedDomainXYPlot.
I've tryed also the plot crosshair and works fine, but in this way I cannot have the labels to print the values (and this way repaints all the chart when the mouese is moved).

How can I make the same of CrosshairOverlayDemo1.java but in a XYPlot subplot in a CombinedDomainXYPlot.

Thanks in advance.

pacobm
Posts: 5
Joined: Sun Mar 29, 2015 7:28 pm
antibot: No, of course not.

Re: Crosshair overlay in a subplot

Post by pacobm » Tue Mar 31, 2015 12:12 pm

Anybody knows how to achieve this or if JFreeChart is enabled to do it?

pacobm
Posts: 5
Joined: Sun Mar 29, 2015 7:28 pm
antibot: No, of course not.

Re: Crosshair overlay in a subplot

Post by pacobm » Thu Apr 16, 2015 12:45 am

Really any suggestion? :roll:
So weird this feature is?

paradoxoff
Posts: 1634
Joined: Sat Feb 17, 2007 1:51 pm

Re: Crosshair overlay in a subplot

Post by paradoxoff » Thu Apr 16, 2015 11:55 am

At look at the source code of CrosshairOverlay shows that it is expecting a "normal" XYPlot.
I think you need to write your own Overlay (that could extend CrosshairOverlay) to achieve what you want.

pacobm
Posts: 5
Joined: Sun Mar 29, 2015 7:28 pm
antibot: No, of course not.

Re: Crosshair overlay in a subplot

Post by pacobm » Wed Apr 22, 2015 4:04 pm

paradoxoff wrote:At look at the source code of CrosshairOverlay shows that it is expecting a "normal" XYPlot.
I think you need to write your own Overlay (that could extend CrosshairOverlay) to achieve what you want.
Ok, I'll try this.
Thanks very much.

Locked