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.FibonacciRetracement Improve this Doc

Extends: anychart.core.annotations.FibonacciBase

Fibonacci Retracement annotation.

Methods Overview

Specific settings
getPlot()Returns the plot on which the annotation is drawn.
getType()Returns annotation type.
levels()Getter for the fibonacci levels.
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

levels

Getter for the fibonacci levels.

Returns:

Array.<number> - List of annotations levels.
See listing.
var fibonacciArc = controller.getAnnotationAt(0);
var currentLevels = fibonacciArc.levels();
Setter for the fibonacci levels.

Params:

NameTypeDescription
valuesArray.<*>Value to set.

Returns:

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

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.FibonacciRetracement - 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.FibonacciRetracement - Self instance for method chaining.