Top

class anychart.core.annotations.FibonacciFan Improve this Doc

Extends: anychart.core.annotations.FibonacciBase

Fibonacci Fan annotation.

Methods Overview

Specific settings
getPlot()Returns the plot on which the annotation is drawn.
getType()Returns annotation type.
hoverMarkers()Hover markers settings.
levels()Getter for the fibonacci levels.
markers()Markers settings.
selectMarkers()Select markers settings.
timeLevels()Getter for the time levels.
Axes and Scales
xScale()X-scale settings
yScale()Y-scale settings
Charts
getChart()Returns the chart on which the annotation is drawn.
Coloring
color()Color settings.
grid()Grid settings.
hoverGrid()Hover grid settings.
hoverStroke()Stroke settings.
hoverTrend()Hover trend settings.
selectGrid()Select grid settings.
selectStroke()Select stroke settings.
selectTrend()Select trend settings.
stroke()Stroke settings.
trend()Trend settings.
Interactivity
allowEdit()Interactivity settings.
Size and Position
hoverGap()Hover gap settings.
secondValueAnchor()Second value anchor settings
secondXAnchor()Second X anchor settings
valueAnchor()Value anchor settings
xAnchor()X anchor settings

Methods Description

allowEdit

Getter for an interactivity in the annotation.

Returns:

boolean - Interactivity settings.
See listing.
var currentAllowEdit = annotation.allowEdit();
Setter for an interactivity in the annotation.

Params:

Name Type Description
value * Whether to disable the interactivity in the annotation. If set to false, the interactivity is disabled in the annotation.

Returns:

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

Try it:

color

Getter for the annotation color.

Returns:

anychart.graphics.vector.Fill - The annotation color.
See listing.
var currentColor = annotation.color();
Setter for the color settings using an array or a string.

Params:

Name Type Description
value anychart.graphics.vector.Fill Color as an object or a string.

Returns:

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

getChart

Returns the chart on which the annotation is drawn.

Returns:

anychart.core.SeparateChart - Chart.

Try it:

getPlot

Returns the plot on which the annotation is drawn.

Returns:

anychart.core.stock.Plot - Stock plot.

Try it:

getType

Returns annotation type.

Returns:

anychart.enums.AnnotationTypes string - Annotation type

Try it:

grid

Getter for annotation grid settings.

Returns:

anychart.graphics.vector.Stroke - Grid settings.
See listing.
var currentGrid = annotation.grid();
Setter for the annotation grid by function.

Params:

Name Type Default Description
gridFunction function
function() {
 return anychart.color.darken(this.sourceColor);
}
Function that looks like function(){ // this.index - series index. // this.sourceColor - color returned by fill() getter. // this.iterator - series point iterator. return strokeValue; // type anychart.graphics.vector.Stroke or anychart.graphics.vector.ColoredFill }.

Returns:

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

Try it:

Setter for annotation grid settings. Learn more about stroke settings.

Params:

Name Type Default Description
value anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | function | null
Grid settings.
thickness number
1
Line thickness.
dashpattern string
Controls the pattern of dashes and gaps used to stroke paths.
lineJoin anychart.graphics.vector.StrokeLineJoin
Line join style.
lineCap anychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

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

Try it:

hoverGap

Getter for the hover gap.

Returns:

number - The hover gap value.
See listing.
var currentHoverGap = annotation.hoverGap();
Setter for the hover gap.
The contour size around annotation.

Params:

Name Type Description
value * Value to set.

Returns:

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

Try it:

hoverGrid

Getter for annotation hover grid settings.

Returns:

anychart.graphics.vector.Stroke - Grid settings.
See listing.
var currentHoverGrid = annotation.hoverGrid();
Setter for the annotation hover grid by function.

Params:

Name Type Default Description
gridFunction function
function() {
 return anychart.color.darken(this.sourceColor);
}
Function that looks like function(){ // this.index - series index. // this.sourceColor - color returned by fill() getter. // this.iterator - series point iterator. return strokeValue; // type anychart.graphics.vector.Stroke or anychart.graphics.vector.ColoredFill }.

Returns:

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

Try it:

Setter for annotation hover grid settings. Learn more about stroke settings.

Params:

Name Type Default Description
value anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | function | null
Grid settings.
thickness number
1
Line thickness.
dashpattern string
Controls the pattern of dashes and gaps used to stroke paths.
lineJoin anychart.graphics.vector.StrokeLineJoin
Line join style.
lineCap anychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

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

Try it:

hoverMarkers

Getter for data hover markers.

Returns:

anychart.core.ui.MarkersFactory - Markers instance.

Try it:

Setter for data hover markers.

Params:

Name Type Default Description
value Object | boolean | null | string
false
Data markers settings.

Returns:

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

hoverStroke

Getter for annotation hover stroke settings.

Returns:

anychart.graphics.vector.Stroke - Stroke settings.
See listing.
var currentHoverStroke = annotation.hoverStroke();
Setter for the annotation hover stroke by function.

Params:

Name Type Default Description
strokeFunction function
function() {
 return anychart.color.darken(this.sourceColor);
}
Function that looks like function(){ // this.index - series index. // this.sourceColor - color returned by fill() getter. // this.iterator - series point iterator. return strokeValue; // type anychart.graphics.vector.Stroke or anychart.graphics.vector.ColoredFill }.

Returns:

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

Try it:

Setter for annotation hover stroke settings. Learn more about stroke settings.

Params:

Name Type Default Description
color anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | function | null
Stroke settings.
thickness number
1
Line thickness.
dashpattern string
Controls the pattern of dashes and gaps used to stroke paths.
lineJoin anychart.graphics.vector.StrokeLineJoin
Line join style.
lineCap anychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

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

Try it:

hoverTrend

Getter for annotation hover trend settings.

Returns:

anychart.graphics.vector.Stroke - Trend settings.
See listing.
var currentHoverTrend = annotation.hoverTrend();
Setter for the annotation hover trend by function.

Params:

Name Type Default Description
trendFunction function
function() {
 return anychart.color.darken(this.sourceColor);
}
Function that looks like function(){ // this.index - series index. // this.sourceColor - color returned by fill() getter. // this.iterator - series point iterator. return strokeValue; // type anychart.graphics.vector.Stroke or anychart.graphics.vector.ColoredFill }.

Returns:

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

Try it:

Setter for annotation hover trend settings. Learn more about stroke settings.

Params:

Name Type Default Description
value anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | function | null
Trend settings.
thickness number
1
Line thickness.
dashpattern string
Controls the pattern of dashes and gaps used to stroke paths.
lineJoin anychart.graphics.vector.StrokeLineJoin
Line join style.
lineCap anychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

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

Try it:

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:

Name Type Description
values Array.<*> Value to set.

Returns:

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

Try it:

markers

Getter for data markers.

Returns:

anychart.core.ui.MarkersFactory - Markers instance.

Try it:

Setter for data markers.

Params:

Name Type Default Description
value Object | boolean | null | string
false
Data markers settings.

Returns:

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

secondValueAnchor

Getter for the second value anchor.

Returns:

* - The second value anchor.
See listing.
var controller = chart.annotations();
var annotation = controller.fibonacciFan();
var currentSecondValueAnchor = annotation.secondValueAnchor();
Setter for the second value anchor.

Params:

Name Type Description
Second * value anchor to set.

Returns:

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

Try it:

secondXAnchor

Getter for the second X anchor.

Returns:

* - The second X anchor.
See listing.
var controller = chart.annotations();
var annotation = controller.fibonacciFan();
var currentSecondXAnchor = annotation.secondXAnchor();
Setter for the second X anchor.

Params:

Name Type Description
Second * X anchor to set.

Returns:

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

Try it:

selectGrid

Getter for annotation select grid settings.

Returns:

anychart.graphics.vector.Stroke - Grid settings.
See listing.
var currentSelectGrid = annotation.selectGrid();
Setter for the annotation select grid by function.

Params:

Name Type Default Description
gridFunction function
function() {
 return anychart.color.darken(this.sourceColor);
}
Function that looks like function(){ // this.index - series index. // this.sourceColor - color returned by fill() getter. // this.iterator - series point iterator. return strokeValue; // type anychart.graphics.vector.Stroke or anychart.graphics.vector.ColoredFill }.

Returns:

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

Try it:

Setter for annotation select grid settings. Learn more about stroke settings.

Params:

Name Type Default Description
color anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | null
Grid settings.
thickness number
1
Line thickness.
dashpattern string
Controls the pattern of dashes and gaps used to stroke paths.
lineJoin anychart.graphics.vector.StrokeLineJoin
Line join style.
lineCap anychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

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

Try it:

selectMarkers

Getter for data select markers.

Returns:

anychart.core.ui.MarkersFactory - Markers instance.

Try it:

Setter for data select markers.

Params:

Name Type Default Description
value Object | boolean | null | string
false
Data markers settings.

Returns:

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

selectStroke

Getter for annotation select stroke settings.

Returns:

anychart.graphics.vector.Stroke - Stroke settings.
See listing.
var currentSelectStroke = annotation.selectStroke();
Setter for the annotation hover stroke by function.

Params:

Name Type Default Description
strokeFunction function
function() {
 return anychart.color.darken(this.sourceColor);
}
Function that looks like function(){ // this.index - series index. // this.sourceColor - color returned by fill() getter. // this.iterator - series point iterator. return strokeValue; // type anychart.graphics.vector.Stroke or anychart.graphics.vector.ColoredFill }.

Returns:

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

Try it:

Setter for annotation select stroke settings. Learn more about stroke settings.

Params:

Name Type Default Description
color anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | function | null
Stroke settings.
thickness number
1
Line thickness.
dashpattern string
Controls the pattern of dashes and gaps used to stroke paths.
lineJoin anychart.graphics.vector.StrokeLineJoin
Line join style.
lineCap anychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

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

Try it:

selectTrend

Getter for annotation select trend settings.

Returns:

anychart.graphics.vector.Stroke - Trend settings.
See listing.
var currentSelectTrend = annotation.selectTrend();
Setter for the annotation select trend by function.

Params:

Name Type Default Description
trendFunction function
function() {
 return anychart.color.darken(this.sourceColor);
}
Function that looks like function(){ // this.index - series index. // this.sourceColor - color returned by fill() getter. // this.iterator - series point iterator. return strokeValue; // type anychart.graphics.vector.Stroke or anychart.graphics.vector.ColoredFill }.

Returns:

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

Try it:

Setter for annotation select trend settings. Learn more about stroke settings.

Params:

Name Type Default Description
value anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | function | null
Trend settings.
thickness number
1
Line thickness.
dashpattern string
Controls the pattern of dashes and gaps used to stroke paths.
lineJoin anychart.graphics.vector.StrokeLineJoin
Line join style.
lineCap anychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

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

Try it:

stroke

Getter for annotation stroke settings.

Returns:

anychart.graphics.vector.Stroke - Stroke settings.
See listing.
var currentAnnotationStroke = annotation.stroke();
Setter for the annotation stroke by function.

Params:

Name Type Default Description
strokeFunction function
function() {
 return anychart.color.darken(this.sourceColor);
}
Function that looks like function(){ // this.index - series index. // this.sourceColor - color returned by fill() getter. // this.iterator - series point iterator. return strokeValue; // type anychart.graphics.vector.Stroke or anychart.graphics.vector.ColoredFill }.

Returns:

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

Try it:

Setter for annotation stroke settings. Learn more about stroke settings.

Params:

Name Type Default Description
color anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | function | null
Stroke settings.
thickness number
1
Line thickness.
dashpattern string
Controls the pattern of dashes and gaps used to stroke paths.
lineJoin anychart.graphics.vector.StrokeLineJoin
Line join style.
lineCap anychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

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

Try it:

timeLevels

Getter for the time levels.

Returns:

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

Params:

Name Type Description
values Array.<*> Value to set.

Returns:

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

Try it:

trend

Getter for annotation trend settings.

Returns:

anychart.graphics.vector.Stroke - Trend settings.
See listing.
var currentAnnotationTrend = annotation.trend();
Setter for the annotation trend by function.

Params:

Name Type Default Description
trendFunction function
function() {
 return anychart.color.darken(this.sourceColor);
}
Function that looks like function(){ // this.index - series index. // this.sourceColor - color returned by fill() getter. // this.iterator - series point iterator. return strokeValue; // type anychart.graphics.vector.Stroke or anychart.graphics.vector.ColoredFill }.

Returns:

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

Try it:

Setter for annotation trend settings. Learn more about stroke settings.

Params:

Name Type Default Description
value anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | function | null
Trend settings.
thickness number
1
Line thickness.
dashpattern string
Controls the pattern of dashes and gaps used to stroke paths.
lineJoin anychart.graphics.vector.StrokeLineJoin
Line join style.
lineCap anychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

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

Try it:

valueAnchor

Getter for the value anchor.

Returns:

* - The value anchor.
See listing.
var controller = chart.annotations();
var annotation = controller.fibonacciFan();
var currentValueAnchor = annotation.valueAnchor();
Setter for the value anchor.

Params:

Name Type Description
value * Value anchor to set.

Returns:

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

Try it:

xAnchor

Getter for the X anchor.

Returns:

* - The X anchor.
See listing.
var controller = chart.annotations();
var annotation = controller.fibonacciFan();
var currentXAnchor = annotation.xAnchor();
Setter for the X anchor.

Params:

Name Type Description
value * X anchor to set.

Returns:

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

Try it:

xScale

Getter for the X-scale.

Try it:

Setter for the X-scale.

Params:

Name Type Description
value anychart.scales.Base | anychart.scales.StockScatterDateTime Value to set

Returns:

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

Try it:

yScale

Getter for the Y-scale.

Returns:

anychart.scales.Base - Default scale value.

Try it:

Setter for the Y-scale.

Params:

Name Type Description
value anychart.scales.Base Y-scale to set.

Returns:

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

Try it: