Jump to content
Software FX Community

X-Axis Date format question


User (Legacy)
 Share

Recommended Posts

Hi,

I am using ChartFX client server 5.0.5. I have a graph with 1 series, x axis

is date and y axis is a numeric value. If I graph values for 1 month the

graph is created properly but when the data is for a week or two weeks the

x-axis has dates starting from 12/30/1899 and so on.

Also when I pass data for 1 month the Step property is still ignored and the

graph show every 7th x-axis value.

I have selected date in the graph property tab for x axis.

With oGraph

.Axis(AXIS_X).AutoScale = False

If (bMonthly) Then

.Axis(AXIS_X).STEP = 5

Else

.Axis(AXIS_X).STEP = 2

End If

.OpenDataEx COD_XVALUES, 1, 31

oRS.MoveFirst

iCnt = 0

Do Until (oRS.EOF)

.Series(0).Xvalue(iCnt) = CDate(oRS!myDate)

.Series(0).Yvalue(iCnt) = oRS!RTime

iCnt = iCnt + 1

oRS.MoveNext

Loop

.CloseData COD_VALUES

.RecalcScale

End With

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...