# C1.WPF.Chart.TrendLine

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Chart_TrendLine" data-uid="C1.WPF.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.WPF.Chart.Series.html">Series</a></div>
    <div class="level2"><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><span class="xref">IValueProvider</span></div>
    <div><span class="xref">ISeries</span></div>
    <div><span class="xref">IStyleProvider</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Chart.html">C1.WPF.Chart</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Chart.dll</h6>
  <h5 id="C1_WPF_Chart_TrendLine_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class TrendLine : Series, IDisposable, IValueProvider, ISeries, IStyleProvider</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class TrendLine
    Inherits Series
    Implements IDisposable, IValueProvider, ISeries, IStyleProvider</code></pre>
  </div>
  <h5 id="C1_WPF_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_WPF_Chart_TrendLine__ctor" data-uid="C1.WPF.Chart.TrendLine.#ctor">
          <a class="xref" href="C1.WPF.Chart.TrendLine.-ctor.html#C1_WPF_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="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Chart_TrendLine_FitTypeProperty" data-uid="C1.WPF.Chart.TrendLine.FitTypeProperty">
          <a class="xref" href="C1.WPF.Chart.TrendLine.FitTypeProperty.html">FitTypeProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Chart.TrendLine.FitType.html#C1_WPF_Chart_TrendLine_FitType">FitType</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Chart_TrendLine_MaxXProperty" data-uid="C1.WPF.Chart.TrendLine.MaxXProperty">
          <a class="xref" href="C1.WPF.Chart.TrendLine.MaxXProperty.html">MaxXProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Chart.TrendLine.MaxX.html#C1_WPF_Chart_TrendLine_MaxX">MaxX</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Chart_TrendLine_MinXProperty" data-uid="C1.WPF.Chart.TrendLine.MinXProperty">
          <a class="xref" href="C1.WPF.Chart.TrendLine.MinXProperty.html">MinXProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Chart.TrendLine.MinX.html#C1_WPF_Chart_TrendLine_MinX">MinX</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Chart_TrendLine_OrderProperty" data-uid="C1.WPF.Chart.TrendLine.OrderProperty">
          <a class="xref" href="C1.WPF.Chart.TrendLine.OrderProperty.html">OrderProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Chart.TrendLine.Order.html#C1_WPF_Chart_TrendLine_Order">Order</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Chart_TrendLine_SampleCountProperty" data-uid="C1.WPF.Chart.TrendLine.SampleCountProperty">
          <a class="xref" href="C1.WPF.Chart.TrendLine.SampleCountProperty.html">SampleCountProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Chart.TrendLine.SampleCount.html#C1_WPF_Chart_TrendLine_SampleCount">SampleCount</a> dependency property.</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_WPF_Chart_TrendLine_Coefficients" data-uid="C1.WPF.Chart.TrendLine.Coefficients">
          <a class="xref" href="C1.WPF.Chart.TrendLine.Coefficients.html#C1_WPF_Chart_TrendLine_Coefficients">Coefficients</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the coefficients of equation.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Chart_TrendLine_FitType" data-uid="C1.WPF.Chart.TrendLine.FitType">
          <a class="xref" href="C1.WPF.Chart.TrendLine.FitType.html#C1_WPF_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_WPF_Chart_TrendLine_MaxX" data-uid="C1.WPF.Chart.TrendLine.MaxX">
          <a class="xref" href="C1.WPF.Chart.TrendLine.MaxX.html#C1_WPF_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_WPF_Chart_TrendLine_MinX" data-uid="C1.WPF.Chart.TrendLine.MinX">
          <a class="xref" href="C1.WPF.Chart.TrendLine.MinX.html#C1_WPF_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_WPF_Chart_TrendLine_Order" data-uid="C1.WPF.Chart.TrendLine.Order">
          <a class="xref" href="C1.WPF.Chart.TrendLine.Order.html#C1_WPF_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_WPF_Chart_TrendLine_SampleCount" data-uid="C1.WPF.Chart.TrendLine.SampleCount">
          <a class="xref" href="C1.WPF.Chart.TrendLine.SampleCount.html#C1_WPF_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_WPF_Chart_TrendLine_Approximate_System_Double_" data-uid="C1.WPF.Chart.TrendLine.Approximate(System.Double)">
          <a class="xref" href="C1.WPF.Chart.TrendLine.Approximate.html#C1_WPF_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_WPF_Chart_TrendLine_GetRegressionStatistics" data-uid="C1.WPF.Chart.TrendLine.GetRegressionStatistics">
          <a class="xref" href="C1.WPF.Chart.TrendLine.GetRegressionStatistics.html#C1_WPF_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_WPF_Chart_TrendLine_GetValues_System_Int32_" data-uid="C1.WPF.Chart.TrendLine.GetValues(System.Int32)">
          <a class="xref" href="C1.WPF.Chart.TrendLine.GetValues.html#C1_WPF_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_WPF_Chart_TrendLine_OnItemsSourceChanged" data-uid="C1.WPF.Chart.TrendLine.OnItemsSourceChanged">
          <a class="xref" href="C1.WPF.Chart.TrendLine.OnItemsSourceChanged.html#C1_WPF_Chart_TrendLine_OnItemsSourceChanged">OnItemsSourceChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Invoked when items source changes.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
