Page 1 of 1

Date Values on Horizontal Axis

Posted: Mon Jan 03, 2011 1:38 pm
by 15054354
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

Re: Date Values on Horizontal Axis

Posted: Mon Jan 03, 2011 3:48 pm
by yeray
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.

Re: Date Values on Horizontal Axis

Posted: Wed Jan 05, 2011 10:02 am
by 15054354
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 6933 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 6938 times
Thx

Re: Date Values on Horizontal Axis

Posted: Wed Jan 05, 2011 12:36 pm
by 10050769
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,