Hello,
I'm trying to create a XamDataChart that pulls data from the Sample Data feature generated by Expression Blend.
The Sample Data source name is "CustomerSat", the 2 fields that need to be pulled are "CustomerSatNumber" and "Month".
"CustomerSatNumber" field contains a variety of numbers in the following format "97.52" etc..
"Month" field contains a variety of dates in the following format "07/01/12" etc..
I have added the references to my project, but I am having trouble getting the XamDataChart to display any information. Here is what I have so far:
<Grid x:Name="LayoutRoot" DataContext="{Binding Source={StaticResource CustomerSat}}" > <ig:XamDataChart> <ig:XamDataChart.Axes> <ig:NumericYAxis DataContext="{Binding Collection[0].CustomerSatNumber}" /> <ig:CategoryXAxis DataContext="{Binding Collection[0].Month}" /> </ig:XamDataChart.Axes> <ig:XamDataChart.Series> <ig:BarSeries DataContext="{Binding}"> <ig:BarSeries.YAxis> <ig:CategoryYAxis ItemsSource="{Binding Collection}"/> </ig:BarSeries.YAxis> </ig:BarSeries> </ig:XamDataChart.Series> </ig:XamDataChart> </Grid>
Thank you for reading,
Sebastian
Hello Sebastian,
Thank you for your post. I have been looking into it and I have created a sample application for you, that demonstrates how you can bind the data generated by the Expression Blend to XamDataChart.
If you need any further assistance on the matter please do not hesitate to ask.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
It worked, thank you!