Border color around series spots

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Lizabeth
Newbie
Newbie
Posts: 24
Joined: Thu Nov 13, 2003 5:00 am
Location: Sweden

Border color around series spots

Post by Lizabeth » Mon Apr 26, 2004 9:12 am

Is it possible to set the color of the border around a spot in a series?

I do not want it to remain black when I set the color of the spot to something else than black using the code:

mySeries.Color = Color.Blue;

Best regards
Elisabeth

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Mon Apr 26, 2004 10:28 am

Hi.

Yes, you can change the border pen properties via code. For example, if you want to change the border color to white, you could use the following code:

Code: Select all

      points1.FillSampleValues(10);
      points1.Pointer.Pen.Color = Color.White;
Marjan Slatinek,
http://www.steema.com

Lizabeth
Newbie
Newbie
Posts: 24
Joined: Thu Nov 13, 2003 5:00 am
Location: Sweden

Single spot border color

Post by Lizabeth » Mon Apr 26, 2004 11:58 am

Ok, but how do I set the color for one single spot, not for a whole series. I.e. I want some spots in a series to have a blue border and some a black one.

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Mon Apr 26, 2004 2:50 pm

Hi --
Ok, but how do I set the color for one single spot, not for a whole series. I.e. I want some spots in a series to have a blue border and some a black one.
You could try:

Code: Select all

// 
// points1.XValues
// 
this.points1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending;
this.points1.GetPointerStyle += new Steema.TeeChart.Styles.CustomPoint.GetPointerStyleEventHandler(this.points1_GetPointerStyle);

private void points1_GetPointerStyle(Steema.TeeChart.Styles.CustomPoint series, Steema.TeeChart.Styles.CustomPoint.GetPointerStyleEventArgs e) {
	if(e.ValueIndex == 3)
		points1.Pointer.Pen.Color = Color.Red;
	else
		points1.Pointer.Pen.Color = Color.Black;
} 
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Post Reply