Page 1 of 1
Major ticks and minor ticks
Posted: Fri Jul 22, 2005 1:17 pm
by 9339785
Hi,
I would like to configure minor and major ticks of my chart like this picture :
http://cjoint.com/?hwpP0D3KRt
Is there an option in the class TChartAxis to do it ?
Thanks,
Franck
Posted: Fri Jul 22, 2005 1:48 pm
by narcis
Hi Franck,
Yes, this can be done using negative lengths:
Code: Select all
With Chart1.Axes do
begin
Left.TickLength:=-10;
Left.Grid.Visible:=false;
Left.MinorTickLength:=-5;
Bottom.TickLength:=-10;
Bottom.Grid.Visible:=false;
Bottom.MinorTickLength:=-5;
end;
Posted: Fri Jul 22, 2005 2:53 pm
by 9339785
Here is the result of your solution :
http://cjoint.com/?hwrrZPG8aN
It's not bad but there is still a rest of the major and minor ticks on the wrong side of the lines.
How could it be improved ?
Franck
Posted: Fri Jul 22, 2005 3:00 pm
by narcis
Hi Franck,
Yes, you are right. A solution would be increasing axes width:
Code: Select all
With Chart1.Axes do
begin
Left.TickLength:=-10;
Left.Grid.Visible:=false;
Left.MinorTickLength:=-5;
Left.Axis.Width:=3;
Bottom.TickLength:=-10;
Bottom.Grid.Visible:=false;
Bottom.MinorTickLength:=-5;
Bottom.Axis.Width:=3;
end;
However I've already added that to our defect list to be fixed for future releases.