Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1041 - Modifying the Legend.Items[i].Text combined with a TLegendScrollBar gives infinite items in the legend
Summary: Modifying the Legend.Items[i].Text combined with a TLegendScrollBar gives inf...
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Tools (show other bugs)
Version: 140923
Hardware: PC Windows
: Low enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-12 09:30 EST by yeray alonso
Modified: 2014-12-12 09:36 EST (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2014-12-12 09:30:24 EST
Run the following code and scroll the legend. After showing the correct items, the legend continues allowing you to scroll showing empty strings/items.

uses Series, TeeLegendScrollBar;

procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
  Chart1.View3D:=false;

  Chart1.Tools.Add(TLegendScrollBar);

  for i:=0 to 15 do
   Chart1.AddSeries(TLineSeries).FillSampleValues;


  for i:=0 to Chart1.SeriesCount-1 do
    Chart1.Legend[i].Text:='MySeries'+IntToStr(i+1);
end;