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 RadarDatadata()Static factory, constructs anHomogeneousDataimplementation appropriate for aRadarChart.getType()booleanOptional check to determine whether the current state of thisChartimplementation instance will generate a drawable JSON string.static RadarOptionsoptions()Static factory, constructs anOptionsimplementation 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 anHomogeneousDataimplementation appropriate for aRadarChart.- Returns:
- a new
RadarDatainstance
-
options
Static factory, constructs anOptionsimplementation appropriate for aRadarChart.- Returns:
- a new
RadarOptionsinstance
-
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.
RadarChartis drawable if at least one dataset has at least three data points.- Returns:
- true if
thisChartis drawable in its current state
-