public final class DatasetItem extends NativeObjectContainer
Constructor and Description |
---|
DatasetItem(ChartEnvelop<NativeObject> envelop)
Creates the item using an envelop with the native java script object which contains all properties.
|
Modifier and Type | Method and Description |
---|---|
DatasetItemController |
getController()
Returns the dataset controller.
|
List<DatasetElement> |
getElements()
Returns a list of dataset elements.
|
int |
getIndex()
Returns the dataset index.
|
IndexAxis |
getIndexAxis()
Returns the dataset index axis.
|
ScaleId |
getIndexAxisID()
Returns the index axis ID.
|
ScaleItem |
getIndexScale()
Returns the index scale item or
null if not exists.If IndexAxis = IndexAxis.Y then iScale === yScale and vScale === xScale.For radar, iScale === vScale === rScale. |
String |
getLabel()
Returns the dataset label.
|
int |
getOrder()
Returns the dataset order.
|
ScaleId |
getRAxisID()
Returns the R axis ID.
|
ScaleItem |
getRScale()
Returns the R scale item or
null if not exists. |
double |
getTotal()
Returns the dataset total value of data.
|
Type |
getType()
Returns the type of dataset.
|
ScaleId |
getValueAxisID()
Returns the value axis ID.
|
ScaleItem |
getValueScale()
Returns the value scale item or
null if not exists.If IndexAxis = IndexAxis.Y then iScale === yScale and vScale === xScale.For radar, iScale === vScale === rScale. |
ScaleId |
getXAxisID()
Returns the X axis ID.
|
ScaleItem |
getXScale()
Returns the X scale item or
null if not exists. |
ScaleId |
getYAxisID()
Returns the Y axis ID.
|
ScaleItem |
getYScale()
Returns the Y scale item or
null if not exists. |
boolean |
isHidden()
Returns if the dataset is hidden.
|
boolean |
isVisible()
Returns if the dataset is visible.
|
checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public DatasetItem(ChartEnvelop<NativeObject> envelop)
envelop
- envelop with the native java script object which contains all properties.public DatasetItemController getController()
public Type getType()
ChartType.BAR
.public boolean isVisible()
true
if the dataset is visible, otherwise is Undefined.BOOLEAN
.public boolean isHidden()
true
if the dataset is hidden, otherwise is Undefined.BOOLEAN
.public int getIndex()
public IndexAxis getIndexAxis()
null
if not found.public int getOrder()
public String getLabel()
public ScaleId getYAxisID()
public ScaleItem getYScale()
null
if not exists.null
if not existspublic ScaleId getXAxisID()
public ScaleItem getXScale()
null
if not exists.null
if not existspublic ScaleId getRAxisID()
public ScaleItem getRScale()
null
if not exists.null
if not existspublic ScaleId getValueAxisID()
public ScaleItem getValueScale()
null
if not exists.IndexAxis
= IndexAxis.Y
then iScale === yScale and vScale === xScale.null
if not existspublic ScaleId getIndexAxisID()
public ScaleItem getIndexScale()
null
if not exists.IndexAxis
= IndexAxis.Y
then iScale === yScale and vScale === xScale.null
if not existspublic double getTotal()
public List<DatasetElement> getElements()