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 - Incorrect axis title position when using html
Summary: Incorrect axis title position when using html
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Axis (show other bugs)
Version: 20.170306
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-24 06:42 EST by yeray alonso
Modified: 2017-02-24 06:42 EST (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments
test project + screenshot (30.77 KB, application/x-zip-compressed)
2017-02-24 06:42 EST, yeray alonso
Details

Note You need to log in before you can comment on or make changes to this bug.
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;