Constructor and Description |
---|
LineChart() |
LineChart(LineData data) |
LineChart(LineData data,
LineOptions options) |
Modifier and Type | Method and Description |
---|---|
static LineData |
data()
|
LineData |
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()
|
LineChart |
setData(LineData data) |
LineChart |
setOptions(LineOptions options) |
String |
toJson()
Convert
this instance to Json for use with Chart.js library. |
public LineChart()
public LineChart(LineData data)
public LineChart(LineData data, LineOptions options)
public static LineOptions options()
LineOptions
instancepublic String getType()
public LineData getData()
public LineOptions getOptions()
public LineChart 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 © 2020. All rights reserved.