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 2294 - Wrong margin when labels are multiline in ttfHtml format
Summary: Wrong margin when labels are multiline in ttfHtml format
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Axis (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: yeray alonso
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-06 06:18 EST by yeray alonso
Modified: 2020-03-06 06:19 EST (History)
0 users

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


Attachments
screenshot (9.38 KB, image/png)
2020-03-06 06:18 EST, yeray alonso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2020-03-06 06:18:28 EST
Created attachment 930 [details]
screenshot

Screenshot attached showing the wrong margin in the left side of the chart.

Code to reproduce:

constructor TForm1.Create(aOwner: TComponent);
var
  lValue: currency;
  I: Integer;
  lCaption: string;
begin
  inherited;
  for I:=1 to 5 do begin
    lValue:=Trunc(Random(1000));
    lCaption:=Format('Item #%d'+sLineBreak+'<b>%.0m</b>', [I, lValue]);
    Series1.AddBar(lValue, lCaption, clTeeColor);
  end;

  Chart1.Axes.Left.LabelsFormat.TextFormat:=ttfHtml;
end;