\Kendo\Dataviz\UI\StockChartSeriesItemTrendline

A PHP class representing the trendline setting of StockChartSeriesItem.

Methods

forecast

The trendline forecast settings. By default, the trendline does not display a forecast.

Returns

\Kendo\Dataviz\UI\StockChartSeriesItemTrendline

Parameters

$value \Kendo\Dataviz\UI\StockChartSeriesItemTrendlineForecast|array

Example - using \Kendo\Dataviz\UI\StockChartSeriesItemTrendlineForecast

<?php
$trendline = new \Kendo\Dataviz\UI\StockChartSeriesItemTrendline();
$forecast = new \Kendo\Dataviz\UI\StockChartSeriesItemTrendlineForecast();
$after = 1;
$forecast->after($after);
$trendline->forecast($forecast);
?>

Example - using array

<?php
$trendline = new \Kendo\Dataviz\UI\StockChartSeriesItemTrendline();
$after = 1;
$trendline->forecast(array('after' => $after));
?>

order

The order (degree) of the Polynomial trendline. The default value is 2.Accepted values are from 2 to 6: * 2: a Quadratic polynomial trendline with a single extreme point (minimum or maximum) point. * 3: a Cubic polynomial trendline with up to 2 extreme points. * 4: a polynomial trendline of 4th degree with up to 3 extreme points. * 5: a polynomial trendline of 5th degree with up to 4 extreme points. * 6: a polynomial trendline of 6th degree with up to 5 extreme points.

Returns

\Kendo\Dataviz\UI\StockChartSeriesItemTrendline

Parameters

$value float

Example

<?php
$trendline = new \Kendo\Dataviz\UI\StockChartSeriesItemTrendline();
$trendline->order(1);
?>

period

The number of intervals to take when calculating averages. The value should be an integer greater than 2.

Returns

\Kendo\Dataviz\UI\StockChartSeriesItemTrendline

Parameters

$value float

Example

<?php
$trendline = new \Kendo\Dataviz\UI\StockChartSeriesItemTrendline();
$trendline->period(1);
?>
In this article
Not finding the help you need?