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 1110 - Wrong number of items in the legend depending on the chart width, when bottom aligned
Summary: Wrong number of items in the legend depending on the chart width, when bottom...
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Legend (show other bugs)
Version: 150120
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-02 10:05 EST by yeray alonso
Modified: 2015-02-02 10:06 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 2015-02-02 10:05:53 EST
See the code below.
There are 4 series on the chart but depending on the chart width, the legend only shows 2 of them.

uses TeeProcs, TeEngine, Chart, Series;

var Chart1: TChart;

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

  Chart1.View3D:=false;
  Chart1.Legend.Alignment:=laBottom;

  Self.Height:=450;
  Self.Width:=320;

  for i:=0 to 3 do
    with Chart1.AddSeries(TLineSeries) do
    begin
      FillSampleValues();
      Title:='Series' + IntToStr(i) + ' with a long title';
    end;
end;