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 1483

Summary: Request for Row and Column properties in Legend
Product: VCL TeeChart Reporter: christopher ireland <chris>
Component: LegendAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: The Legend to obtain
The Legend which needs to be produced.

Description christopher ireland 2016-03-30 06:27:16 EDT
Created attachment 574 [details]
The Legend to obtain

To produce a Legend as per the attachment. 

Presently, code such as the following:

procedure TForm1.InitializeChart;
var t : Integer;
begin
   Chart1.View3D:=false;
   for t:=0 to 5 do
    Chart1.AddSeries(TLineSeries).FillSampleValues;

   With Chart1.Legend do
   begin
    ResizeChart:=false;
    Alignment:=laTop;
    CustomPosition:=true;
    Top:=100;
    Left:=100;
   end;
end;

produces a Legend whose number of columns cannot be specified programmatically.
Comment 1 christopher ireland 2016-03-30 06:28:45 EDT
Created attachment 575 [details]
The Legend which needs to be produced.
Comment 2 christopher ireland 2016-03-30 06:30:12 EDT
The Legend produced by this code:


procedure TForm1.InitializeChart;
var t : Integer;
begin
   Chart1.View3D:=false;
   for t:=0 to 5 do
    Chart1.AddSeries(TLineSeries).FillSampleValues;

   With Chart1.Legend do
   begin
    ResizeChart:=false;
    Alignment:=laTop;
    CustomPosition:=true;
    Top:=100;
    Left:=100;
   end;
end;

can be seen in the attachment called "The Legend to obtain". The Legend that instigated this feature request can be seen in the attachment called "The Legend which needs to be produced".