Page 1 of 1
TeeChart2014 OCX - Line Chart - YAxis - Title
Posted: Fri Jun 27, 2014 9:23 am
by 16668589
I have a line chart. I set the Title for YAxis. But the title is not positioned correctly. It is not at the start, center or end and it is cut.
The text should be "transactions / sec".
See attachment.
Re: TeeChart2014 OCX - Line Chart - YAxis - Title
Posted: Fri Jun 27, 2014 3:29 pm
by yeray
Hello,
The text looks to be too long for the chart height.
I'd suggest you to set a smaller font size.
Alternatively, I'd suggest you to try with an Annotation tool instead of using the Axis Title.
Re: TeeChart2014 OCX - Line Chart - YAxis - Title
Posted: Mon Jun 30, 2014 7:54 am
by 16668589
This is how it looked with TeeChart2012.ocx. The same text and the positioning was correct.
Re: TeeChart2014 OCX - Line Chart - YAxis - Title
Posted: Tue Jul 01, 2014 9:52 am
by yeray
Hello,
I can't reproduce the problem with the actual version and this code:
Code: Select all
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"
I may be missing some relevant property to reproduce the problem.
Can you reproduce the problem switching GDIPlus for GDI?
If you still find problems with it, could you please arrange a simple example project we can run as-is to reproduce the problem here?
Thanks in advance.
Re: TeeChart2014 OCX - Line Chart - YAxis - Title
Posted: Tue Jul 01, 2014 3:11 pm
by 16668589
The problem occurred when exporting and the size is 363 x 105.
I will try to make a demo.
Re: TeeChart2014 OCX - Line Chart - YAxis - Title
Posted: Wed Jul 02, 2014 9:38 am
by yeray
Hello,
Micro wrote:The problem occurred when exporting and the size is 363 x 105.
I will try to make a demo.
First note the two images you've posted have a different size. One is 373x115 and the other is, as you said, 363x105.
Anyway, I see the difference appeared in TeeChart VCL v2013.09 (note TeeChart ActiveX is a wrapper form TeeChart VCL).
I'll add this to the public tracker to be revised for future releases.
http://bugs.teechart.net/show_bug.cgi?id=825
In the meanwhile, the only workaround I can think on wound be using an Annotation tool instead of the Left Axis Title. Ie:
Code: Select all
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
TChart1.Aspect.GDIPlus.Active = False
TChart1.Environment.InternalRepaint
TChart1.Export.asBMP.Width = 363
TChart1.Export.asBMP.Height = 105
TChart1.Export.asBMP.SaveToFile "C:\\tmp\\testAXbmp.bmp"
Re: TeeChart2014 OCX - Line Chart - YAxis - Title
Posted: Fri Jul 04, 2014 11:05 am
by 16668589
When can be expected for this fix to be available?
Re: TeeChart2014 OCX - Line Chart - YAxis - Title
Posted: Fri Jul 04, 2014 11:50 am
by yeray
Hello,
I can't say that. I'd suggest you to add your mail to the CC list to be automatically notified when an update arrives.