Trendline class

Renders the chart trend line

A trend line is a straight line that connects two or more price points and then extends into the future to act as a line of support. Trendlines provide Support for forward and backward forecastings.

Provides option to customize the trendline types, width, forwardForecast and backwardForecast.

Constructors

Trendline({bool enableTooltip, double intercept, String name, List<double> dashArray, Color color, TrendlineType type, double backwardForecast, double forwardForecast, double opacity, bool isVisible, double width, double animationDuration, String valueField, bool isVisibleInLegend, LegendIconType legendIconType, MarkerSettings markerSettings, int polynomialOrder, int period})
Creating an argument constructor of Trendline class.

Properties

animationDuration double
Determines the animation time of trendline. [...]
final
backwardForecast double
Specifies the backward forecasting of trendlines. [...]
final
color Color
Color of the trenline. [...]
final
dashArray List<double>
Pattern of dashes and gaps used to stroke the trendline. [...]
final
enableTooltip bool
Enables the tooltip for trendlines. [...]
final
forwardForecast double
Specifies the forward forecasting of trendlines. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
intercept double
Specifies the intercept value of the trendlines. [...]
final
isVisible bool
Determines the visiblity of the trendline. [...]
final
isVisibleInLegend bool
Show/hides the legend for trenline. [...]
final
legendIconType LegendIconType
Specifies the type of legend icon for trendline. [...]
final
markerSettings MarkerSettings
Settings to configure the Marker of trendline. [...]
final
name String
Provides the name for trendline. [...]
final
opacity double
Opacity of the trendline. [...]
final
period int
Specifies the period for moving average trendline. [...]
final
polynomialOrder int
Specifies the order of te polynomial for polynomial trendline. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type TrendlineType
Specifies the intercept value of the trendlines. [...]
final
valueField String
To choose the valueField(low or high) to render the trendline. [...]
final
width double
Width of trendlines. [...]
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited