TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
-
Paul
- Newbie
- Posts: 18
- Joined: Fri Jan 09, 2004 5:00 am
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
- 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);
-
Paul
- 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
- 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);
}