Teechart legend color series

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Greg Ory
Newbie
Newbie
Posts: 1
Joined: Mon Mar 11, 2024 12:00 am

Teechart legend color series

Post by Greg Ory » Fri Mar 15, 2024 6:01 am

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 :)

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

Re: Teechart legend color series

Post by Yeray » Fri Mar 15, 2024 7:58 am

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 12942 times
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