Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
250
XamDataChart with Expression Blend Sample Data
posted

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

Parents
No Data
Reply
  • 30945
    Verified Answer
    Offline posted

    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

    DataChartWithSimpleSoureInBlend.zip
Children