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
Specific settings | |
a11y() | Accessibility settings. |
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
a11y
Getter for the accessibility setting.
Returns:
anychart.core.utils.SeriesA11y - Accessibility settings object. See listing.
var series = chart.line([3, 5, 2, 14, 3]); var a11y = series.a11y();
Setter for the accessibility setting.
Detailed description
If you want to work with accessibility then you only need to turn accessibility on using anychart.core.SeriesBase#a11y method.
Sets accessibility setting depending on parameter type:
Sets accessibility setting depending on parameter type:
- boolean - disable or enable accessibility.
- object - sets accessibility setting.
Params:
Name | Type | Description |
---|---|---|
value | boolean | Object | Whether to enable accessibility. |
Returns:
anychart.core.cartesian.series.DiscreteBase - Self instance for method chaining.excludePoint
Excludes points at the specified index.
Params:
Name | Type | Description |
---|---|---|
indexes | number | Array.<number> | Points indexes. |
Returns:
boolean - Returns true if the points were excluded.Try it:
getExcludedPoints
Returns an array of excluded points.
Returns:
Array.<anychart.core.Point> - Array of the points.Try it:
includeAllPoints
Includes all excluded points.
Returns:
boolean - Returns true if all points were included.Try it:
includePoint
Includes excluded points with the specified indexes.
Params:
Name | Type | Description |
---|---|---|
indexes | number | Array.<number> | Points indexes. |
Returns:
boolean - Returns true if the points were included.Try it:
keepOnlyPoints
Keep only the specified points.
Params:
Name | Type | Description |
---|---|---|
indexes | number | Array.<number> | Point index or indexes. |
Try it:
unhover
Removes hover from the point or series.
Detailed description
Note: Works only after anychart.charts.Cartesian#draw is called.
Returns:
anychart.core.cartesian.series.DiscreteBase - Self instance for method chaining.Try it:
Removes hover from the point or series by index.
Params:
Name | Type | Description |
---|---|---|
index | number | Point index. |
Returns:
anychart.core.cartesian.series.DiscreteBase - Self instance for method chaining.Try it:
Removes hover from the point or series by indexes.
Params:
Name | Type | Description |
---|---|---|
indexes | Array.<number> | Array of indexes. |
Returns:
anychart.core.cartesian.series.DiscreteBase - Self instance for method chaining.Try it:
unselect
Deselects all selected points.
Returns:
anychart.core.cartesian.series.DiscreteBase - Self instance for method chaining.Try it:
Deselects selected point by index.
Params:
Name | Type | Description |
---|---|---|
index | number | Index of the point to select. |
Returns:
anychart.core.cartesian.series.DiscreteBase - Self instance for method chaining.Try it:
Deselects selected points by indexes.
Params:
Name | Type | Description |
---|---|---|
indexes | Array.<number> | An array of indexes of the point to select. |
Returns:
anychart.core.cartesian.series.DiscreteBase - Self instance for method chaining.Try it: