public class TimeSeriesBarDataset extends BarDataset implements HasTimeSeriesItems
DataPoint
or TimeSeriesItem
.Dataset.CanvasObjectProperty, Dataset.CommonProperty
FLOATING_BAR_DATA_FACTORY
DEFAULT_HIDDEN, DEFAULT_NORMALIZED, DEFAULT_PARSING
Modifier | Constructor and Description |
---|---|
|
TimeSeriesBarDataset()
Creates a dataset.
It uses the global options has default. |
|
TimeSeriesBarDataset(boolean hidden)
Creates a dataset.
It uses the global options has default. |
|
TimeSeriesBarDataset(IsDefaultOptions defaultValues)
Creates the dataset using a default.
|
|
TimeSeriesBarDataset(IsDefaultOptions defaultValues,
boolean hidden)
Creates the dataset using a default.
|
protected |
TimeSeriesBarDataset(Type type,
boolean hidden)
Creates the dataset using a default and chart type related to the dataset.
|
protected |
TimeSeriesBarDataset(Type type,
IsDefaultOptions defaultValues,
boolean hidden)
Creates the dataset using a default and chart type related to the dataset.
|
Modifier and Type | Method and Description |
---|---|
org.pepstock.charba.client.data.BarStackHandler |
getBarStackHandler()
Returns an stack option handler instance.
|
List<Double> |
getData()
Returns the data property of a data set for a chart is specified as a list of numbers.
Each point in the data list corresponds to the label at the same index on the x axis. |
List<Double> |
getData(boolean binding)
Returns the data property of a data set for a chart is specified as a list of numbers.
Each point in the data list corresponds to the label at the same index on the x axis. |
default int |
getOrder()
Returns the drawing order of dataset.
Also affects order for stacking, tooltip, and legend. |
default String |
getStackGroup()
Returns the name of stack group.
|
void |
setData(double... values)
Sets the data property of a data set for a chart is specified as an array of numbers.
Each point in the data array corresponds to the label at the same index on the x axis. |
void |
setData(List<Double> values)
Sets the data property of a data set for a chart is specified as a list of numbers.
Each point in the data list corresponds to the label at the same index on the x axis. |
default void |
setOrder(int order)
Sets the drawing order of dataset.
Also affects order for stacking, tooltip, and legend. |
default void |
setStackGroup(String stackGroup)
Sets the name of stack group.
|
getBase, getBaseCallback, getBorderRadius, getBorderRadiusAsObjects, getBorderRadiusCallback, getBorderSkipped, getBorderSkippedCallback, getBorderWidth, getBorderWidthAsObjects, getBorderWidthCallback, getDatasetOptionsHandler, getDefaultBackgroundColorAsString, getDefaultBorderColorAsString, getDefaultBorderWidth, getDefaultHoverBackgroundColorAsString, getDefaultHoverBorderColorAsString, getDefaultHoverBorderWidth, getEnableBorderRadiusCallback, getFloatingData, getFloatingData, getHoverBorderRadius, getHoverBorderRadiusAsObjects, getHoverBorderRadiusCallback, getHoverBorderWidth, getHoverBorderWidthAsObjects, getHoverBorderWidthCallback, getIndexAxis, getLabel, getOrderHandler, getPointStyle, getPointStyleAsCanvas, getPointStyleAsImage, getPointStyleCallback, getPointStyleType, getXAxisID, getYAxisID, isEnableBorderRadius, setBase, setBase, setBase, setBorderRadius, setBorderRadius, setBorderRadius, setBorderRadius, setBorderRadius, setBorderSkipped, setBorderSkipped, setBorderSkipped, setBorderSkipped, setBorderSkipped, setBorderWidth, setBorderWidth, setBorderWidth, setBorderWidth, setBorderWidth, setEnableBorderRadius, setEnableBorderRadius, setEnableBorderRadius, setFloatingData, setFloatingData, setFloatingData, setHoverBorderRadius, setHoverBorderRadius, setHoverBorderRadius, setHoverBorderRadius, setHoverBorderRadius, setHoverBorderWidth, setHoverBorderWidth, setHoverBorderWidth, setHoverBorderWidth, setHoverBorderWidth, setIndexAxis, setPointStyle, setPointStyle, setPointStyle, setPointStyle, setPointStyle, setXAxisID, setXAxisID, setYAxisID, setYAxisID
getBackgroundColor, getBackgroundColorAsGradient, getBackgroundColorAsPatterns, getBackgroundColorAsString, getBorderColor, getBorderColorAsGradient, getBorderColorAsString, getColors, getHoverBackgroundColor, getHoverBackgroundColorAsGradient, getHoverBackgroundColorAsPatterns, getHoverBackgroundColorAsString, getHoverBorderColor, getHoverBorderColorAsGradient, getHoverBorderColorAsString, getWidths, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setBorderColor, setColors, setColors, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderColor, setHoverBorderColor, setHoverBorderColor, setWidths
createContext, getAnimationContainer, getBackgroundColorCallback, getBorderColorCallback, getClip, getClipAsObject, getDataCount, getDataset, getDataType, getDefaultValues, getHoverBackgroundColorCallback, getHoverBorderColorCallback, getId, getOptions, getOptions, getScope, getType, getTypedDataset, hasOptions, invokeColorCallback, isClip, isHidden, isNormalized, isParsing, removeOptions, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setClip, setClip, setClip, setHidden, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderColor, setHoverBorderColor, setLabel, setNormalized, setOptions, setOptions, setParsing
checkAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkTimeSeriesItems, getTimeSeriesData, getTimeSeriesData, isTimeSeriesItem, setDataPoints, setDataPoints, setTimeSeriesData, setTimeSeriesData
getDataPoints, getDataPoints
getDataset
getBarPercentage, getBarThickness, getCategoryPercentage, getMaxBarThickness, getMinBarLength, isGrouped, setBarPercentage, setBarThickness, setCategoryPercentage, setGrouped, setMaxBarThickness, setMinBarLength
getAnimation, getAnimations, getTransitions, isAnimationEnabled, setAnimationEnabled
extractScope
public TimeSeriesBarDataset()
public TimeSeriesBarDataset(boolean hidden)
hidden
- if true
, it will be initially hidden.public TimeSeriesBarDataset(IsDefaultOptions defaultValues)
defaultValues
- default optionspublic TimeSeriesBarDataset(IsDefaultOptions defaultValues, boolean hidden)
defaultValues
- default optionshidden
- if true
, it will be initially hidden.protected TimeSeriesBarDataset(Type type, boolean hidden)
type
- chart type related to the datasethidden
- if true
, it will be initially hidden.protected TimeSeriesBarDataset(Type type, IsDefaultOptions defaultValues, boolean hidden)
type
- chart type related to the datasetdefaultValues
- default optionshidden
- if true
, it will be initially hidden.public final org.pepstock.charba.client.data.BarStackHandler getBarStackHandler()
public final void setData(double... values)
Dataset
setData
in interface HasTimeSeriesItems
setData
in class Dataset
values
- an array of numberspublic final void setData(List<Double> values)
Dataset
setData
in interface HasTimeSeriesItems
setData
in class Dataset
values
- list of numbers.public final List<Double> getData()
Dataset
getData
in interface HasTimeSeriesItems
getData
in class Dataset
DataType.NUMBERS
.public final List<Double> getData(boolean binding)
Dataset
getData
in interface HasTimeSeriesItems
getData
in class Dataset
binding
- if true
binds the new array list in the containerDataType.NUMBERS
.public void setStackGroup(String stackGroup)
stackGroup
- name of stack group.public String getStackGroup()
public void setOrder(int order)
order
- the drawing order of dataset.public int getOrder()