Class PolarChart
java.lang.Object
software.xdev.chartjs.model.charts.AbstractChart<PolarChart,PolarOptions,PolarData>
software.xdev.chartjs.model.charts.PolarChart
- All Implemented Interfaces:
Chart<PolarChart,
PolarOptions, PolarData>
-
Field Summary
Fields inherited from class software.xdev.chartjs.model.charts.AbstractChart
data, objectWriter, options
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PolarData
data()
Static factory, constructs anData
implementation appropriate for aPolarChart
.getType()
boolean
Optional check to determine whether the current state of thisChart
implementation instance will generate a drawable JSON string.static PolarOptions
options()
Static factory, constructs anOptions
implementation appropriate for aPolarChart
.Methods inherited from class software.xdev.chartjs.model.charts.AbstractChart
getData, getOptions, self, setData, setOptions, toJsonNative
-
Constructor Details
-
PolarChart
public PolarChart() -
PolarChart
-
PolarChart
-
-
Method Details
-
data
Static factory, constructs anData
implementation appropriate for aPolarChart
.- Returns:
- a new
PolarData
instance
-
options
Static factory, constructs anOptions
implementation appropriate for aPolarChart
.- Returns:
- a new
PolarOptions
instance
-
getType
- Returns:
- type of this
Chart
implementation for proper drawing in JavaScript.
-
isDrawable
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.
PolarChart
is drawable if at least one dataset has at least two data points.- Returns:
- true if
this
Chart
is drawable in its current state
-