Format point differently from others in the series

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Paul
Newbie
Newbie
Posts: 18
Joined: Fri Jan 09, 2004 5:00 am

Format point differently from others in the series

Post by Paul » Thu Jun 23, 2005 1:24 pm

Hi,

How do I change the color of an individual point in a series. Currently all the points are blue circles with an inter-connecting red line (see below). I wish to format the point representing the most latest reading differently from the rest. In the example below it would be (270, 200).

Code: Select all

windRoseSeries1.Pen.Color = System.Drawing.Color.Red
windRoseSeries1.Pointer.Brush.Color = System.Drawing.Color.Blue
windRoseSeries1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle
windRoseSeries1.Add(0, 50)
windRoseSeries1.Add(90, 100)
windRoseSeries1.Add(180, 150)
windRoseSeries1.Add(270, 200)
Thanks,

Paul

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

Post by Narcís » Mon Jun 27, 2005 8:46 am

Hi Paul,

You could use any Add method override that allows you setting the point color as:

Code: Select all

windRose1.Add(270, 200, Color.Yellow);
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

Paul
Newbie
Newbie
Posts: 18
Joined: Fri Jan 09, 2004 5:00 am

Post by Paul » Thu Jun 30, 2005 3:55 pm

Hi narcis,

Thanks for the reply. Tried that but no luck.

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

Post by Narcís » Thu Jun 30, 2005 4:02 pm

Hi Paul,

Code below works fine with latest v1 and v2 releases available at our website. Just drop a TChart into a WinForm, add a WindRose series to it and add the following code.

Code: Select all

		private void Form1_Load(object sender, System.EventArgs e)
		{
			windRose1.Pen.Color = System.Drawing.Color.Red; 
			windRose1.Pointer.Brush.Color = System.Drawing.Color.Blue;
			windRose1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle;
			windRose1.Add(0, 50);
			windRose1.Add(90, 100);
			windRose1.Add(180, 150); 
			windRose1.Add(270, 200,Color.Yellow);
		}
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

Post Reply