Page 1 of 1

Adding PointSeries

Posted: Fri May 02, 2014 1:09 pm
by 16465595
Hi,

I have tried to add a new pointseries using

Code: Select all

new Steema.TeeChart.Styles.Points(tChart1.Chart);
Steema.TeeChart.Styles.Points Po = tChart1[tChart1.Series.Count-1];
But I can't get the 2nd line to work.

1) I would like to add a series and then get the last added series put into the variable Po - How do I do that??
2) The series added seems to be a line series - how do I add a Point Series??

Re: Adding PointSeries

Posted: Mon May 05, 2014 9:42 am
by Christopher
Hello,
Friisen wrote:1) I would like to add a series and then get the last added series put into the variable Po - How do I do that??
2) The series added seems to be a line series - how do I add a Point Series??
The following code works fine for me here in TeeChart.NET v2012:

Code: Select all

    private void test()
    {
      new Steema.TeeChart.Styles.Points(tChart1.Chart);
      Steema.TeeChart.Styles.Points Po = (Steema.TeeChart.Styles.Points)tChart1[tChart1.Series.Count - 1];
      Po.FillSampleValues();
    }

Re: Adding PointSeries

Posted: Mon May 05, 2014 10:55 am
by 16465595
It works fantastic - Thank you!!

Re: Adding PointSeries

Posted: Mon May 05, 2014 11:08 am
by Christopher
Friisen wrote:It works fantastic - Thank you!!
Excellent! You're very welcome :)