Page 1 of 1

How to customize the color of my series

Posted: Thu Sep 01, 2016 2:45 pm
by 16478065
Hi,

How to customize the color of my series?

Code: Select all

	TBarSeries *serie = new TBarSeries(NULL);
	serie->SeriesColor = clRed;
The code does not change the value of SeriesColor property.

Thanks.

Re: How to customize the color of my series

Posted: Fri Sep 02, 2016 9:46 am
by yeray
Hello,

It should work fine. You may be missing to add the series to the chart and/or to populate the series. Ie:
This does it for me:

Code: Select all

  TBarSeries *serie = new TBarSeries(NULL);
  serie->SeriesColor = clRed;
  Chart1->AddSeries(serie);
  serie->FillSampleValues(6);

Re: How to customize the color of my series

Posted: Mon Sep 05, 2016 7:25 am
by 16478065
It works.

I just had an old version of TeeChart.

Sorry.