Constructor and Description |
---|
PieChart() |
PieChart(PieData data) |
PieChart(PieData data,
PieOptions options) |
Modifier and Type | Method and Description |
---|---|
static PieData |
data()
|
PieData |
getData() |
PieOptions |
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 PieOptions |
options()
|
PieChart |
setData(PieData data) |
PieChart |
setOptions(PieOptions options) |
String |
toJson()
Convert
this instance to Json for use with Chart.js library. |
public PieChart()
public PieChart(PieData data)
public PieChart(PieData data, PieOptions options)
public static PieOptions options()
PieOptions
instancepublic PieData getData()
public PieOptions getOptions()
public PieChart setOptions(PieOptions options)
public String getType()
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.
PieChart
is drawable if at least one dataset has at least one
data point.
isDrawable
in interface Chart
this
Chart
is drawable in its current
stateCopyright © 2017. All rights reserved.