![]() | 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: | Consider axis labels multiline when calculating the height of the Chart Rect | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Axis | Assignee: | yeray alonso <yeray> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | ||
| Priority: | --- | ||
| Version: | 20.170306 | ||
| Target Milestone: | v2017.20 | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| URL: | http://www.teechart.net/support/viewtopic.php?f=3&t=16327 | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
If you are setting multi-line labels through AxisValuesFormat/DateTimeFormat, only one line is considered when calculating the chart height. So some of these lines can be drawn out of the chart rect. Ie: uses Series; procedure TForm1.FormCreate(Sender: TObject); begin Chart1.Legend.Visible:=false; Chart1.View3D:=false; with Chart1.AddSeries(TFastLineSeries) as TFastLineSeries do begin //XValues.DateTime:=true; FillSampleValues; end; //Chart1.Axes.Bottom.DateTimeFormat:='dd/mm/yyyy' + sLineBreak + 'hh:mm' + sLineBreak + 'sss'; Chart1.Axes.Bottom.AxisValuesFormat:='#,##0.###'+sLineBreak+'hello'+sLineBreak+'world'; end;