Custom Axes issue
Posted: Sun Jul 16, 2017 5:35 pm
To reproduce the issue, add a TChart to a FMX Multi-Device Application and insert the code below into the implementation section.
The code below adds two custom tick marks and labels to the TChart bottom axis and sets the axis labels to be large and red. It works fine in Delphi 10.1 Berlin with Teechart Pro v2017.21.170329 32 bit FMX. It does not work in Delphi 10.2 Tokyo with Teechart Pro v2017.22.170619 32 bit FMX, where the custom labels appear at default size and in black.
Is this a bug or am I doing something wrong. If a bug, is there a workaround until you fix it?
The code below adds two custom tick marks and labels to the TChart bottom axis and sets the axis labels to be large and red. It works fine in Delphi 10.1 Berlin with Teechart Pro v2017.21.170329 32 bit FMX. It does not work in Delphi 10.2 Tokyo with Teechart Pro v2017.22.170619 32 bit FMX, where the custom labels appear at default size and in black.
Is this a bug or am I doing something wrong. If a bug, is there a workaround until you fix it?
Code: Select all
uses
FMXTee.Series, System.UIConsts;
procedure TForm3.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 := claRed;
end;