Constructor and Description |
---|
DoughnutChart() |
DoughnutChart(DoughnutData data) |
DoughnutChart(DoughnutData data,
DoughnutOptions options) |
Modifier and Type | Method and Description |
---|---|
static DoughnutData |
data()
Static factory, constructs an
Data implementation appropriate
for a DoughnutChart . |
DoughnutData |
getData() |
DoughnutOptions |
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 DoughnutOptions |
options()
Static factory, constructs an
Options implementation appropriate
for a DoughnutChart . |
DoughnutChart |
setData(DoughnutData data) |
DoughnutChart |
setOptions(DoughnutOptions options) |
String |
toJson()
Convert
this instance to Json for use with Chart.js library. |
public DoughnutChart()
public DoughnutChart(DoughnutData data)
public DoughnutChart(DoughnutData data, DoughnutOptions options)
public static DoughnutData data()
Data
implementation appropriate
for a DoughnutChart
.DoughnutData
instancepublic static DoughnutOptions options()
Options
implementation appropriate
for a DoughnutChart
.DoughnutOptions
instancepublic DoughnutData getData()
public DoughnutChart setData(DoughnutData data)
public DoughnutOptions getOptions()
public DoughnutChart setOptions(DoughnutOptions 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.
DoughnutChart
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 © 2020. All rights reserved.