![]() | Steema Issues DatabaseNote: 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. |
| Summary: | Wrong number of items in the legend depending on the chart width, when bottom aligned | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Legend | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | ||
| Priority: | --- | ||
| Version: | 150120 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| URL: | http://www.teechart.net/support/viewtopic.php?f=3&t=15411 | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
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;