Date Values on Horizontal Axis

TeeChart for ActiveX, COM and ASP
Post Reply
Petar
Newbie
Newbie
Posts: 40
Joined: Tue Oct 06, 2009 12:00 am

Date Values on Horizontal Axis

Post by Petar » Mon Jan 03, 2011 1:38 pm

Hi,

I have an issue about the following scenario :
I create a graph by associating a moving average and then I turn off the main graph and I have no dates on the x-axis, so that when I open the Editing window, I flip the horizontal axis at the top, i perceive the dates, otherwise I see nothing on the bottom axis.

Thx

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

Re: Date Values on Horizontal Axis

Post by Yeray » Mon Jan 03, 2011 3:48 pm

Hi Petar,

If I understood well, the following code in VB6 should reproduce the situation you've described. However, I can still see the labels in the bottom axis.

Code: Select all

Private Sub Form_Load()  
  TChart1.Aspect.View3D = False
  
  TChart1.AddSeries scCandle
  TChart1.Series(0).FillSampleValues 20
  
  TChart1.AddSeries scLine
  TChart1.Series(1).SetFunction tfMovavg
  TChart1.Series(1).DataSource = TChart1.Series(0)
  
  TChart1.Series(0).Active = False
End Sub
And if I set the function to use the top axis, the labels are shown in the top axis, as expected:

Code: Select all

TChart1.Series(1).HorizontalAxis = aTopAxis
Note that the labels in an axis will be shown if is set to be visible, if there is a series linked to the axis and if you aren't using custom labels out of the axis range visible.
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

Petar
Newbie
Newbie
Posts: 40
Joined: Tue Oct 06, 2009 12:00 am

Re: Date Values on Horizontal Axis

Post by Petar » Wed Jan 05, 2011 10:02 am

Hi,

My issue is the following :

Initially, we had a main graph and moving average associated function :
NBPMoving.JPG
NBPMoving.JPG (95.8 KiB) Viewed 7047 times
And when we deselect the main graph, we have the following situation (we can't see X-values on the bottom axis) :
MovingOnly.JPG
MovingOnly.JPG (114.49 KiB) Viewed 7052 times
Thx

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Date Values on Horizontal Axis

Post by Sandra » Wed Jan 05, 2011 12:36 pm

Hello Petar,

Can you confirm us if code we made for you works? If works, please try to modify it or send us a simple project we can run as-is to reproduce the problem here.

Thanks,
Best Regards,
Sandra Pazos / 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

Post Reply