Jump to content
Software FX Community

Input String was not in a correct format


Recommended Posts

I have no idea what is going on. I put a chart on my form and I wanted a bar graph showing each analyst's credits he is following at the time. Listed below is my code:

Private Sub LoadGraphData(ByRef dt As DataTable, ByVal chart As ChartFX.WinForms.Chart) Try   chart.Data.Clear()   chart.Series.Clear()   chart.DataSourceSettings.Fields.Clear()

  chart.Gallery = ChartFX.WinForms.Gallery.Bar   chart.DataSourceSettings.Fields.Add(New FieldMap("Lastname", FieldUsage.RowHeading))   chart.DataSourceSettings.Fields.Add(New FieldMap("Result", FieldUsage.Value))   chart.DataSource = dt   Catch exp As Exception throw exp   End TryEnd Sub

what is wrong with this code that would cause this error. Now this is the first time I'm using a bar graph so maybe I have it setup wrong?



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.

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