Hi,
How can I define the exact number of ticks on each axis ?
Example : 4 ticks on bottom axis, and 4 minor-ticks between each ticks.
Thanks
Franck
Custom number of ticks
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Franck,
The number of ticks will be determined by the combination of axis Minimum and Maximum properties values and Increment property value. The number of minor ticks can be set using MinorTickCount property.
In the snippet below you'll have 5 ticks (at 0, 5, 10, 15 and 20 positions) and 2 minor ticks between each tick.
The number of ticks will be determined by the combination of axis Minimum and Maximum properties values and Increment property value. The number of minor ticks can be set using MinorTickCount property.
In the snippet below you'll have 5 ticks (at 0, 5, 10, 15 and 20 positions) and 2 minor ticks between each tick.
Code: Select all
With Chart1.Axes.Bottom do
begin
SetMinMax(0,20);
Increment:=5;
MinorTickCount:=2;
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 |