Page 1 of 1

Custom axis label disappearing

Posted: Tue Jan 22, 2019 11:19 am
by 16583355
Hello, I work with RadStudio 10.2 and Teechart 2018.25

I have custom axis on my chart. If i set left axis visible property to false, my custom axis label also disappeared.
I've attached tee file to this topic. You can reproduce this behaviour, by setting Left Axis visible property to false in Teechart Office.

Re: Custom axis label disappearing

Posted: Thu Jan 24, 2019 9:25 am
by yeray
Hello,

This happens because the CustomAxes don't "inflate" the chartRect like the default axes. You can workaround this setting some extra margin. Ie:

Code: Select all

procedure TForm1.CheckBox1Click(Sender: TObject);
begin
  Chart1.Axes.Left.Visible:=CheckBox1.Checked;

  if Chart1.Axes.Left.Visible then
     Chart1.MarginLeft:=16
  else
     Chart1.MarginLeft:=66;
end;