Auto Locking only to first series in dataset

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
robdocmagic
Posts: 7
Joined: Wed May 17, 2006 12:46 pm

Auto Locking only to first series in dataset

Post by robdocmagic » Thu May 18, 2006 12:47 pm

Hi,

I have one dataset with 3 series in it. The first series is data, the second is a moving average, and the 3rd is another set I need.

When the user clicks on the chart, it will auto lock to the closest data point for any of the series.

I would like it to auto lock only to a data point in the first series.

Can someone point me to the code that accomplishes determining the anchor point to "lock on". I have looked through the code for a while now and nothing is jumping out at me.

Thanks!

-Rob

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 » Fri May 19, 2006 10:16 am

It is handled by updateCrosshairValues() in AbstractXYItemRenderer.java.
David Gilbert
JFreeChart Project Leader

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

Locked