# C1.Win.Chart.FlexChartBase.DrawChart

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Chart_FlexChartBase_DrawChart_" data-uid="C1.Win.Chart.FlexChartBase.DrawChart*">DrawChart Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Chart_FlexChartBase_DrawChart_" data-uid="C1.Win.Chart.FlexChartBase.DrawChart*"></a>
<h4 id="C1_Win_Chart_FlexChartBase_DrawChart_System_Drawing_Graphics_System_Drawing_Size_" data-uid="C1.Win.Chart.FlexChartBase.DrawChart(System.Drawing.Graphics,System.Drawing.Size)">DrawChart(Graphics, Size)</h4>
<div class="markdown level1 summary"><p>Draws chart on the specified graphics with specified size.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void DrawChart(Graphics g, Size sz)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub DrawChart(g As Graphics, sz As Size)</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="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a></td>
      <td><span class="parametername">g</span></td>
      <td><p>Graphics.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a></td>
      <td><span class="parametername">sz</span></td>
      <td><p>Size of chart.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_Chart_FlexChartBase_DrawChart_" data-uid="C1.Win.Chart.FlexChartBase.DrawChart*"></a>
<h4 id="C1_Win_Chart_FlexChartBase_DrawChart_System_Drawing_Graphics_System_Drawing_Point_System_Drawing_Size_" data-uid="C1.Win.Chart.FlexChartBase.DrawChart(System.Drawing.Graphics,System.Drawing.Point,System.Drawing.Size)">DrawChart(Graphics, Point, Size)</h4>
<div class="markdown level1 summary"><p>Draws chart on the specified graphics at the specified point with specified size.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual void DrawChart(Graphics g, Point pt, Size sz)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub DrawChart(g As Graphics, pt As Point, sz As Size)</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="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a></td>
      <td><span class="parametername">g</span></td>
      <td><p>Graphics.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.point">Point</a></td>
      <td><span class="parametername">pt</span></td>
      <td><p>Point.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a></td>
      <td><span class="parametername">sz</span></td>
      <td><p>Size of chart.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
