Page 1 of 1

Axis title spaced apart from the axis label

Posted: Fri Nov 07, 2014 10:10 am
by 15052741
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

Re: Axis title spaced apart from the axis label

Posted: Fri Nov 07, 2014 11:15 am
by narcis
Hi Angelo,

You could try using an Annotation tool instead of the axis title. Something similar to what Yeray explained here.

Re: Axis title spaced apart from the axis label

Posted: Fri Nov 07, 2014 2:42 pm
by 15052741
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.

Re: Axis title spaced apart from the axis label

Posted: Fri Nov 07, 2014 3:26 pm
by narcis
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.

Re: Axis title spaced apart from the axis label

Posted: Fri Nov 07, 2014 4:01 pm
by 15052741
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.

Re: Axis title spaced apart from the axis label

Posted: Fri Nov 07, 2014 4:11 pm
by narcis
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.

Re: Axis title spaced apart from the axis label

Posted: Fri Nov 07, 2014 4:21 pm
by 15052741
Ok, I will install V2014 I purchased couple weeks ago.