# GrapeCity.Spreadsheet.Charts.ISeries.ErrorBar

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Charts_ISeries_ErrorBar_" data-uid="GrapeCity.Spreadsheet.Charts.ISeries.ErrorBar*">ErrorBar Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Charts_ISeries_ErrorBar_" data-uid="GrapeCity.Spreadsheet.Charts.ISeries.ErrorBar*"></a>
<h4 id="GrapeCity_Spreadsheet_Charts_ISeries_ErrorBar_GrapeCity_Spreadsheet_Charts_ErrorBarDirection_GrapeCity_Spreadsheet_Charts_ErrorBarInclude_GrapeCity_Spreadsheet_Charts_ErrorBarType_System_Double_System_Double_" data-uid="GrapeCity.Spreadsheet.Charts.ISeries.ErrorBar(GrapeCity.Spreadsheet.Charts.ErrorBarDirection,GrapeCity.Spreadsheet.Charts.ErrorBarInclude,GrapeCity.Spreadsheet.Charts.ErrorBarType,System.Double,System.Double)">ErrorBar(ErrorBarDirection, ErrorBarInclude, ErrorBarType, double, double)</h4>
<div class="markdown level1 summary"><p>Applies error bars to the series.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void ErrorBar(ErrorBarDirection direction, ErrorBarInclude include, ErrorBarType type, double amount = NaN, double negativeAmount = NaN)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub ErrorBar(direction As ErrorBarDirection, include As ErrorBarInclude, type As ErrorBarType, Optional amount As Double = NaN, Optional negativeAmount As Double = NaN)</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.Spreadsheet.Charts.ErrorBarDirection.html">ErrorBarDirection</a></td>
      <td><span class="parametername">direction</span></td>
      <td><p>The error bar direction.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.Charts.ErrorBarInclude.html">ErrorBarInclude</a></td>
      <td><span class="parametername">include</span></td>
      <td><p>The error bar parts to include.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.Charts.ErrorBarType.html">ErrorBarType</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>The error bar 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">amount</span></td>
      <td><p>The error amount. Used for only the positive error amount when <code class="paramref">type</code> is <a class="xref" href="GrapeCity.Spreadsheet.Charts.ErrorBarType.html#GrapeCity_Spreadsheet_Charts_ErrorBarType_Custom">Custom</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">negativeAmount</span></td>
      <td><p>The negative error amount when <code class="paramref">type</code> is <a class="xref" href="GrapeCity.Spreadsheet.Charts.ErrorBarType.html#GrapeCity_Spreadsheet_Charts_ErrorBarType_Custom">Custom</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
