TeeChart2014 OCX - Line Chart - YAxis - Title

TeeChart for ActiveX, COM and ASP
Post Reply
Micro
Newbie
Newbie
Posts: 27
Joined: Thu Feb 20, 2014 12:00 am

TeeChart2014 OCX - Line Chart - YAxis - Title

Post by Micro » Fri Jun 27, 2014 9:23 am

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.
Attachments
YAxisLabelNotPositionedCorrectly.jpg
YAxisLabelNotPositionedCorrectly.jpg (27.55 KiB) Viewed 19053 times

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

Re: TeeChart2014 OCX - Line Chart - YAxis - Title

Post by Yeray » Fri Jun 27, 2014 3:29 pm

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.
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

Micro
Newbie
Newbie
Posts: 27
Joined: Thu Feb 20, 2014 12:00 am

Re: TeeChart2014 OCX - Line Chart - YAxis - Title

Post by Micro » Mon Jun 30, 2014 7:54 am

This is how it looked with TeeChart2012.ocx. The same text and the positioning was correct.
Attachments
LineChart_LabelPoistioning_2012.PNG
LineChart_LabelPoistioning_2012.PNG (9.03 KiB) Viewed 18966 times

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

Re: TeeChart2014 OCX - Line Chart - YAxis - Title

Post by Yeray » Tue Jul 01, 2014 9:52 am

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.
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

Micro
Newbie
Newbie
Posts: 27
Joined: Thu Feb 20, 2014 12:00 am

Re: TeeChart2014 OCX - Line Chart - YAxis - Title

Post by Micro » Tue Jul 01, 2014 3:11 pm

The problem occurred when exporting and the size is 363 x 105.

I will try to make a demo.

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

Re: TeeChart2014 OCX - Line Chart - YAxis - Title

Post by Yeray » Wed Jul 02, 2014 9:38 am

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"
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

Micro
Newbie
Newbie
Posts: 27
Joined: Thu Feb 20, 2014 12:00 am

Re: TeeChart2014 OCX - Line Chart - YAxis - Title

Post by Micro » Fri Jul 04, 2014 11:05 am

When can be expected for this fix to be available?

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

Re: TeeChart2014 OCX - Line Chart - YAxis - Title

Post by Yeray » Fri Jul 04, 2014 11:50 am

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.
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

Post Reply