VC++ SetPointColor problem
Posted: Wed Jan 07, 2004 7:11 pm
Hi,
I need to change color of a part of the curve within one series
like in example below:
m_Chart1.AddSeries(scFastLine);
m_Chart1.Series(0).SetPointColor(i, RGB(0, 255, 255);
m_Chart1.Series(0).SetColorEachPoint(TRUE);
for(i=0; i<100; i++)
m_Chart1.Series(0).AddXY(i, i,"x", 0);
for(i=0; i<50; i++) // try to change color of first half
m_Chart1.Series(0).SetPointColor(i, RGB(0, 255, 0);
SetPointColor doesn't seem to work, this way, any ideas?
Documentation is very, very limited...
thanks!
I need to change color of a part of the curve within one series
like in example below:
m_Chart1.AddSeries(scFastLine);
m_Chart1.Series(0).SetPointColor(i, RGB(0, 255, 255);
m_Chart1.Series(0).SetColorEachPoint(TRUE);
for(i=0; i<100; i++)
m_Chart1.Series(0).AddXY(i, i,"x", 0);
for(i=0; i<50; i++) // try to change color of first half
m_Chart1.Series(0).SetPointColor(i, RGB(0, 255, 0);
SetPointColor doesn't seem to work, this way, any ideas?
Documentation is very, very limited...
thanks!