Page 1 of 1

add data to the contour when I click the button

Posted: Mon Nov 24, 2014 7:15 am
by 15656007
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!

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

Posted: Mon Nov 24, 2014 10:01 am
by Christopher
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.