Jump to content
Software FX Community

Using DateTime on X axis


Scoob
 Share

Recommended Posts

 Hi, I'm trying to set my X axis to ultimately use an automatically scaled DateTime format.  I set the axis to DateTime using the smart tag wizard, but it will always reset to 'none' after I click accept.  The same thing will happen if I set it to Date.  If I manually set it to DateTime in code, it will reset to 'none' on program run.  I'm using the newest version of ChartFX for Visual Studio 2005.  What exactly is the problem, and how do I go about using DateTime on the X axis?

 Thanks

Link to comment
Share on other sites

You can only set it to a Date or DateTime format if you are assigning a DateTime column as your X-Values using databinding. In other words, when you go to the "Adjust Chart To Data" wizard, you must select a DateTime field, otherwise the Format will be validated and reverted back to None when databinding (either real or random data) occurs.

If you are not doing databinding but are going to pass the data by using the API (in your code) then you need to assign the X-Axis format in your code as well.

Link to comment
Share on other sites

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