Spacing BottomAxis Labels

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
TonyHunt
Newbie
Newbie
Posts: 15
Joined: Mon Jan 15, 2007 12:00 am

Spacing BottomAxis Labels

Post by TonyHunt » Sun Mar 16, 2008 1:58 pm

I would like to space the bottom axis Labels mid-way between each of the vertical markers.

How would I approach this. I have the style of the axis set to talText and I can see there is a LabelsAlign value for the BottomAxis but I am unsure of the correct usage.

Best Wishes

Tony Hunt

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Mon Mar 17, 2008 10:31 am

Hi Tony,

We are not sure to understand what are you exactly trying to achieve. Could you please show it in a picture?

Thanks in advance
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Mon Mar 17, 2008 10:41 am

Hi Tony,

I forgot to tell you that you can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

TonyHunt
Newbie
Newbie
Posts: 15
Joined: Mon Jan 15, 2007 12:00 am

Post by TonyHunt » Mon Mar 17, 2008 11:37 am

Thanks. I have posted an entry in the newsgroup.

Best Wishes

Tony Hunt

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

Post by Narcís » Mon Mar 17, 2008 12:06 pm

Hi Tony,

Thanks for the images. You can achieve what you request replacing ticks for minorticks:

Code: Select all

  With Chart1.Axes.Bottom do
  begin
    Ticks.Visible:=false;
    MinorTickCount:=1;
    MinorTicks.Width:=2;
    MinorTickLength:=5;
    MinorGrid.Visible:=true;
    Grid.Visible:=false;
    MinimumOffset:=20;
    MaximumOffset:=20;
  end;

  Chart1.Axes.Left.Grid.Style:=psSolid;
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