Getting series Index of Mouse X Pos
Posted: Tue Nov 23, 2004 12:01 pm
Hi,
I've got a chart showing Measurements over Time using TFastLineSeries lines. The measurement result (amplitude) is plotted on the Y axis and the time scale is plotted on the X axis.
I also store detailed information about each measurement in a seperate array. The series line is filled using values from this array, meaning that each point in the series lines corresponds to an element in the array.
I have now added a vertical-line based CursorTool to the chart and would like to know the Index of the seriesline the cursor is currently over. When the user moves the vertical cursor line over the chart I would like to show the user the rest of the details for the area the cursor is currently over. I don't want to use the GetCursorValueIndex function since this looks at both the X and Y axis and the user has to move the mouse over the thin series line, which is understandebly quite difficult.
Any help will be greatly appreciated!
Delphi 7
TeeChart Pro 7
I've got a chart showing Measurements over Time using TFastLineSeries lines. The measurement result (amplitude) is plotted on the Y axis and the time scale is plotted on the X axis.
I also store detailed information about each measurement in a seperate array. The series line is filled using values from this array, meaning that each point in the series lines corresponds to an element in the array.
I have now added a vertical-line based CursorTool to the chart and would like to know the Index of the seriesline the cursor is currently over. When the user moves the vertical cursor line over the chart I would like to show the user the rest of the details for the area the cursor is currently over. I don't want to use the GetCursorValueIndex function since this looks at both the X and Y axis and the user has to move the mouse over the thin series line, which is understandebly quite difficult.
Any help will be greatly appreciated!
Delphi 7
TeeChart Pro 7