Class ScatterChart
java.lang.Object
software.xdev.chartjs.model.charts.AbstractChart<T,O,D>
software.xdev.chartjs.model.charts.HomogeneousChart<ScatterChart,LineOptions,ScatterData>
software.xdev.chartjs.model.charts.ScatterChart
- All Implemented Interfaces:
Chart<ScatterChart,LineOptions, ScatterData>
-
Field Summary
Fields inherited from class software.xdev.chartjs.model.charts.AbstractChart
data, defaultObjectWriter, options -
Constructor Summary
ConstructorsConstructorDescriptionScatterChart(ScatterData data) ScatterChart(ScatterData data, LineOptions options) -
Method Summary
Modifier and TypeMethodDescriptionstatic ScatterDatadata()Static factory, constructs anHomogeneousDataimplementation appropriate for aScatterChart.getType()booleanOptional check to determine whether the current state of thisChartimplementation instance will generate a drawable JSON string.static LineOptionsoptions()Static factory, constructs anOptionsimplementation appropriate for aScatterChart.Methods inherited from class software.xdev.chartjs.model.charts.AbstractChart
getData, getDefaultObjectWriter, getOptions, self, setData, setDefaultObjectWriter, setOptions, toJsonNative
-
Constructor Details
-
ScatterChart
public ScatterChart() -
ScatterChart
-
ScatterChart
-
-
Method Details
-
data
Static factory, constructs anHomogeneousDataimplementation appropriate for aScatterChart.- Returns:
- a new
ScatterDatainstance
-
options
Static factory, constructs anOptionsimplementation appropriate for aScatterChart.- Returns:
- a new
LineOptionsinstance
-
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.
LineChartis drawable if at least one dataset has at least one data point.
If an xAxisID is set on a dataset, an xAxis scale must exist with that id.
If an yAxisID is set on a dataset, a yAxis scale must exist with that id.- Returns:
- true if
thisChartis drawable in its current state
-