Class RadarChart
java.lang.Object
software.xdev.chartjs.model.charts.AbstractChart<T,O,D>
software.xdev.chartjs.model.charts.HomogeneousChart<RadarChart,RadarOptions,RadarData>
software.xdev.chartjs.model.charts.RadarChart
- All Implemented Interfaces:
Chart<RadarChart,
RadarOptions, RadarData>
-
Field Summary
Fields inherited from class software.xdev.chartjs.model.charts.AbstractChart
data, defaultObjectWriter, options
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RadarData
data()
Static factory, constructs anHomogeneousData
implementation appropriate for aRadarChart
.getType()
boolean
Optional check to determine whether the current state of thisChart
implementation instance will generate a drawable JSON string.static RadarOptions
options()
Static factory, constructs anOptions
implementation appropriate for aRadarChart
.Methods inherited from class software.xdev.chartjs.model.charts.AbstractChart
getData, getDefaultObjectWriter, getOptions, self, setData, setDefaultObjectWriter, setOptions, toJsonNative
-
Constructor Details
-
RadarChart
public RadarChart() -
RadarChart
-
RadarChart
-
-
Method Details
-
data
Static factory, constructs anHomogeneousData
implementation appropriate for aRadarChart
.- Returns:
- a new
RadarData
instance
-
options
Static factory, constructs anOptions
implementation appropriate for aRadarChart
.- Returns:
- a new
RadarOptions
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.
RadarChart
is drawable if at least one dataset has at least three data points.- Returns:
- true if
this
Chart
is drawable in its current state
-