Looking to create a Bar Chart adn having a few issues...I have looked at multipl examples and cant seem to bind to a data sourceI think that I am having an issues with the ItemsSourceRight now I have the data returning to a listbox and that works fine....just need to convet it to a bar chart....Thanks<Grid >
<chartingToolkit:Chart Name="Charting" Title="Bar Chart">
<chartingToolkit:Chart.Series>
<chartingToolkit:PieSeries ItemsSource="{Binding Results2, Source={StaticResource Officer}}" IndependentValueBinding="{Binding Officer}" DependentValueBinding="{Binding IncidentNums}"/>
</chartingToolkit:Chart.Series>
</chartingToolkit:Chart>
</Grid>
Dim results2 = From g In featureSet
Order By CStr(g.Attributes("Officer")) Ascending
Group g By GroupKey = CStr(g.Attributes("Officer")) Into r = Group
Select New With {Key .Officer = GroupKey, Key .IncidentNums = r.Sum(Function(i) Convert.ToInt32(i.Attributes("IncidentNum")) / 10)}
Me.Results2.ItemsSource = Results2