Jump to content
Software FX Community

Date conversion in AxisY


jge78

Recommended Posts

Hello,

I've got a problem when trying to change the AxisY.LabelsFormat.Format property to datetime and i have numeric values too big to be represented as datetime (values over 2929977), We made a Try -- Catch for this exception, warning user not to use date format in this case, but We can't get the chart to refresh correctly after exception has been caugth, even if we force the format to none or numeric styles.

Is there a way to re - render the chart after an error like this?

Thanks in advance

Jorge

 

Link to comment
Share on other sites

Francisco,

We usually validate this kind of things, but, in this application we let the user modify most of chart properties, after the data has been bound to it, this is not a common error, but the problem is that the chart can't be refresh after such crash, even if i clear it and rebind it.

I send an attach with a sample app.

Link to comment
Share on other sites

For security reasons I can not execute this EXE. Please send source files instead.

Also, to review, if you are using your own UI to change the Axis format, you must validate it before setting it to the chart. Once you set it there is nothing you can do to prevent or catch this exception.

Link to comment
Share on other sites

Francisco:

 

As  i told you before, I know this is not a common error, but i think it would be a little complicate to validate data before trying to draw the chart, because we don't know the kind of fields and data the chart is going to be generated with.

I send the test source project, so you can check it.

 

Thanx!

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.

×
×
  • Create New...