add data to the contour when I click the button

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Candy
Newbie
Newbie
Posts: 57
Joined: Mon Apr 26, 2010 12:00 am
Contact:

add data to the contour when I click the button

Post by Candy » Mon Nov 24, 2014 7:15 am

Hello,
I want to add the data to the contour series when I click the button ,but it doesn't disappear. When I copy the same code in the Form_Load function ,it works well . Is there any thing I should to do? The attachment is my appliaction. Thanks!
Attachments
WindowsFormsApplication1.rar
(34.02 KiB) Downloaded 762 times

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: add data to the contour when I click the button

Post by Christopher » Mon Nov 24, 2014 10:01 am

Hello,

Yes, there seems to be a small problem with the Contour series here, however, it will work if you do:

Code: Select all

          contour1.Clear();
          contour1.Dispose();
          contour1 = new Steema.TeeChart.Styles.Contour(tChart1.Chart);
before filling the series in the button click event.
Best Regards,
Christopher Ireland / 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

Post Reply