Page 1 of 1

Not able to set color for point series

Posted: Fri Jul 23, 2010 7:54 pm
by 15056363
I am using Activex v8 version of TeeChart.

I am using "scPoint" to display a few points and i am setting the point style as "psCross". However when i set the color to red (or any other color), the "cross" is always displayed in black color. Is the "SetColor" disabled for this style?

However, i am able to change the color if i set the point style as "psCircle" or "psTriangle".

Thanks,
Hari

Re: Not able to set color for point series

Posted: Mon Jul 26, 2010 12:07 pm
by yeray
Hi Hari,

You have to change the pen color when you use this style because it has no brush:

Code: Select all

TChart1.Series(0).asPoint.Pointer.Style = psCross
  TChart1.Series(0).asPoint.Pointer.Pen.Color = vbRed

Re: Not able to set color for point series

Posted: Mon Jul 26, 2010 5:09 pm
by 15056363
@Yeray

Thanks for the reply. I am able to change the color now :)

Hari

Re: Not able to set color for point series

Posted: Tue Jul 27, 2010 6:55 am
by yeray
Hi Hari,

You're welcome! :D