AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated 7.11.0 version of this document. Switch to the 8.4.0 version to see the up to date information.

class anychart.core.annotations.TrendChannel Improve this Doc

Extends: anychart.core.annotations.Base

Trend Channel annotation.

Methods Overview

Specific settings
getPlot()Returns the plot on which the annotation is drawn.
getType()Returns annotation type.
Axes and Scales
xScale()X-scale settings
yScale()Y-scale settings
Charts
getChart()Returns the chart on which the annotation is drawn.

Methods Description

getChart

Returns the chart on which the annotation is drawn.

getPlot

Returns the plot on which the annotation is drawn.

Returns:

anychart.core.stock.Plot - Stock plot.

getType

Returns annotation type.

Returns:

anychart.enums.AnnotationTypes | string - Annotation type

xScale

Getter for the X-scale.
Setter for the X-scale.

Params:

NameTypeDescription
valueanychart.scales.Base | anychart.scales.StockScatterDateTimeValue to set

Returns:

anychart.core.annotations.TrendChannel - Self instance for method chaining.

yScale

Getter for the Y-scale.

Returns:

anychart.scales.Base - Default scale value.
Setter for the Y-scale.

Params:

NameTypeDescription
valueanychart.scales.BaseY-scale to set.

Returns:

anychart.core.annotations.TrendChannel - Self instance for method chaining.