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.
|
PlotType |
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 | Constructor and Description |
|---|---|
protected |
Series(PlotType type) |
| 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransformForClient@Option public final List<DataPoint> data
data: [{
name: 'Point 1',
color: '#00FF00',
y: 0
}, {
name: 'Point 2',
color: '#FF00FF',
y: 5
}]
@Option public Integer index
@Option public String name
@Option public Object stack
@Option public Integer xAxis
@Option public Integer yAxis
@Option(ignore=true) public final PlotOptions plotOptions
protected Series(PlotType 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 Fujion Framework. All rights reserved.