# GrapeCity.Documents.Excel.Drawing.TrendlineType

## Content

<div class="doc-site-dotnet-api-container">




  <h1 id="GrapeCity_Documents_Excel_Drawing_TrendlineType" data-uid="GrapeCity.Documents.Excel.Drawing.TrendlineType" class="text-break">TrendlineType Enum
</h1>
  <div class="markdown level0 summary"><p>Specifies how the trendline that smoothes out fluctuations in the data is calculated.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Excel.Drawing.html">GrapeCity.Documents.Excel.Drawing</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Excel.dll</h6>
  <h5 id="GrapeCity_Documents_Excel_Drawing_TrendlineType_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public enum TrendlineType</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Enum TrendlineType</code></pre>
  </div>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    <thead>
    </thead></thead><tbody>
      <tr>
        <td id="GrapeCity_Documents_Excel_Drawing_TrendlineType_Exponential">Exponential</td>
        <td><p>Uses an equation y=ab^x to calculate that the least squares fit through points.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_Drawing_TrendlineType_Linear">Linear</td>
        <td><p>Uses the linear equation y = mx + b to calculate that the least squares fit through points.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_Drawing_TrendlineType_Logarithmic">Logarithmic</td>
        <td><p>Uses the equation y = c ln x + b to calculate that the least squares fit through points.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_Drawing_TrendlineType_MovingAvg">MovingAvg</td>
        <td><p>Uses a sequence of averages computed from parts of the data series. The number of points equals the total number of points in the series less the number specified for the period.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_Drawing_TrendlineType_Polynomial">Polynomial</td>
        <td><p>Uses an equation y = ax^6 + bx^5 + cx^4 + dx^3 + ex^2 + fx + g to calculate that the least squares fit through points.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_Drawing_TrendlineType_Power">Power</td>
        <td><p>Uses an equation y = ax^b to calculate that the least squares fit through points.</p>
</td>
      </tr>
    </tbody>
  </table>
</div>
