title: Creating Chart using DataVisualization.Charting in .NET 4.0
body: <p>I'm attempting to user System.Windows.Forms.DataVisualization.Charting to create a line chart.  I've been using the System.Windows.Controls.DataVisualization.Toolkit for a while now but would like to get rid of all of my .Net 3.5 references.  I cannot find any sources for examples of charts using DataVisualization.Charting</p>
  
  <p>Using System.Windows.Controls.DataVisualization.Toolkit...</p>
  
  <pre><code>&lt;DVC:Chart Name="mcChart" Width="Auto" Height="225" Padding="0" Margin="0,-5,0,0" &gt;
                                  &lt;DVC:Chart.Series&gt;
                                      &lt;DVC:LineSeries x:Name="lsActual" Title=" Expenditures" IndependentValueBinding="{Binding Month}" DependentValueBinding="{Binding Amt}" DataPointStyle="{StaticResource redLineDataPoint}" /&gt;
                                      &lt;DVC:LineSeries x:Name="lsBudget" Title=" Budget" IndependentValueBinding="{Binding Month}" DependentValueBinding="{Binding Amt}" DataPointStyle="{StaticResource blueLineDataPoint}"/&gt;
                                      &lt;DVC:LineSeries x:Name="lsProjection" Title=" Projection" IndependentValueBinding="{Binding Month}" DependentValueBinding="{Binding Amt}" DataPointStyle="{StaticResource greenLineDataPoint}" /&gt;
                                  &lt;/DVC:Chart.Series&gt;
                              &lt;/DVC:Chart&gt;
  </code></pre>
  
  <p>System.Windows.Forms.DataVisualization.Charting...</p>
  
  <p>?</p>
  
  <p>References</p>
  
  <pre><code>    xmlns:wfi="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
  xmlns:CHR="clr-namespace:System.Windows.Forms.DataVisualization.Charting;assembly=System.Windows.Forms.DataVisualization"
  xmlns:DVC="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
  </code></pre>