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
Axis title spaced apart from the axis label
-
- 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
Hi Angelo,
You could try using an Annotation tool instead of the axis title. Something similar to what Yeray explained here.
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 |
Instructions - How to post in this forum |
Re: Axis title spaced apart from the axis label
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.
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.
-
- 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
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.
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 |
Instructions - How to post in this forum |
Re: Axis title spaced apart from the axis label
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.
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.
-
- 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
Hi Angelo,
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.Angelo wrote:Here, there is a problem, the shape.angle property does not exist anymore at least at the V8.
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 |
Re: Axis title spaced apart from the axis label
Ok, I will install V2014 I purchased couple weeks ago.