IDalton Posted May 4, 2007 Report Share Posted May 4, 2007 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 More sharing options...
Frank Posted May 4, 2007 Report Share Posted May 4, 2007 FieldUsage.RowHeading is to be used with Cross-Tab only. I think you may want to use FiledUsage.Label instead. Otherwise take a look at the documentation for Cross-Tab. Link to comment Share on other sites More sharing options...
IDalton Posted May 7, 2007 Author Report Share Posted May 7, 2007 That worked. thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.