public class Series extends Options
| Modifier and Type | Field and Description |
|---|---|
List<DataPoint> |
data
A list of data points.
|
Integer |
index
The index of the series in the chart, affecting the internal index in the chart.series array,
the visible Z index as well as the order in the legend.
|
Integer |
legendIndex
The sequential index of the series in the legend.
|
String |
name
The name of the series as shown in the legend, tooltip etc.
|
PlotOptions |
plotOptions
Additional options.
|
Object |
stack
This option allows grouping series in a stacked chart.
|
String |
type
The type of series.
|
Integer |
xAxis
When using dual or multiple x axes, this number defines which xAxis the particular series is
connected to.
|
Integer |
yAxis
When using dual or multiple y axes, this number defines which yAxis the particular series is
connected to.
|
| Modifier and Type | Method and Description |
|---|---|
DataPoint |
addDataPoint(double y)
Adds a single data point.
|
DataPoint |
addDataPoint(double x,
double y)
Adds a single data point.
|
void |
addDataPoints(double... yvalues)
Adds a list of y values.
|
void |
addDataPoints(List<DataPoint> values)
Adds a list of data point values.
|
void |
clear()
Clear all data points.
|
OptionMap |
toMap()
Override to merge plot options into series options.
|
public final List<DataPoint> data
data: [{
name: 'Point 1',
color: '#00FF00',
y: 0
}, {
name: 'Point 2',
color: '#FF00FF',
y: 5
}]
public Integer index
public Integer legendIndex
public String name
public Object stack
public final String type
public Integer xAxis
public Integer yAxis
public final transient PlotOptions plotOptions
protected Series(String type)
public DataPoint addDataPoint(double y)
y - Y valuepublic DataPoint addDataPoint(double x, double y)
x - X valuey - Y valuepublic void addDataPoints(List<DataPoint> values)
values - Data points to add.public void addDataPoints(double... yvalues)
yvalues - Y values to add.public void clear()
public OptionMap toMap()
toMap in interface OptionMap.IOptionMapConvertertoMap in class OptionsCopyright © 2018 Regenstrief Center for Biomedical Informatics. All rights reserved.