Hide label text
Posted: Fri Sep 04, 2009 8:39 am
I have a financial chart where I sometimes add another chart at the bottom with volume information. This volume chart has its own left axis which is created at runtime. Now I have a requirement to remove the labels on this Axis. Everything else shuold be the same (ticks, grid lines etc). I have tried the following where I hoped the last statement would remove the labels but it also removed the grid lines etc. Any ideas?
BRgds
Marius
Code: Select all
chCustom.CustomAxes.Add;
FaxVolumeAxis := chCustom.CustomAxes[chCustom.CustomAxes.Count-1];
FaxVolumeAxis.StartPosition := FNextAxisEnd - 18;
FaxVolumeAxis.EndPosition := FNextAxisEnd;
FaxVolumeAxis.Automatic := true;
FaxVolumeAxis.Grid.Visible := true;
FaxVolumeAxis.MinorTickCount := 0;
FaxVolumeAxis.OtherSide := false;
FaxVolumeAxis.Axis.Width := 1;
FaxVolumeAxis.Labels := false; // <<<----- remove labels
Marius