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

class anychart.core.cartesian.series.DiscreteBase Improve this Doc

Extends: anychart.core.cartesian.series.BaseWithMarkers

A base for all series with discrete points, like bars, sticks, columns, OHLC, etc.

Methods Overview

Data
excludePoint()Excludes points at the specified index.
getExcludedPoints()Returns an array of excluded points.
includeAllPoints()Includes all excluded points.
includePoint()Includes excluded points with the specified indexes.
keepOnlyPoints()Keep only the specified points.
Interactivity
unhover()Unhover settings.
unselect()Deselects all selected points.

Methods Description

excludePoint

Excludes points at the specified index.

Params:

NameTypeDescription
indexesnumber | Array.<number>Points indexes.

Returns:

boolean - Returns true if the points were excluded.

getExcludedPoints

Returns an array of excluded points.

Returns:

Array.<anychart.core.Point> - Array of the points.

includeAllPoints

Includes all excluded points.

Returns:

boolean - Returns true if all points were included.

includePoint

Includes excluded points with the specified indexes.

Params:

NameTypeDescription
indexesnumber | Array.<number>Points indexes.

Returns:

boolean - Returns true if the points were included.

keepOnlyPoints

Keep only the specified points.

Params:

NameTypeDescription
indexesnumber | Array.<number>Point index or indexes.

unhover

Removes hover from the point or series.

Returns:

anychart.core.radar.series.Base - Self instance for method chaining.
Removes hover from the point or series by index.

Params:

NameTypeDescription
indexnumberPoint index.

Returns:

anychart.core.radar.series.Base - Self instance for method chaining.
Removes hover from the point or series by indexes.

Params:

NameTypeDescription
indexesArray.<number>Array of indexes.

Returns:

anychart.core.radar.series.Base - Self instance for method chaining.

unselect

Deselects all selected points.

Returns:

anychart.core.cartesian.series.DiscreteBase - Self instance for method chaining.
Deselects selected point by index.

Params:

NameTypeDescription
indexnumberIndex of the point to select.

Returns:

anychart.core.cartesian.series.DiscreteBase - Self instance for method chaining.
Deselects selected points by indexes.

Params:

NameTypeDescription
indexesArray.<number>An array of indexes of the point to select.

Returns:

anychart.core.cartesian.series.DiscreteBase - Self instance for method chaining.