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 1803

Summary: Incorrect axis title position when using html
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: AxisAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: ---    
Version: 20.170306   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=3&t=16399
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: test project + screenshot

Description yeray alonso 2017-02-24 06:42:00 EST
Created attachment 723 [details]
test project + screenshot

Incorrect axis title position when angle = 0 (also when 90) and TextFormat = ttfHtml (multi line).
Simple to reproduce, but project attached with a screenshot.

uses Series, TeeConst;

var Chart1, Chart2: TChart;
    Series1: TBarSeries;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Caption:=TeeMsg_Version;

  Chart1:=TChart.Create(Self);
  Chart1.Parent:=Self;
  Chart1.Align:=alTop;

  Chart1.View3D := false;
  Chart1.AddSeries(TLineSeries);
  Chart1[0].FillSampleValues(50);
  Chart1.Axes.Left.Title.Text := 'Line 1<BR>Line 2';
  Chart1.Axes.Left.Title.TextFormat := ttfHtml;
  Chart1.Axes.Left.Title.Transparent := false;
  Chart1.Axes.Left.Title.Angle := 0;

  Chart2:=TChart.Create(Self);
  Chart2.Parent:=Self;
  Chart2.Align:=alClient;

  Chart2.View3D := false;
  Chart2.AddSeries(TLineSeries);
  Chart2[0].DataSource:=Chart1[0];
  Chart2.Axes.Left.Title.Text := 'Line 1<BR>Line 2';
  Chart2.Axes.Left.Title.TextFormat := ttfHtml;
  Chart2.Axes.Left.Title.Transparent := false;
  Chart2.Axes.Left.Title.Angle := 90;

  Self.Height:=Chart1.Height*2+32;
end;