How to customize the color of my series

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Eic
Newbie
Newbie
Posts: 18
Joined: Mon Apr 18, 2016 12:00 am

How to customize the color of my series

Post by Eic » Thu Sep 01, 2016 2:45 pm

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.

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: How to customize the color of my series

Post by Yeray » Fri Sep 02, 2016 9:46 am

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);
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Eic
Newbie
Newbie
Posts: 18
Joined: Mon Apr 18, 2016 12:00 am

Re: How to customize the color of my series

Post by Eic » Mon Sep 05, 2016 7:25 am

It works.

I just had an old version of TeeChart.

Sorry.

Post Reply