TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
-
Friisen
- Newbie
- Posts: 4
- Joined: Tue Apr 09, 2013 12:00 am
Post
by Friisen » Fri May 02, 2014 1:09 pm
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??
-
Christopher
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Post
by Christopher » Mon May 05, 2014 9:42 am
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();
}
-
Friisen
- Newbie
- Posts: 4
- Joined: Tue Apr 09, 2013 12:00 am
Post
by Friisen » Mon May 05, 2014 10:55 am
It works fantastic - Thank you!!
-
Christopher
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Post
by Christopher » Mon May 05, 2014 11:08 am
Friisen wrote:It works fantastic - Thank you!!
Excellent! You're very welcome