Page 1 of 1

Format point differently from others in the series

Posted: Thu Jun 23, 2005 1:24 pm
by 8123414
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

Posted: Mon Jun 27, 2005 8:46 am
by narcis
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);

Posted: Thu Jun 30, 2005 3:55 pm
by 8123414
Hi narcis,

Thanks for the reply. Tried that but no luck.

Posted: Thu Jun 30, 2005 4:02 pm
by narcis
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);
		}