# C1.Win.Chart.TrendLine

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Chart_TrendLine" data-uid="C1.Win.Chart.TrendLine" class="text-break">TrendLine Class
</h1>
  <div class="markdown level0 summary"><p>Represents a trend line for FlexChart and FinancialChart.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="C1.Chart.SeriesBase.html">SeriesBase</a></div>
    <div class="level2"><a class="xref" href="C1.Win.Chart.Series.html">Series</a></div>
    <div class="level3"><span class="xref">TrendLine</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Chart.html">C1.Win.Chart</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.FlexChart.10.dll</h6>
  <h5 id="C1_Win_Chart_TrendLine_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class TrendLine : Series, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class TrendLine
    Inherits Series
    Implements IDisposable</code></pre>
  </div>
  <h5 id="C1_Win_Chart_TrendLine_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>A trendline is a line superimposed on a chart revealing the overall direction
of data.
You may define a different fit type for each @see:TrendLine object that you
add to the @see:FlexChart series collection by setting the fitType property.</p>
</div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Chart_TrendLine__ctor" data-uid="C1.Win.Chart.TrendLine.#ctor">
          <a class="xref" href="C1.Win.Chart.TrendLine.-ctor.html#C1_Win_Chart_TrendLine__ctor">TrendLine()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an instance of TrendLine class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Chart_TrendLine_Coefficients" data-uid="C1.Win.Chart.TrendLine.Coefficients">
          <a class="xref" href="C1.Win.Chart.TrendLine.Coefficients.html#C1_Win_Chart_TrendLine_Coefficients">Coefficients</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the coefficients of equation.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Chart_TrendLine_FitType" data-uid="C1.Win.Chart.TrendLine.FitType">
          <a class="xref" href="C1.Win.Chart.TrendLine.FitType.html#C1_Win_Chart_TrendLine_FitType">FitType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the fit type of trend line.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Chart_TrendLine_MaxX" data-uid="C1.Win.Chart.TrendLine.MaxX">
          <a class="xref" href="C1.Win.Chart.TrendLine.MaxX.html#C1_Win_Chart_TrendLine_MaxX">MaxX</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the maximal x-value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Chart_TrendLine_MinX" data-uid="C1.Win.Chart.TrendLine.MinX">
          <a class="xref" href="C1.Win.Chart.TrendLine.MinX.html#C1_Win_Chart_TrendLine_MinX">MinX</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the minimal x-value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Chart_TrendLine_Order" data-uid="C1.Win.Chart.TrendLine.Order">
          <a class="xref" href="C1.Win.Chart.TrendLine.Order.html#C1_Win_Chart_TrendLine_Order">Order</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the order of trend line. The order defines number of
terms in polynom equation.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Chart_TrendLine_SampleCount" data-uid="C1.Win.Chart.TrendLine.SampleCount">
          <a class="xref" href="C1.Win.Chart.TrendLine.SampleCount.html#C1_Win_Chart_TrendLine_SampleCount">SampleCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the sample count for function calculation.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Chart_TrendLine_Approximate_System_Double_" data-uid="C1.Win.Chart.TrendLine.Approximate(System.Double)">
          <a class="xref" href="C1.Win.Chart.TrendLine.Approximate.html#C1_Win_Chart_TrendLine_Approximate_System_Double_">Approximate(double)</a>
        </td>
        <td class="markdown level1 summary"><p>Approximate y-value by given x.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Chart_TrendLine_GetChartType" data-uid="C1.Win.Chart.TrendLine.GetChartType">
          <a class="xref" href="C1.Win.Chart.TrendLine.GetChartType.html#C1_Win_Chart_TrendLine_GetChartType">GetChartType()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the chart type.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Chart_TrendLine_GetRegressionStatistics" data-uid="C1.Win.Chart.TrendLine.GetRegressionStatistics">
          <a class="xref" href="C1.Win.Chart.TrendLine.GetRegressionStatistics.html#C1_Win_Chart_TrendLine_GetRegressionStatistics">GetRegressionStatistics()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets statistical information about the regression.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Chart_TrendLine_GetValues_System_Int32_" data-uid="C1.Win.Chart.TrendLine.GetValues(System.Int32)">
          <a class="xref" href="C1.Win.Chart.TrendLine.GetValues.html#C1_Win_Chart_TrendLine_GetValues_System_Int32_">GetValues(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the array of data values.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Chart_TrendLine_OnDataSourceChanged" data-uid="C1.Win.Chart.TrendLine.OnDataSourceChanged">
          <a class="xref" href="C1.Win.Chart.TrendLine.OnDataSourceChanged.html#C1_Win_Chart_TrendLine_OnDataSourceChanged">OnDataSourceChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Fires when data source was changed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
