# GrapeCity.Documents.Excel.Drawing.IChart.AddChart

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_Drawing_IChart_AddChart_" data-uid="GrapeCity.Documents.Excel.Drawing.IChart.AddChart*">AddChart Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_Drawing_IChart_AddChart_" data-uid="GrapeCity.Documents.Excel.Drawing.IChart.AddChart*"></a>
<h4 id="GrapeCity_Documents_Excel_Drawing_IChart_AddChart_GrapeCity_Documents_Excel_Drawing_ChartType_System_Double_System_Double_System_Double_System_Double_" data-uid="GrapeCity.Documents.Excel.Drawing.IChart.AddChart(GrapeCity.Documents.Excel.Drawing.ChartType,System.Double,System.Double,System.Double,System.Double)">AddChart(ChartType, double, double, double, double)</h4>
<div class="markdown level1 summary"><p>Creates a chart at the specified location on the chart.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">IShape AddChart(ChartType chartType, double left, double top, double width, double height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function AddChart(chartType As ChartType, left As Double, top As Double, width As Double, height As Double) As IShape</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.Drawing.ChartType.html">ChartType</a></td>
      <td><span class="parametername">chartType</span></td>
      <td><p>The chart type</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">left</span></td>
      <td><p>The distance from the left edge of the chart to the left edge of the chart area, in points.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">top</span></td>
      <td><p>The distance from the top edge of the chart to the top edge of the chart area, in points.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the chart, in points.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the chart, in points.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.Drawing.IShape.html">IShape</a></td>
      <td><p>The <a class="xref" href="GrapeCity.Documents.Excel.Drawing.IShape.html">IShape</a> object.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
