Hi,
I am using the Teechart Pro V6. I am drawing the cubic spline graphs. I am displaying the chart Grid also. I am able to add the points at the end of the graph by entering the values in the chart grid. Now my question is whether we can insert the point in the curve by inserting the row in the Grid and entering the values.
Thanks and Regards,
Rama
Inserting a point in the spline curve after shown the curve
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Rama,
It works fine here if you use CheckDataSource method in the OnBeforeDrawSeries event for the function series. I add the values in the ChartGrid at the source series at the next X value to the last one.
It works fine here if you use CheckDataSource method in the OnBeforeDrawSeries event for the function series. I add the values in the ChartGrid at the source series at the next X value to the last one.
Code: Select all
Private Sub Form_Load()
ChartGrid1.Chart = TChart1
TChart1.Series(0).FillSampleValues 10
TeeCommander1.Chart = TChart1
End Sub
Private Sub TChart1_OnBeforeDrawSeries()
TChart1.Series(1).CheckDataSource
End Sub
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
![]() ![]() ![]() ![]() ![]() ![]() |
Instructions - How to post in this forum |
Hi Rama,
unfortunately the TeeChart ChartGrid doesn't support the advanced Grid
features you require although cursor position can be obtained by returning
Rows.Row & Cols.Col from the OnClick event of the Grid.
unfortunately the TeeChart ChartGrid doesn't support the advanced Grid
features you require although cursor position can be obtained by returning
Rows.Row & Cols.Col from the OnClick event of the Grid.
Pep Jorge
http://support.steema.com
http://support.steema.com