Crosshair question

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
ssaraceni
Posts: 14
Joined: Wed Apr 02, 2008 4:37 pm

Crosshair question

Post by ssaraceni » Thu May 15, 2008 3:20 pm

I use JFreeChart 1.0.9.
I have an XYSeriesCollection dataset with 5 XYSeries.
Is it possible to view DomainCrosshairVisible and RangeCrosshairVisible only for 2 of the series??
Simone

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Thu May 15, 2008 3:52 pm

That's an interesting idea, but currently not possible. What is your application for this feature, just out of interest? It probably wouldn't be hard to add a set of (per-series and default) flags to the renderer to control whether or not a series is "eligible" for crosshairs.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

ssaraceni
Posts: 14
Joined: Wed Apr 02, 2008 4:37 pm

Post by ssaraceni » Thu May 15, 2008 4:22 pm

Yes, i would use this feature for my application, actually I add a ToolTipGenerator only for 2 of the XYSeries of the dataset, but It's useful having methods like:
renderer.setSeriesToolTipGenerator(0, new XYTooltipListener());
for crosshair too.
Simone

Locked