Hello!
I have a line serie in a red color. I want now a portion of this line to be green.
I tried with SetColorEachPoint and SetPointColor but this doesn't work.
Any idea?
Thanks
Multiple colors on a line Serie
Hello,
The following syntax should work ok:
m_Chart1.Series(1).SetPointColor(2,RGB(0,255,0));
You mention you've tried SetPointColor without success, perhaps there's a different issue. I've tested this with a LineSeries. Please check the syntax and let us know if the problem still isn't cleared up.
Regards,
Marc Meumann
Steema Support
The following syntax should work ok:
m_Chart1.Series(1).SetPointColor(2,RGB(0,255,0));
You mention you've tried SetPointColor without success, perhaps there's a different issue. I've tested this with a LineSeries. Please check the syntax and let us know if the problem still isn't cleared up.
Regards,
Marc Meumann
Steema Support
I used exactly the same syntax (except that the serie was stored in a member variable of my class).
In fact, my line serie contains a lot of points (something like 2000 points). So, is the color just used on the POINTS or also on the line between the points ??? I need of course the second solution (I want a portion of my line to be displayed in green)
Thanks for quick response
In fact, my line serie contains a lot of points (something like 2000 points). So, is the color just used on the POINTS or also on the line between the points ??? I need of course the second solution (I want a portion of my line to be displayed in green)
Thanks for quick response
Hello,
The codeline (SetPointColor) modifies the Line colour itself and the Point colour for a LineSeries.
I've double-checked that with TeeChart AX v5 and v6.
Please check that you are not using a FastLineSeries as that Seriestype doesn't support individual colour setting for points (or line segments).
Regards,
Marc Meumann
Steema Support
The codeline (SetPointColor) modifies the Line colour itself and the Point colour for a LineSeries.
I've double-checked that with TeeChart AX v5 and v6.
Please check that you are not using a FastLineSeries as that Seriestype doesn't support individual colour setting for points (or line segments).
Regards,
Marc Meumann
Steema Support