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
Border color around series spots
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:
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
http://www.steema.com
Single spot border color
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.
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Hi --
You could try: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.
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/
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/