Page 1 of 1

Possible Bug in Legends

Posted: Mon Mar 19, 2007 1:41 pm
by 9041954
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:

Posted: Mon Mar 19, 2007 2:30 pm
by narcis
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.