Major ticks and minor ticks

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
franckgar
Advanced
Posts: 109
Joined: Thu Nov 04, 2004 5:00 am

Major ticks and minor ticks

Post by franckgar » Fri Jul 22, 2005 1:17 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Jul 22, 2005 1:48 pm

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;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

franckgar
Advanced
Posts: 109
Joined: Thu Nov 04, 2004 5:00 am

Post by franckgar » Fri Jul 22, 2005 2:53 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Jul 22, 2005 3:00 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply