title: ASP.Net MS Chart Control Pie Chart: remove unwanted padding
body: <p>HI</p>
  
  <p>im trying to create simple pie chart using the MS Chart controls.  When my pie chart gets rendered in the browser i get padding around the pie chart that i cant get rid of. i would like the pie chart to sit up against the edge of the image with no padding or margin. Any ideas on how i can achieve this?</p>
  
  <p>in my code below the padding is highlighted  in blue.  i.e Chart1.BackColor = System.Drawing.Color.Blue;</p>
  
  <pre><code> &lt;script type="text/C#" runat="server"&gt;
          protected void Page_Load(object sender, EventArgs e)
          {
              //Set the chart type
              Chart1.Series["Series1"].ChartType = SeriesChartType.Pie;
  
              //add points
              Chart1.Series["Series1"].Points.AddY(12);
              Chart1.Series["Series1"].Points.AddY(45);
              Chart1.Series["Series1"].Points.AddY(67);
  
              //set back color of chart object
              Chart1.BackColor = System.Drawing.Color.Blue;
  
              //set back color of chart area
              Chart1.ChartAreas["ChartArea1"].BackColor = System.Drawing.Color.Green;
  
          }
      &lt;/script&gt;
  
      &lt;asp:Chart ID="Chart1" runat="server"&gt;
          &lt;Series&gt;
              &lt;asp:Series Name="Series1" ChartType="Pie"&gt;
              &lt;/asp:Series&gt;
          &lt;/Series&gt;
          &lt;ChartAreas&gt;
              &lt;asp:ChartArea Name="ChartArea1"&gt;
              &lt;/asp:ChartArea&gt;
          &lt;/ChartAreas&gt;
      &lt;/asp:Chart&gt;
  </code></pre>