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 1893

Summary: Axis Label format not rendering.
Product: VCL TeeChart Reporter: christopher ireland <chris>
Component: AxisAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED NOTABUG    
Severity: major CC: d.berg, marc, peter.carr, sandra
Priority: High    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: screenshot

Description christopher ireland 2017-07-17 09:24:06 EDT
Created attachment 772 [details]
screenshot

Using the following code:

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.View3D := False;
  Chart1.Axes.Bottom.SetMinMax(1, 10);
  Chart1.Axes.Bottom.Items.Add(2, '2');
  Chart1.BottomAxis.Items.Add(5, '5');
  // Make bottom axis tick labels big and red
  Chart1.BottomAxis.LabelsFont.Size := 30;
  Chart1.BottomAxis.LabelsFont.Color := clRed;
end;

and then moving the mouse over the chart causes the bottom axis label formatting to be lost, as seen in the attached screenshot.
Comment 1 marc meumann 2021-04-27 05:44:27 EDT
Recommended to use Items' format when modifying custom Axis Item characteristics.

eg.
  for i := 0 to Chart1.Axes.Bottom.Items.Count-1 do
    Chart1.Axes.Bottom.Items[i].Format.Font.Size := 30;