Hi, I'm struggling with the TChart framework to create a small application which draw quadratic functions. I am not very experienced with all the functionality of the framework. I hope the community can share some expertise.
My application:
Any 3 points form a quadratic/parabola. I managed to draw quadratic functions based on 3 points from user input using TLineSeries.
My problem:
Wat I would like to do is to create 3 shapes on the chart representing the 3 user input point. I would like to be able to move these points with the mouse and recalculate the quadratic. I have trouble with creating the 3 shapes on top of the chart. I have tried the DragMarks functionality, but these do not seem to work exactly as I would like to. Painting a square over the 3 points do display the points, but cannot be moved.
Somebody has a sugggestion?
Drawing Shapes on TCharts
Re: Drawing Shapes on TCharts
Hi,
Give it a try to the TRectangleTool. This tool supports drag and resize. I guess you aren't interested in resize, so you could disable it.
Give it a try to the TRectangleTool. This tool supports drag and resize. I guess you aren't interested in resize, so you could disable it.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Drawing Shapes on TCharts
Thanks for the suggestion. I will give it a try.
Regards,
Oscar
Regards,
Oscar