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
Major ticks and minor ticks
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Franck,
Yes, this can be done using negative lengths:
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;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
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
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
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Franck,
Yes, you are right. A solution would be increasing axes width:
However I've already added that to our defect list to be fixed for future releases.
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;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |