ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Scatter Plots
Posted by Marc on Aug-29-2012 22:10
Hi,

I have a time series scatter plot, with points that are very close to each other, but not
exactly the same time.

On mouse over, I get my x coordinate and can find the closest point, but I want to find all
points where the vertical line at x passes through the drawn image of the point. I am using
the TriangleShape/InvertedTriangleShape and know its symbolSize if that helps. Is the size
in pixels where I can multiply by some numbers to convert it to a time range?

Thanks again for your help,
Marc

  Re: Scatter Plots
Posted by Peter Kwan on Aug-30-2012 03:07
Hi Marc,

You can use XYChart.getXValue to determine the x data value given an x-pixel coordinate.

Support the mouse is at pixel 334, and your symbol is 6 pixels wide. You may use getXValue(334 - 3) and getXValue(334 + 3) to determine the x-data range, and then search your data for symbols that fall within that range.

Hope this can help.

Regards
Peter Kwan