I use a Cursor Tool in with Style = cssVertical. I have an assigned series and the tool has an OnChange Event.
How is it possible to calculate the Y values for all visible series when I move the cursor tool?
I tried something like this:
Code: Select all
if MessenAktuell.Chart.SeriesCount > 0 then
for _i := 0 to MessenAktuell.Chart.SeriesCount - 1 do
if MessenAktuell.Chart[_i].Visible then begin
MessungGrid.Cells[0, _i + 1] := Chart.CustomAxes[_i].Title.Caption;
MessungGrid.Cells[1, _i + 1] := Format('%.3f', [MessenAktuell.Chart.CustomAxes[_i].CalcPosPoint(X)]);
end;
MessungGrid = StringGrid for Displaying the data
This won´t shot me correct Y values. Could you please give me a hint what´s wring here ?