Class Dataset<T extends Dataset<T,O>,O>
java.lang.Object
software.xdev.chartjs.model.dataset.Dataset<T,O>
- Direct Known Subclasses:
BackgroundBorderHoverDataset
,PointDataset
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd the data point to thisDataset
addDataUnchecked
(Object data) Remove all data held by thisDataset
protected abstract String
getClip()
getData()
<X> List<X>
getLabel()
getOrder()
getStack()
getType()
self()
setData
(Collection<O> data) Sets the backing data list to the argument, replacing any data already added or setSets the backing data list to the argument, replacing any data already added or setsetDataUnchecked
(Object... data) setDataUnchecked
(Collection<?> data) setIndexAxis
(IndexAxis indexAxis) Sets thetype
of the dataset.Set's the default type
-
Field Details
-
type
-
data
-
indexAxis
-
clip
-
label
-
order
-
stack
-
-
Constructor Details
-
Dataset
public Dataset()
-
-
Method Details
-
defaultType
-
withDefaultType
Set's the default type -
getType
-
setType
Sets thetype
of the dataset.Usually only required for mixed charts
-
getData
- Returns:
- an unmodifiable view of the data held in this
Dataset
, nevernull
-
getData
- Returns:
- an unmodifiable view of the data held in this
Dataset
, nevernull
-
setDataUnchecked
- See Also:
-
setData
Sets the backing data list to the argument, replacing any data already added or set- Parameters:
data
- The data to plot in a line
-
setDataUnchecked
- See Also:
-
setData
Sets the backing data list to the argument, replacing any data already added or set- Parameters:
data
- The data to plot in a line
-
clearData
Remove all data held by thisDataset
-
addDataUnchecked
- See Also:
-
addData
Add the data point to thisDataset
- Parameters:
data
- aO
, can benull
to signify absence of data for a given point- See Also:
-
getIndexAxis
-
setIndexAxis
-
getClip
-
setClip
-
getLabel
-
setLabel
-
getOrder
-
setOrder
-
getStack
-
setStack
-
getHidden
-
setHidden
-
self
-