public abstract class Dataset extends JavaScriptObjectContainer
| Constructor and Description |
|---|
Dataset() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.Double> |
getData()
Returns the data property of a dataset for a chart is specified as an array of numbers.
|
java.lang.String |
getLabel()
Returns the label for the dataset which appears in the legend and tooltips.
|
Type |
getType()
Returns the type of dataset, based on type of chart.
|
boolean |
isHidden()
Returns if the dataset will appear or not.
|
void |
setData(double... values)
Sets the data property of a dataset for a chart is specified as an array of numbers.
|
void |
setData(java.util.List<java.lang.Double> values)
Sets the data property of a dataset for a chart is specified as an array of numbers.
|
void |
setHidden(boolean hidden)
Sets if the dataset will appear or not.
|
void |
setLabel(java.lang.String label)
Sets the label for the dataset which appears in the legend and tooltips.
|
void |
setType(Type type)
Sets the type of dataset based on type of chart.
|
checkAndGetDoubleValues, checkAndGetEnumValues, checkAndGetIntegerValues, checkAndGetStringValues, checkAndSetDoubleValues, checkAndSetEnumValues, checkAndSetIntegerValues, checkAndSetStringValues, getDoubleArray, getIntegerArray, getJavaScriptObject, getObjectArray, getStringArray, getValue, getValue, getValue, getValue, getValue, getValue, getValue, has, has, hasToBeRegistered, isEmpty, keys, remove, remove, removeIfExists, setDoubleArray, setEnumValueArray, setIntegerArray, setObjectArray, setStringArray, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, typepublic void setHidden(boolean hidden)
hidden - if the dataset will appear or not.public boolean isHidden()
falsepublic void setLabel(java.lang.String label)
label - the label for the dataset which appears in the legend and tooltips.public java.lang.String getLabel()
public void setData(double... values)
values - an array of numberspublic void setData(java.util.List<java.lang.Double> values)
values - list of numbers.JsDoubleArrayListpublic java.util.List<java.lang.Double> getData()
JsDoubleArrayListpublic void setType(Type type)
type - type of dataset.public Type getType()