Hey guys,
I have a XAMDataChart i wanted to add a StackedColumnSeries.So I filled a Datatable from SQL that has 3 Columns:
Now I created a GroupBy:
GroupBy grouped = new GroupBy(); grouped.ItemsSource = dtTeamMonateGesamt.DefaultView; grouped.GroupMemberPath = "Monat"; grouped.KeyMemberPath = "Team"; grouped.ValueMemberPath = "Betrag";
But it stops with the error: AmbiguousMatchException. I'm not getting what does shall mean...
I just want the Monat as X-Axis. The Betrag as Value and Group that all by Team.
Hello Henrik,
Thank you for the update. I have gotten your sample and have been able to reproduce the behavior. I have done some looking into this matter and it seems you will want to bind to a list something else as the chart doesn’t support string indexers:
binding ado and xamdatachart
Hi, I have added a isolated Copy of my Project (locally filled Datatable). It has the same problem. What I figured out is, if I loop through the Dtatable and filla ObservableCollection, it works. But if it gets more data that would be hard to make.
The pload not worked... i added it on Dropbox: https://www.dropbox.com/s/jehysn56pu53k61/Nachtr%C3%A4geT.7z?dl=0
Hello,
Thank you for contacting Infragistics!
The best way for us to assist you is if you provide a small isolated sample that we can run and use for debugging locally. If you are unable able to provide an isolated sample I may be able to give suggestions if you provide the code for your page.