Inserting a point in the spline curve after shown the curve

TeeChart for ActiveX, COM and ASP
Post Reply
rama
Newbie
Newbie
Posts: 33
Joined: Thu Jul 29, 2004 4:00 am

Inserting a point in the spline curve after shown the curve

Post by rama » Fri Jul 15, 2005 6:57 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Jul 15, 2005 11:40 am

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.

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
Image Image Image Image Image Image
Instructions - How to post in this forum

rama
Newbie
Newbie
Posts: 33
Joined: Thu Jul 29, 2004 4:00 am

Post by rama » Mon Jul 18, 2005 8:44 am

Hi,

I am able to add a point after the last one. What I am looking is adding a point in between. For example I want to add a point between 5th and 6th point. First I do not know How to add a row in the chart grid.

Thanks and regards,
Rama

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Jul 18, 2005 4:43 pm

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.

Post Reply