# FarPoint.Win.Spread.SheetView.AddSparkline

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_SheetView_AddSparkline_" data-uid="FarPoint.Win.Spread.SheetView.AddSparkline*">AddSparkline Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_SheetView_AddSparkline_" data-uid="FarPoint.Win.Spread.SheetView.AddSparkline*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_AddSparkline_FarPoint_Win_Spread_Chart_SheetCellRange_FarPoint_Win_Spread_Model_CellRange_FarPoint_Win_Spread_SparklineType_FarPoint_Win_Spread_ExcelSparklineSetting_" data-uid="FarPoint.Win.Spread.SheetView.AddSparkline(FarPoint.Win.Spread.Chart.SheetCellRange,FarPoint.Win.Spread.Model.CellRange,FarPoint.Win.Spread.SparklineType,FarPoint.Win.Spread.ExcelSparklineSetting)">AddSparkline(SheetCellRange, CellRange, SparklineType, ExcelSparklineSetting)</h4>
<div class="markdown level1 summary"><p>Adds the sparkline.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ExcelSparklineGroup AddSparkline(SheetCellRange data, CellRange location, SparklineType type, ExcelSparklineSetting setting)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddSparkline(data As SheetCellRange, location As CellRange, type As SparklineType, setting As ExcelSparklineSetting) As ExcelSparklineGroup</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="FarPoint.Win.Spread.Chart.SheetCellRange.html">SheetCellRange</a></td>
      <td><span class="parametername">data</span></td>
      <td><p>Data</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.Model.CellRange.html">CellRange</a></td>
      <td><span class="parametername">location</span></td>
      <td><p>Location for the sparkline</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.SparklineType.html">SparklineType</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>Type of sparkline</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.ExcelSparklineSetting.html">ExcelSparklineSetting</a></td>
      <td><span class="parametername">setting</span></td>
      <td><p>Setting</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="FarPoint.Win.Spread.ExcelSparklineGroup.html">ExcelSparklineGroup</a></td>
      <td><p>The new created instance of the sparkline group.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_AddSparkline_" data-uid="FarPoint.Win.Spread.SheetView.AddSparkline*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_AddSparkline_FarPoint_Win_Spread_Chart_SheetCellRange___FarPoint_Win_Spread_Model_CellRange___FarPoint_Win_Spread_SparklineType_FarPoint_Win_Spread_ExcelSparklineSetting_" data-uid="FarPoint.Win.Spread.SheetView.AddSparkline(FarPoint.Win.Spread.Chart.SheetCellRange[],FarPoint.Win.Spread.Model.CellRange[],FarPoint.Win.Spread.SparklineType,FarPoint.Win.Spread.ExcelSparklineSetting)">AddSparkline(SheetCellRange[], CellRange[], SparklineType, ExcelSparklineSetting)</h4>
<div class="markdown level1 summary"><p>Adds the sparkline.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ExcelSparklineGroup AddSparkline(SheetCellRange[] data, CellRange[] location, SparklineType type, ExcelSparklineSetting setting)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddSparkline(data As SheetCellRange(), location As CellRange(), type As SparklineType, setting As ExcelSparklineSetting) As ExcelSparklineGroup</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="FarPoint.Win.Spread.Chart.SheetCellRange.html">SheetCellRange</a>[]</td>
      <td><span class="parametername">data</span></td>
      <td><p>Data</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.Model.CellRange.html">CellRange</a>[]</td>
      <td><span class="parametername">location</span></td>
      <td><p>Location of sparkline</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.SparklineType.html">SparklineType</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>Type of sparkline</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.ExcelSparklineSetting.html">ExcelSparklineSetting</a></td>
      <td><span class="parametername">setting</span></td>
      <td><p>Setting</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="FarPoint.Win.Spread.ExcelSparklineGroup.html">ExcelSparklineGroup</a></td>
      <td><p>The new created instance of the sparkline group.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_AddSparkline_" data-uid="FarPoint.Win.Spread.SheetView.AddSparkline*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_AddSparkline_System_String_System_String_FarPoint_Win_Spread_SparklineType_FarPoint_Win_Spread_ExcelSparklineSetting_" data-uid="FarPoint.Win.Spread.SheetView.AddSparkline(System.String,System.String,FarPoint.Win.Spread.SparklineType,FarPoint.Win.Spread.ExcelSparklineSetting)">AddSparkline(string, string, SparklineType, ExcelSparklineSetting)</h4>
<div class="markdown level1 summary"><p>Adds the sparkline.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ExcelSparklineGroup AddSparkline(string dataRef, string locationRef, SparklineType type, ExcelSparklineSetting setting)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddSparkline(dataRef As String, locationRef As String, type As SparklineType, setting As ExcelSparklineSetting) As ExcelSparklineGroup</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.string">string</a></td>
      <td><span class="parametername">dataRef</span></td>
      <td><p>Data reference</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">locationRef</span></td>
      <td><p>Location reference</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.SparklineType.html">SparklineType</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>Type of sparkline</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.ExcelSparklineSetting.html">ExcelSparklineSetting</a></td>
      <td><span class="parametername">setting</span></td>
      <td><p>Setting</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="FarPoint.Win.Spread.ExcelSparklineGroup.html">ExcelSparklineGroup</a></td>
      <td><p>The new created instance of the sparkline group.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
