Constructor and Description |
---|
ScatterLineChart() |
ScatterLineChart(ScatterLineData data) |
ScatterLineChart(ScatterLineData data,
LineOptions options) |
Modifier and Type | Method and Description |
---|---|
static ScatterLineData |
data()
Static factory, constructs an
Data implementation appropriate
for a ScatterLineChart . |
ScatterLineData |
getData() |
LineOptions |
getOptions() |
String |
getType() |
boolean |
isDrawable()
Optional check to determine whether the current state of this
Chart implementation instance will generate a drawable JSON
string. |
static LineOptions |
options()
Static factory, constructs an
Options implementation appropriate
for a ScatterLineChart . |
ScatterLineChart |
setData(ScatterLineData data) |
ScatterLineChart |
setOptions(LineOptions options) |
String |
toJson()
Convert
this instance to Json for use with Chart.js library. |
public ScatterLineChart()
public ScatterLineChart(ScatterLineData data)
public ScatterLineChart(ScatterLineData data, LineOptions options)
public static ScatterLineData data()
Data
implementation appropriate
for a ScatterLineChart
.ScatterLineData
instancepublic static LineOptions options()
Options
implementation appropriate
for a ScatterLineChart
.LineOptions
instancepublic String getType()
public ScatterLineData getData()
public ScatterLineChart setData(ScatterLineData data)
public LineOptions getOptions()
public ScatterLineChart setOptions(LineOptions options)
public String toJson()
Chart
Convert this
instance to Json for use with Chart.js library.
public boolean isDrawable()
Optional check to determine whether the current state of this
Chart
implementation instance will generate a drawable JSON
string.
Implementations provide a best-effort evaluation, and can not guarantee that the serialized chart will be rendered correctly.
LineChart
is drawable if at least one dataset has at least one
data point.
If an xAxisID is set on a dataset, an xAxis scale must exist with that id.
If an yAxisID is set on a dataset, a yAxis scale must exist with that id.
isDrawable
in interface Chart
this
Chart
is drawable in its current
stateCopyright © 2017. All rights reserved.