Jfreechart - single crosshair for multiple series

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
chrisrhyno2003
Posts: 30
Joined: Thu Jun 18, 2015 5:42 pm
antibot: No, of course not.

Jfreechart - single crosshair for multiple series

Post by chrisrhyno2003 » Fri Jul 03, 2015 12:04 am

Hi,

I am using ChartFactory to build a StackedXYAreaChart which has three series (the comparable key). I want to know if we can use the same crosshair for all the three series.
If yes, could someone share a snippet of their code? I couldn't get a copy of the JFreeChart Developer Guide and therefore I don't have the source code for the Demo program - CrosshairOverlayDemo2.java

Naxter
Posts: 45
Joined: Thu Jun 26, 2014 8:24 am
antibot: No, of course not.
Location: Germany, Aachen

Re: Jfreechart - single crosshair for multiple series

Post by Naxter » Fri Jul 03, 2015 7:19 am

I´ve googled for just 5 seconds and found this: http://read.pudn.com/downloads83/source ... java__.htm

It should be the source code, you are looking for, right?

chrisrhyno2003
Posts: 30
Joined: Thu Jun 18, 2015 5:42 pm
antibot: No, of course not.

Re: Jfreechart - single crosshair for multiple series

Post by chrisrhyno2003 » Mon Jul 06, 2015 7:26 pm

I did find that demo myself. That demo makes you to manually click a particular point on the series and only then it will display the actual values of the dataset. I am looking for the source code from the JFreeChart samples itself. Its called CrosshairOverlayDemo2.java

There, if you just hover the mouse over the graph, you get the crosshairs. I need something like that.

Locked