ImageToGraph lazarus / 55-TAChart ---------------------------------------------------------------------- fpcoder · 2013-12-14 22:37 It would be convenient if ImageToGraph accepted the mouse X, Y coordinates. Then there is no need to create an intermediate variable just to call ImageToGraph. I added a small overloaded function to the source as a test, maybe it could be part of TAChart? Code: [Select]function ImageToGraph(const AX, AY: Integer): TDoublePoint; overload; .. function TChart.ImageToGraph(const AX, AY: Integer): TDoublePoint; begin   Result.X := XImageToGraph(AX);   Result.Y := YImageToGraph(AY); end; ---------------------------------------------------------------------- wp · 2013-12-14 23:05 But you can use the result of function Point (unit types) as input parameter for ImageToGraph: Code: [Select]var   p: TDoublePoint;   ...   p := Chart1.ImageToGraph(Point(X,Y)); ---------------------------------------------------------------------- fpcoder · 2013-12-15 19:04 Thats an ok solution! I use that now.