TChartSeries.ValueColor

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Sharpenski
Newbie
Newbie
Posts: 36
Joined: Wed Aug 24, 2016 12:00 am

TChartSeries.ValueColor

Post by Sharpenski » Fri Dec 16, 2016 1:43 pm

Hi,

When I set the ValueColor of a bar within a chart it changes as expected. Before doing this though I would like to recolour the whole series, seemingly removing the coloured bars from view. I attempted doing this using the SeriesColor property but found that the bars still remain. I understand that I could probably solve this by iterating over each bar and painting it back but is there a more elegant solution?

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

Re: TChartSeries.ValueColor

Post by Yeray » Fri Dec 16, 2016 2:21 pm

Hello,

If you assigned a color to each point, I'm afraid the only way to reset it is by looping the array of colors.
If you set clTeeColor to the points, then the series color will be used or the TeeColorPalette[ValueIndex] color if ColorEach is active.
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

Post Reply