Axis title spaced apart from the axis label

TeeChart for ActiveX, COM and ASP
Post Reply
Angelo
Newbie
Newbie
Posts: 14
Joined: Wed Mar 04, 2009 12:00 am

Axis title spaced apart from the axis label

Post by Angelo » Fri Nov 07, 2014 10:10 am

Hy Guys.

I am trying to get my axis title a little bit spaced from the axis labels. For example: is there a way to my bottom axis title to be placed 10 or 20 pixels below the default position ?


Regards.


Angelo

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

Re: Axis title spaced apart from the axis label

Post by Narcís » Fri Nov 07, 2014 11:15 am

Hi Angelo,

You could try using an Annotation tool instead of the axis title. Something similar to what Yeray explained here.
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

Angelo
Newbie
Newbie
Posts: 14
Joined: Wed Mar 04, 2009 12:00 am

Re: Axis title spaced apart from the axis label

Post by Angelo » Fri Nov 07, 2014 2:42 pm

Hi Narcis.

Thank you for fast reply.

I will check the post you mentioned.

but let me take this opportunity to ask, why this can not implemented as a axis property ? Something like:

tchart1.axis.left.title.offsetposition x,y
tchart1.axis.bottom.title.offsetposition x,y

where x and y means how much the title position will be displaced in x/y direction from the default position

The same can be applied to the axis labels


Just a suggestion....



Let me check the other post.

Regards.

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

Re: Axis title spaced apart from the axis label

Post by Narcís » Fri Nov 07, 2014 3:26 pm

Hi Angelo,

Yes, custom position we use to call it. I have added your request to bugzilla (ID995) to be considered for inclusion in future releases. Feel free to sign up at bugzilla and add yourself to the CC List to receive automatic udpates.
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

Angelo
Newbie
Newbie
Posts: 14
Joined: Wed Mar 04, 2009 12:00 am

Re: Axis title spaced apart from the axis label

Post by Angelo » Fri Nov 07, 2014 4:01 pm

Narcis, I still have problems, now two... but let start for the simple.

I did open a project add a tchart control (V8...) and pasted the code on that post:


TChart1.Header.Clear
TChart1.Aspect.View3D = False

TChart1.Legend.Visible = False

TChart1.AddSeries scLine

TChart1.Series(0).Add 50000, "", clTeeColor
TChart1.Series(0).Add 0, "", clTeeColor

'TChart1.Axis.Left.Title.Caption = "transactions / sec"
TChart1.Panel.MarginLeft = 5
TChart1.Tools.Add tcAnnotate
With TChart1.Tools.Items(0).asAnnotation
.Text = "transactions / sec"
.Shape.Angle = 90
.Shape.Transparent = True
.Shape.CustomPosition = True
.Shape.Left = -30
.Shape.Top = 45
End With


Here, there is a problem, the shape.angle property does not exist anymore at least at the V8.

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

Re: Axis title spaced apart from the axis label

Post by Narcís » Fri Nov 07, 2014 4:11 pm

Hi Angelo,
Angelo wrote:Here, there is a problem, the shape.angle property does not exist anymore at least at the V8.
That was added in v9 (aka v201x). Alternatively you can custom draw in the chart canvas using the RotateLabel method. You'll find more information about custom drawing in tutorial 13. Tutorials can be found at TeeChart's program group.
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

Angelo
Newbie
Newbie
Posts: 14
Joined: Wed Mar 04, 2009 12:00 am

Re: Axis title spaced apart from the axis label

Post by Angelo » Fri Nov 07, 2014 4:21 pm

Ok, I will install V2014 I purchased couple weeks ago.

Post Reply