Jump to content
Software FX Community

Input String was not in a correct format


IDalton

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?

Thanks

Ian

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...