Page 1 of 1

Teechart legend color series

Posted: Fri Mar 15, 2024 6:01 am
by 16897695
Good morning,

Impossible to apply color to the legend.

when I create a single series the color in the legend applies correctly, on the other hand if I create a second series the legend colors are no longer applied. :?

Example :
Image

is there a setting to apply to have all the colors of the series in the legend ?

Thanks :)

Re: Teechart legend color series

Posted: Fri Mar 15, 2024 7:58 am
by yeray
Hello,

Do you have a simple example project we can run as-is to reproduce the problem here?
This seems to work as expected here:

Code: Select all

uses Chart, Series;

var Chart1: TChart;

procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
  Chart1:=TChart.Create(Self);

  with Chart1 do
  begin
    Parent:=Self;
    Align:=alClient;
    Color:=clWhite;
    Gradient.Visible:=False;
    Walls.Back.Color:=clWhite;
    Walls.Back.Gradient.Visible:=False;
    View3D:=False;

    for i:=0 to 1 do

    with TBarSeries(AddSeries(TBarSeries)) do
    begin
      Marks.Hide;
      FillSampleValues;
    end;
  end;
end;
bar_legend.png
bar_legend.png (10.36 KiB) Viewed 12965 times