title: Creating a PieChart in Silverlight
body: <p>I am creating a dashboard in Silverlight. I am trying to create a pie chart as follows:</p>
  
  <pre><code>&lt;ria:DomainDataSource AutoLoad="True" Name="orderDomainDataSource" 
    QueryName="GetOrdersQuery"&gt;
    &lt;ria:DomainDataSource.DomainContext&gt;
      &lt;my:PresentationDomainContext /&gt;
    &lt;/ria:DomainDataSource.DomainContext&gt;
  &lt;/ria:DomainDataSource&gt;
  &lt;toolkit:Chart Name="chart1" Title=""&gt;
    &lt;toolkit:Chart.Series&gt;
     &lt;toolkit:PieSeries 
       ItemsSource="{Binding ElementName=orderDomainDataSource, Path=Data}" 
       IndependentValueBinding="{Binding Path=OrderDate.Month}" 
       DependentValueBinding="{Binding Path=TotalAmount}" /&gt;
    &lt;/toolkit:Chart.Series&gt;
  &lt;/toolkit:Chart&gt;
  </code></pre>
  
  <p>My data source has hundreds of orders. The orders span three months. I want to group the pie slices by month. Because of this reason, I set the IndependentValueBinding to OrderDate.Month. However, I noticed that the items are not automatically grouped. How do I declaratively group the data by month to show the amounts in this fashion?</p>
  
  <p>Thank you so much for your help! </p>