public class SeriesPie extends Series
A pie
series. If the type option is not specified, it is inherited from chart.type.
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) 2020 Powerbuilt Systems. All rights reserved.Constructor and Description |
---|
SeriesPie() |
Modifier and Type | Method and Description |
---|---|
Boolean |
getColorByPoint() |
List<Object> |
getDataAsArrayJavaObject()
An array of data points for the series.
|
Object |
getDataAsArrayJavaObjectSingle()
An array of data points for the series.
|
List<Number> |
getDataAsArrayNumber()
An array of data points for the series.
|
List<Data> |
getDataAsArrayObject()
An array of data points for the series.
|
Data |
getDataAsArrayObjectSingle()
An array of data points for the series.
|
String |
getName()
The name of the series as shown in the legend, tooltip etc.
|
SeriesPie |
setColorByPoint(Boolean colorByPoint) |
SeriesPie |
setDataAsArrayJavaObject(List<Object> dataAsArrayJavaObject)
An array of data points for the series.
|
SeriesPie |
setDataAsArrayNumber(List<Number> dataAsArrayNumber)
An array of data points for the series.
|
SeriesPie |
setDataAsArrayObject(List<Data> dataAsArrayObject)
An array of data points for the series.
|
SeriesPie |
setName(String name)
The name of the series as shown in the legend, tooltip etc.
|
set_hcNulledOption
public static final SeriesPie NULL
public Boolean getColorByPoint()
public SeriesPie setColorByPoint(Boolean colorByPoint)
colorByPoint
- the value for the colorByPoint optionpublic Data getDataAsArrayObjectSingle()
An array of data points for the series. For the pie
series type, points can be given in the following ways:
An array of numerical values. In this case, the numerical values will be interpreted as y
options. Example:
data: [0, 5, 3, 5]
An array of objects with named values. The following snippet shows only a few settings, see the complete options set below. If the total number of data points exceeds the series' turboThreshold, this option is not available.
data: [{ y: 1, name: "Point2", color: "#00FF00" }, { y: 7, name: "Point1", color: "#FF00FF" }]
public List<Data> getDataAsArrayObject()
An array of data points for the series. For the pie
series type, points can be given in the following ways:
An array of numerical values. In this case, the numerical values will be interpreted as y
options. Example:
data: [0, 5, 3, 5]
An array of objects with named values. The following snippet shows only a few settings, see the complete options set below. If the total number of data points exceeds the series' turboThreshold, this option is not available.
data: [{ y: 1, name: "Point2", color: "#00FF00" }, { y: 7, name: "Point1", color: "#FF00FF" }]
public SeriesPie setDataAsArrayObject(List<Data> dataAsArrayObject)
An array of data points for the series. For the pie
series type, points can be given in the following ways:
An array of numerical values. In this case, the numerical values will be interpreted as y
options. Example:
data: [0, 5, 3, 5]
An array of objects with named values. The following snippet shows only a few settings, see the complete options set below. If the total number of data points exceeds the series' turboThreshold, this option is not available.
data: [{ y: 1, name: "Point2", color: "#00FF00" }, { y: 7, name: "Point1", color: "#FF00FF" }]
dataAsArrayObject
- the value for the dataAsArrayObject optionpublic Object getDataAsArrayJavaObjectSingle()
An array of data points for the series. For the pie
series type, points can be given in the following ways:
An array of numerical values. In this case, the numerical values will be interpreted as y
options. Example:
data: [0, 5, 3, 5]
An array of objects with named values. The following snippet shows only a few settings, see the complete options set below. If the total number of data points exceeds the series' turboThreshold, this option is not available.
data: [{ y: 1, name: "Point2", color: "#00FF00" }, { y: 7, name: "Point1", color: "#FF00FF" }]
public List<Object> getDataAsArrayJavaObject()
An array of data points for the series. For the pie
series type, points can be given in the following ways:
An array of numerical values. In this case, the numerical values will be interpreted as y
options. Example:
data: [0, 5, 3, 5]
An array of objects with named values. The following snippet shows only a few settings, see the complete options set below. If the total number of data points exceeds the series' turboThreshold, this option is not available.
data: [{ y: 1, name: "Point2", color: "#00FF00" }, { y: 7, name: "Point1", color: "#FF00FF" }]
public SeriesPie setDataAsArrayJavaObject(List<Object> dataAsArrayJavaObject)
An array of data points for the series. For the pie
series type, points can be given in the following ways:
An array of numerical values. In this case, the numerical values will be interpreted as y
options. Example:
data: [0, 5, 3, 5]
An array of objects with named values. The following snippet shows only a few settings, see the complete options set below. If the total number of data points exceeds the series' turboThreshold, this option is not available.
data: [{ y: 1, name: "Point2", color: "#00FF00" }, { y: 7, name: "Point1", color: "#FF00FF" }]
dataAsArrayJavaObject
- the value for the dataAsArrayJavaObject optionpublic List<Number> getDataAsArrayNumber()
An array of data points for the series. For the pie
series type, points can be given in the following ways:
An array of numerical values. In this case, the numerical values will be interpreted as y
options. Example:
data: [0, 5, 3, 5]
An array of objects with named values. The following snippet shows only a few settings, see the complete options set below. If the total number of data points exceeds the series' turboThreshold, this option is not available.
data: [{ y: 1, name: "Point2", color: "#00FF00" }, { y: 7, name: "Point1", color: "#FF00FF" }]
public SeriesPie setDataAsArrayNumber(List<Number> dataAsArrayNumber)
An array of data points for the series. For the pie
series type, points can be given in the following ways:
An array of numerical values. In this case, the numerical values will be interpreted as y
options. Example:
data: [0, 5, 3, 5]
An array of objects with named values. The following snippet shows only a few settings, see the complete options set below. If the total number of data points exceeds the series' turboThreshold, this option is not available.
data: [{ y: 1, name: "Point2", color: "#00FF00" }, { y: 7, name: "Point1", color: "#FF00FF" }]
dataAsArrayNumber
- the value for the dataAsArrayNumber optionpublic String getName()
The name of the series as shown in the legend, tooltip etc.
Copyright © 2022. All rights reserved.