TCandleSeries.LegendItemColor

TCandleSeries.LegendItemColor
TCandleSeries

function LegendItemColor(LegendIndex: Integer): TColor; override;

Unit
CandleCh

Description
This function is internally called by the Chart Legend when displaying a legend item symbol of a candle point.

In this case, a Candle series returns the corresponding color of a given candle point, depending if the candle color is "up" or "down".

The LegendIndex parameter is equivalent to ValueIndex when Legend Style is "lsValues".