title: How to remove space between WPF Toolkit chart area and plot area?
body: <p>I am using chartingToolKit:Chart control. I want to remove the white space appear in between the chart and plot area. Attached the WPF sample and image of area to be removed.</p>
  
  <pre><code>&lt;Window x:Class="WpfApplication2.MainWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Title="MainWindow" Height="350" Width="525" xmlns:chartingToolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"&gt;
  
  
  &lt;Grid&gt;
      &lt;chartingToolkit:Chart x:Name="chart" Width="500" Height="300" Margin="0, 0, 0, 0"   LegendStyle="{StaticResource LegendStyle}"   &gt;
  
  
          &lt;chartingToolkit:AreaSeries ItemsSource="{Binding}"  
  
                                     DependentValuePath="Value"
  
                                     IndependentValuePath="Key"
  
                                     Background="Red"
  
                                      &gt;
  
  
          &lt;/chartingToolkit:AreaSeries&gt;
  
          &lt;chartingToolkit:Chart.Axes&gt;
              &lt;chartingToolkit:LinearAxis Orientation="X" ShowGridLines="False" Visibility="Hidden"&gt;
  
              &lt;/chartingToolkit:LinearAxis&gt;
              &lt;chartingToolkit:LinearAxis Orientation="Y" ShowGridLines="False" Visibility="Hidden"/&gt;
          &lt;/chartingToolkit:Chart.Axes&gt;
  
      &lt;/chartingToolkit:Chart&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>The area marked in red arrow must be removed</strong>
  <img src="https://i.stack.imgur.com/qtnq0.png" alt="alt text"></p>