Page 1 of 1

Border color around series spots

Posted: Mon Apr 26, 2004 9:12 am
by 8122778
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

Posted: Mon Apr 26, 2004 10:28 am
by Marjan
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;

Single spot border color

Posted: Mon Apr 26, 2004 11:58 am
by 8122778
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.

Posted: Mon Apr 26, 2004 2:50 pm
by Chris
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;
}