How to convert a pixel point to a chart point
Posted: Tue Feb 03, 2009 1:30 pm
How can I convert a point(x,y) from a mousemove event into a point of the chart x and Y axis?
Thanks in advance.
Marcel
Thanks in advance.
Marcel
Steema Software - Customer Support Forums
http://teechart.com/support/
Code: Select all
procedure TForm1.Chart1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
Caption := 'X: ' + floattostr(Chart1.Axes.Bottom.CalcPosPoint(X)) + ' Y: ' + floattostr(Chart1.Axes.Left.CalcPosPoint(Y));
end;