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 - Axis Label format not rendering.
Summary: Axis Label format not rendering.
Status: RESOLVED NOTABUG
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Axis (show other bugs)
Version: unspecified
Hardware: PC Windows
: High major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-17 09:24 EDT by christopher ireland
Modified: 2021-04-27 05:44 EDT (History)
4 users (show)

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


Attachments
screenshot (7.52 KB, image/png)
2017-07-17 09:24 EDT, christopher ireland
Details

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