Page 1 of 1

A problem about surface's color

Posted: Fri Apr 21, 2006 3:43 am
by 9345723
Hi~

I have TeeChartV7.06 in BCB5 . I am trying to use a surface.

I world like to draw the color of surface like Pic1,but I have Pic2 now.(

I send the Pic at news://www.steema.net/steema.public.attachments

newsgroup.)

Is there anyway to do that?

I've already tried below code,but it's can't work

Series1->ColorRange(Series1->YValues, 0.190,0.2,clRed);
Series1->ColorRange(Series1->YValues, 0.180,0.190,clBlue);
Series1->ColorRange(Series1->YValues, 0.170,0.180,clBlack);
Series1->ColorRange(Series1->YValues, 0.160,0.170,clYellow);





for(i=0;i<Series1->Count();i++)
{
if ((Series1->YValue<0.2) & (Series1->YValue>0.190))
{ Series1->ValueColor = clRed; }
else
if ((Series1->YValue<0.190) & (Series1->YValue>0.180))
{ Series1->ValueColor = clYellow; }
else
if ((Series1->YValue<0.180) & (Series1->YValue>0.170))
{ Series1->ValueColor = clGreen; }
else
if ((Series1->YValue<0.170) & (Series1->YValue[i]>0.160))
{ Series1->ValueColor[i] = clBlue; }

}


Thanks fo your patience and help

Icys

Posted: Fri Apr 21, 2006 7:48 am
by narcis
Hi Icys,

As I told you in the newsgroups, to achieve that you need TIsoSurfaceSeries which beta version I've already sent to you.

I've also replied to your message on how to install the sources.