Class PolarChart
java.lang.Object
software.xdev.chartjs.model.charts.AbstractChart<T,O,D>
software.xdev.chartjs.model.charts.HomogeneousChart<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, defaultObjectWriter, options -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PolarDatadata()Static factory, constructs anHomogeneousDataimplementation appropriate for aPolarChart.getType()booleanOptional check to determine whether the current state of thisChartimplementation instance will generate a drawable JSON string.static PolarOptionsoptions()Static factory, constructs anOptionsimplementation appropriate for aPolarChart.Methods inherited from class software.xdev.chartjs.model.charts.AbstractChart
getData, getDefaultObjectWriter, getOptions, self, setData, setDefaultObjectWriter, setOptions, toJsonNative
-
Constructor Details
-
PolarChart
public PolarChart() -
PolarChart
-
PolarChart
-
-
Method Details
-
data
Static factory, constructs anHomogeneousDataimplementation appropriate for aPolarChart.- Returns:
- a new
PolarDatainstance
-
options
Static factory, constructs anOptionsimplementation appropriate for aPolarChart.- Returns:
- a new
PolarOptionsinstance
-
getType
- Returns:
- type of this
Chartimplementation for proper drawing in JavaScript.
-
isDrawable
public boolean isDrawable()Optional check to determine whether the current state of this
Chartimplementation 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.
PolarChartis drawable if at least one dataset has at least two data points.- Returns:
- true if
thisChartis drawable in its current state
-