Constructor and Description |
---|
BarChart() |
BarChart(BarData data) |
BarChart(BarData data,
BarOptions options) |
Modifier and Type | Method and Description |
---|---|
static BarData |
data()
|
BarData |
getData() |
BarOptions |
getOptions() |
String |
getType() |
boolean |
isDrawable()
Optional check to determine whether the current state of this
Chart implementation instance will generate a drawable JSON
string. |
boolean |
isHorizontal() |
boolean |
isVertical() |
static BarOptions |
options()
|
BarChart |
setData(BarData data) |
BarChart |
setHorizontal()
Draw this
BarChart horizontally. |
BarChart |
setOptions(BarOptions options) |
BarChart |
setVertical()
Draw this
BarChart vertically. |
String |
toJson()
Convert
this instance to Json for use with Chart.js library. |
public BarChart()
public BarChart(BarData data)
public BarChart(BarData data, BarOptions options)
public static BarOptions options()
BarOptions
instancepublic BarData getData()
public BarOptions getOptions()
public BarChart setOptions(BarOptions options)
public BarChart setHorizontal()
Draw this BarChart
horizontally.
Default is to draw a vertical BarChart
.
BarChart
for method chainingsetVertical()
public boolean isHorizontal()
BarChart
is set to be drawn horizontallysetHorizontal()
public BarChart setVertical()
Draw this BarChart
vertically.
Vertical drawing is the default for BarChart
.
BarChart
for method chainingsetHorizontal()
public boolean isVertical()
BarChart
is set to be drawn verticallysetVertical()
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.
A BarChart
is drawable if:
BarData
isDrawable
in interface Chart
BarChart
is drawable in its current stateCopyright © 2017. All rights reserved.