Page 1 of 1

TChartSeries.ValueColor

Posted: Fri Dec 16, 2016 1:43 pm
by 16479009
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?

Re: TChartSeries.ValueColor

Posted: Fri Dec 16, 2016 2:21 pm
by yeray
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.