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

Summary: Wrong margin when labels are multiline in ttfHtml format
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: AxisAssignee: yeray alonso <yeray>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: screenshot

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;