Possible Bug in Legends

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
MocoTec
Newbie
Newbie
Posts: 1
Joined: Mon Jan 16, 2006 12:00 am

Possible Bug in Legends

Post by MocoTec » Mon Mar 19, 2007 1:41 pm

Just stumbled over something weird with the Legends - maybe this is a Bug. It's not mission critical to me :wink:

I drop a TChart on a Form, set "Legends Style" to "Series Name", Check "Inverted" and "Check Boxes" (that's my Chart-setup to reproduce this problem).

After adding some Series by code (TFastLineSeries), clicking on the checkboxes enables/disables a Series - but definitely not the one I wish to :shock:. Uncheck "Inverted" and everything works as expected.

My Idea: The Series-Display is inverted in the Legend - but the Checkboxes is not. They still enable/disable in the non-inverted order :wink:

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Mar 19, 2007 2:30 pm

Hi MocoTec,

This works fine for me here using TeeChart Pro v7.07 (v7.08 for BDS 2006), which is the latest version available at the client area, and using the code below. Which TeeChart version are you using? Does the code below work fine at your end? Could you please modify it so that we can reproduce the issue here?

Code: Select all

uses Series;

procedure TForm9.FormCreate(Sender: TObject);
var i: Integer;
begin
  Chart1.Legend.Inverted:=true;
  Chart1.Legend.CheckBoxes:=true;
  Chart1.Legend.LegendStyle:=lsSeries;

  for i := 0 to 10 do
  begin
    Chart1.AddSeries(TFastLineSeries.Create(self));
    Chart1[i].FillSampleValues();
  end;
end;
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply