All docs
V19.1
24.2
The page you are viewing does not exist in version 24.2.
24.1
The page you are viewing does not exist in version 24.1.
23.2
The page you are viewing does not exist in version 23.2.
23.1
The page you are viewing does not exist in version 23.1.
22.2
The page you are viewing does not exist in version 22.2.
22.1
The page you are viewing does not exist in version 22.1.
21.2
The page you are viewing does not exist in version 21.2.
21.1
The page you are viewing does not exist in version 21.1.
20.2
The page you are viewing does not exist in version 20.2.
20.1
The page you are viewing does not exist in version 20.1.
19.2
19.1
18.2
18.1
17.2
A newer version of this page is available. Switch to the current version.

JavaScript/jQuery PieChart - Series.Methods

Methods used to control the series.

clearSelection()

Unselects all the selected points of the series. The points are displayed in an initial style.

To learn about point selection, refer to the Selection Handling section.

View Demo

deselectPoint(point)

Deselects the specified point. The point is displayed in an initial style.

Parameters:
point:

Point

The point to be deselected.

To learn about point selection, refer to the Selection Handling section.

getAllPoints()

Gets all points in the series.

Return Value:

Array<Point>

All points in the series.

NOTE
A series point is a data object's visual representation. It can be selected, hovered over, or hidden. You can access the data object that the series point represents using the point's data field.

getColor()

Gets the color of a particular series.

Return Value:

String

The color of a series.

getPointByPos(positionIndex)

Gets a series point with the specified index.

Parameters:
positionIndex:

Number

A zero-based index. Series points are indexed according to their drawing order.

Return Value:

Point

A series point found by the index.

getPointsByArg(pointArg)

Gets a series point with the specified argument value.

Parameters:
pointArg:

Number

|

String

|

Date

An argument value.

Return Value:

Array<Point>

Series points that correspond to the argument value, or an empty array if none was found.

getVisiblePoints()

Gets visible series points.

Return Value:

Array<Point>

Visible series points.

NOTE
This method does not change the behavior if you hide the series. However, if you hide a series point with the hide() method, it will no longer be considered visible.

hide()

Hides a series at runtime.

See Also

isSelected()

Provides information about the selection state of a series.

Return Value:

Boolean

Selection state of a series.

When a series is selected, this method returns true. Otherwise, the returned value is false.

You can select a series using its select() method. To learn more about point and series selection, refer to the Selection Handling topic.

View Demo

isVisible()

Provides information about the visibility state of a series.

Return Value:

Boolean

Visibility state of a series.

When a series is visible, this method returns true. Otherwise, the returned value is false.

You can make a series visible using its show() method, or hide a series using its hide() method.

select()

Selects the series.

To learn about series selection, refer to the Selection Handling section.

View Demo

selectPoint(point)

Selects the specified point. The point is displayed in a 'selected' style.

Parameters:
point:

Point

The point to be selected.

For information on point selection, refer to the Selection Handling section.

show()

Makes a particular series visible.