Page 1 of 1

Teechart 2011 Legend Color Bug ?

Posted: Wed Nov 02, 2011 4:03 pm
by 16460030
Hi,
i have a TeeChart v2011.03.30407 problem with the syncronisation between series color and the legend color.
I have a program with 16 series with different colors and the option "Font Series Color" is checked.

When i start my program the legend has not the same color as the series color.

When I insert the following code in the FormActive function
//----------------------------------------------------------------------------------------

for(int i=0;i<16;i++)
Chart1->SeriesList->Items->Color = Chart1->SeriesList->Items->Color;

//----------------------------------------------------------------------------------------

the series color and the legend color equal but the color is different as the color in the object inspector.

IDE: C++Builder 5


with best regards,
Michael.

Re: Teechart 2011 Legend Color Bug ?

Posted: Thu Nov 03, 2011 11:58 am
by yeray
Hi Michael,

What series type are you using?

Re: Teechart 2011 Legend Color Bug ?

Posted: Thu Nov 03, 2011 3:26 pm
by 16460030
Hi Yeray,

TFastLineSeries

a sample with the different colors
http://fino.go-sys.de/image1.jpg

a sample with the code in the FormActive function.
http://fino.go-sys.de/image2.jpg

a sample with the correct colors
Series1->SeriesColor = clBlue;
Series2->SeriesColor = clRed;
Series3->SeriesColor = clGreen;

http://fino.go-sys.de/image3.jpg

Best Regards,
Michael.

Re: Teechart 2011 Legend Color Bug ?

Posted: Fri Nov 04, 2011 11:26 am
by yeray
Hello Michael,

I'm trying to reproduce it in a simple example project with just this code but I can't:

Code: Select all

void __fastcall TForm1::FormCreate(TObject *Sender)
{
  Chart1->View3D = false;
  Chart1->Legend->FontSeriesColor = true;

  for (int i=0; i<3; i++)
  {
    TFastLineSeries* fastLine = new TFastLineSeries(this);
    fastLine->ParentChart=Chart1;
    fastLine->FillSampleValues();
  }
}
Could you please modify it so we can reproduce the problem here? Or could you please send us a simple example project we can run as-id to reproduce the problem here?
Thanks in advance.

Re: Teechart 2011 Legend Color Bug ?

Posted: Fri Feb 24, 2012 9:15 am
by 16558860
Dear all

I use Dephi and got the same result. Legend and series colors are different but only at runtime.
When I use old Teechart version with the same software there is no bug with the colors.

In sourcecode I do not make any changes in colors, only configure Legend with Font Series color.

PS
I'm not sure but I use TQRChart with Quickreport5.x and it is every time a big problem to get the packages compiled without any error.

Best Regards

Re: Teechart 2011 Legend Color Bug ?

Posted: Tue Feb 28, 2012 11:24 am
by yeray
Hi,
mbw wrote:I use Dephi and got the same result. Legend and series colors are different but only at runtime.
When I use old Teechart version with the same software there is no bug with the colors.

In sourcecode I do not make any changes in colors, only configure Legend with Font Series color.
It would be helpful if you could arrange a simple example project we can run as-is to reproduce the problem here.
Thanks in advance.
mbw wrote:I'm not sure but I use TQRChart with Quickreport5.x and it is every time a big problem to get the packages compiled without any error.
If you find any problem with it any-time, don't hesitate to let us know and we'll try to help you preparing/compiling the packages.