AnyChart
API Reference
Still have questions?
Contact support
Top

class anychart.core.graph.elements.edges.arrows.Controller Improve this Doc

The arrows controller constructor.

Methods Overview

Miscellaneous
enabled()Enabled setting.
position()Position setting.
size()Size setting.

Methods Description

enabled

Getter for the arrows enabled state.

Returns:

boolean - Arrows enabled state.
See listing
var enabled = chart.edges().arrows().enabled(); // 'false' It disabled by default.
console.log('Is arrows enabled, enabled);
Setter the arrows enabled state.

Params:

NameTypeDescription
enabledbooleanNew enabled state for the arrows.

Returns:

anychart.core.graph.elements.edges.arrows.Controller - Self instance for method chaining.

position

Getter for the arrows position.

Returns:

string | number - Arrows position represented as percent or as ratio.
See listing
var position = chart.edges().arrows().position();
console.log('Arrows position', position);
Setter for the arrows position.

Params:

NameTypeDescription
positionstring | numberPosition value represented as ration or percent.

Returns:

anychart.core.graph.elements.edges.arrows.Controller - Self instance for method chaining.

size

Getter for the arrows size.

Returns:

number - Size in pixels.
See listing
var size = chart.edges().arrows().size();
console.log('Arrows size', size);
Setter for the arrows size.

Params:

NameTypeDescription
sizenumberThe arrows size in pixels.

Returns:

anychart.core.graph.elements.edges.arrows.Controller - Self instance for method chaining.