public class Pie extends BaseOption
A pie chart is a circular graphic which is divided into slices to illustrate numerical proportion.
In TypeScript the type option must always be set.
Configuration options for the series are given in three levels:
pie
series are defined in plotOptions.pie.Highcharts.chart('container', { plotOptions: { series: { // general options for all series }, pie: { // shared options for all pie series } }, series: [{ // specific options for this series instance type: 'pie' }] });
Copyright (c) 2022 Powerbuilt Systems. All rights reserved.Constructor and Description |
---|
Pie() |
Modifier and Type | Method and Description |
---|---|
Boolean |
getAllowPointSelect()
Allow this series' points to be selected by clicking on the graphic (columns, point markers, pie slices, map areas etc).
|
Cursor |
getCursorAsEnum()
You can set the cursor to "pointer" if you have click events attached to the series, to signal to the user that the points and lines can be clicked.
|
String |
getCursorAsString()
You can set the cursor to "pointer" if you have click events attached to the series, to signal to the user that the points and lines can be clicked.
|
DataLabels |
getDataLabels()
Options for the series data labels, appearing next to each data point.
|
List<DataLabels> |
getDataLabelsAsArrayOptions()
Options for the series data labels, appearing next to each data point.
|
DataLabels |
getDataLabelsAsArrayOptionsSingle()
Options for the series data labels, appearing next to each data point.
|
Pie |
setAllowPointSelect(Boolean allowPointSelect)
Allow this series' points to be selected by clicking on the graphic (columns, point markers, pie slices, map areas etc).
|
Pie |
setCursor(Cursor cursorAsEnum)
You can set the cursor to "pointer" if you have click events attached to the series, to signal to the user that the points and lines can be clicked.
|
Pie |
setCursor(String cursorAsString)
You can set the cursor to "pointer" if you have click events attached to the series, to signal to the user that the points and lines can be clicked.
|
Pie |
setDataLabels(DataLabels dataLabelsAsOptions)
Options for the series data labels, appearing next to each data point.
|
Pie |
setDataLabels(List<DataLabels> dataLabelsAsArrayOptions)
Options for the series data labels, appearing next to each data point.
|
set_hcNulledOption
public static final Pie NULL
public Boolean getAllowPointSelect()
Allow this series' points to be selected by clicking on the graphic (columns, point markers, pie slices, map areas etc).
The selected points can be handled by point select and unselect events, or collectively by the getSelectedPoints function.
And alternative way of selecting points is through dragging.
public Pie setAllowPointSelect(Boolean allowPointSelect)
Allow this series' points to be selected by clicking on the graphic (columns, point markers, pie slices, map areas etc).
The selected points can be handled by point select and unselect events, or collectively by the getSelectedPoints function.
And alternative way of selecting points is through dragging.
allowPointSelect
- the value for the allowPointSelect optionpublic Cursor getCursorAsEnum()
You can set the cursor to "pointer" if you have click events attached to the series, to signal to the user that the points and lines can be clicked.
In styled mode, the series cursor can be set with the same classes as listed under series.color.
public Pie setCursor(Cursor cursorAsEnum)
You can set the cursor to "pointer" if you have click events attached to the series, to signal to the user that the points and lines can be clicked.
In styled mode, the series cursor can be set with the same classes as listed under series.color.
cursorAsEnum
- the value for the cursorAsEnum optionpublic String getCursorAsString()
You can set the cursor to "pointer" if you have click events attached to the series, to signal to the user that the points and lines can be clicked.
In styled mode, the series cursor can be set with the same classes as listed under series.color.
public Pie setCursor(String cursorAsString)
You can set the cursor to "pointer" if you have click events attached to the series, to signal to the user that the points and lines can be clicked.
In styled mode, the series cursor can be set with the same classes as listed under series.color.
cursorAsString
- the value for the cursorAsString optionpublic DataLabels getDataLabels()
Options for the series data labels, appearing next to each data point.
Since v6.2.0, multiple data labels can be applied to each single point by defining them as an array of configs.
In styled mode, the data labels can be styled with the .highcharts-data-label-box
and .highcharts-data-label
class names (see example).
public Pie setDataLabels(DataLabels dataLabelsAsOptions)
Options for the series data labels, appearing next to each data point.
Since v6.2.0, multiple data labels can be applied to each single point by defining them as an array of configs.
In styled mode, the data labels can be styled with the .highcharts-data-label-box
and .highcharts-data-label
class names (see example).
dataLabelsAsOptions
- the value for the dataLabelsAsOptions optionpublic DataLabels getDataLabelsAsArrayOptionsSingle()
Options for the series data labels, appearing next to each data point.
Since v6.2.0, multiple data labels can be applied to each single point by defining them as an array of configs.
In styled mode, the data labels can be styled with the .highcharts-data-label-box
and .highcharts-data-label
class names (see example).
public List<DataLabels> getDataLabelsAsArrayOptions()
Options for the series data labels, appearing next to each data point.
Since v6.2.0, multiple data labels can be applied to each single point by defining them as an array of configs.
In styled mode, the data labels can be styled with the .highcharts-data-label-box
and .highcharts-data-label
class names (see example).
public Pie setDataLabels(List<DataLabels> dataLabelsAsArrayOptions)
Options for the series data labels, appearing next to each data point.
Since v6.2.0, multiple data labels can be applied to each single point by defining them as an array of configs.
In styled mode, the data labels can be styled with the .highcharts-data-label-box
and .highcharts-data-label
class names (see example).
dataLabelsAsArrayOptions
- the value for the dataLabelsAsArrayOptions optionCopyright © 2022. All rights reserved.