Package org.pepstock.charba.client.data
Class TimeSeriesHorizontalBarDataset
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.commons.AbstractNode
-
- org.pepstock.charba.client.data.Dataset
-
- org.pepstock.charba.client.data.HoverFlexDataset
-
- org.pepstock.charba.client.data.BarDataset
-
- org.pepstock.charba.client.data.HorizontalBarDataset
-
- org.pepstock.charba.client.data.TimeSeriesHorizontalBarDataset
-
- All Implemented Interfaces:
HasCallbackScope
,HasDataPoints
,HasDataset
,HasTimeSeriesItems
,IsDefaultAnimationContainer
,IsDefaultAnimationTransition
,IsDefaultBarDatasets
,HasAnimationOptions
,HasBarDatasetOptions
public class TimeSeriesHorizontalBarDataset extends HorizontalBarDataset implements HasTimeSeriesItems
The time series horizontal bar chart allows a number of properties to be specified for each dataset. These are used to set display properties for a specific dataset.
In time series charts, the data (as double) is not allowed. You must useDataPoint
orTimeSeriesItem
.- Author:
- Andrea "Stock" Stocchero
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.pepstock.charba.client.data.Dataset
Dataset.CanvasObjectProperty, Dataset.CommonProperty
-
-
Field Summary
-
Fields inherited from class org.pepstock.charba.client.data.BarDataset
FLOATING_BAR_DATA_FACTORY
-
Fields inherited from class org.pepstock.charba.client.data.Dataset
DEFAULT_HIDDEN, DEFAULT_NORMALIZED, DEFAULT_PARSING
-
-
Constructor Summary
Constructors Modifier Constructor Description TimeSeriesHorizontalBarDataset()
Creates a dataset.
It uses the global options has default.TimeSeriesHorizontalBarDataset(boolean hidden)
Creates a dataset.
It uses the global options has default.TimeSeriesHorizontalBarDataset(IsDefaultOptions defaultValues)
Creates the dataset using a default.TimeSeriesHorizontalBarDataset(IsDefaultOptions defaultValues, boolean hidden)
Creates the dataset using a default.protected
TimeSeriesHorizontalBarDataset(Type type, boolean hidden)
Creates the dataset using a default and chart type related to the dataset.protected
TimeSeriesHorizontalBarDataset(Type type, IsDefaultOptions defaultValues, boolean hidden)
Creates the dataset using a default and chart type related to the dataset.
-
Method Summary
All Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description org.pepstock.charba.client.data.BarStackHandler
getBarStackHandler()
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.-
Methods inherited from class org.pepstock.charba.client.data.HorizontalBarDataset
setIndexAxis
-
Methods inherited from class org.pepstock.charba.client.data.BarDataset
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, getInflateAmount, getInflateAmountCallback, getLabel, getOrderHandler, getPointStyle, getPointStyleAsCanvas, getPointStyleAsImage, getPointStyleCallback, getPointStyleType, getXAxisID, getYAxisID, isAutoInflateAmount, isEnableBorderRadius, setAutoInflateAmount, 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, setInflateAmount, setInflateAmount, setInflateAmount, setPointStyle, setPointStyle, setPointStyle, setPointStyle, setPointStyle, setXAxisID, setXAxisID, setYAxisID, setYAxisID
-
Methods inherited from class org.pepstock.charba.client.data.HoverFlexDataset
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
-
Methods inherited from class org.pepstock.charba.client.data.Dataset
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
-
Methods inherited from class org.pepstock.charba.client.commons.AbstractNode
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, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
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, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pepstock.charba.client.options.HasAnimationOptions
getAnimation, getAnimations, getTransitions, isAnimationEnabled, setAnimationEnabled
-
Methods inherited from interface org.pepstock.charba.client.options.HasBarDatasetOptions
getBarPercentage, getBarThickness, getCategoryPercentage, getMaxBarThickness, getMinBarLength, isGrouped, setBarPercentage, setBarThickness, setCategoryPercentage, setGrouped, setMaxBarThickness, setMinBarLength
-
Methods inherited from interface org.pepstock.charba.client.data.HasDataPoints
getDataPoints, getDataPoints
-
Methods inherited from interface org.pepstock.charba.client.data.HasDataset
getDataset
-
Methods inherited from interface org.pepstock.charba.client.data.HasTimeSeriesItems
getTimeSeriesData, getTimeSeriesData, setDataPoints, setDataPoints, setTimeSeriesData, setTimeSeriesData
-
-
-
-
Constructor Detail
-
TimeSeriesHorizontalBarDataset
public TimeSeriesHorizontalBarDataset()
Creates a dataset.
It uses the global options has default.
-
TimeSeriesHorizontalBarDataset
public TimeSeriesHorizontalBarDataset(boolean hidden)
Creates a dataset.
It uses the global options has default.- Parameters:
hidden
- iftrue
, it will be initially hidden.
-
TimeSeriesHorizontalBarDataset
public TimeSeriesHorizontalBarDataset(IsDefaultOptions defaultValues)
Creates the dataset using a default.- Parameters:
defaultValues
- default options
-
TimeSeriesHorizontalBarDataset
public TimeSeriesHorizontalBarDataset(IsDefaultOptions defaultValues, boolean hidden)
Creates the dataset using a default.- Parameters:
defaultValues
- default optionshidden
- iftrue
, it will be initially hidden.
-
TimeSeriesHorizontalBarDataset
protected TimeSeriesHorizontalBarDataset(Type type, boolean hidden)
Creates the dataset using a default and chart type related to the dataset.- Parameters:
type
- chart type related to the datasethidden
- iftrue
, it will be initially hidden
-
TimeSeriesHorizontalBarDataset
protected TimeSeriesHorizontalBarDataset(Type type, IsDefaultOptions defaultValues, boolean hidden)
Creates the dataset using a default and chart type related to the dataset.- Parameters:
type
- chart type related to the datasetdefaultValues
- default optionshidden
- iftrue
, it will be initially hidden.
-
-
Method Detail
-
getBarStackHandler
public final org.pepstock.charba.client.data.BarStackHandler getBarStackHandler()
-
setData
public final void setData(double... values)
Description copied from class:Dataset
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.- Specified by:
setData
in interfaceHasTimeSeriesItems
- Overrides:
setData
in classDataset
- Parameters:
values
- an array of numbers
-
setData
public final void setData(List<Double> values)
Description copied from class:Dataset
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.- Specified by:
setData
in interfaceHasTimeSeriesItems
- Overrides:
setData
in classDataset
- Parameters:
values
- list of numbers.
-
getData
public final List<Double> getData()
Description copied from class:Dataset
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.- Specified by:
getData
in interfaceHasTimeSeriesItems
- Overrides:
getData
in classDataset
- Returns:
- list of numbers or an empty list of numbers if the data type is not
DataType.NUMBERS
.
-
getData
public final List<Double> getData(boolean binding)
Description copied from class:Dataset
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.- Specified by:
getData
in interfaceHasTimeSeriesItems
- Overrides:
getData
in classDataset
- Parameters:
binding
- iftrue
binds the new array list in the container- Returns:
- list of numbers or an empty list of numbers if the data type is not
DataType.NUMBERS
.
-
setStackGroup
public default void setStackGroup(String stackGroup)
Sets the name of stack group.- Parameters:
stackGroup
- name of stack group.
-
getStackGroup
public default String getStackGroup()
Returns the name of stack group.- Returns:
- the name of stack group.
-
setOrder
public default void setOrder(int order)
Sets the drawing order of dataset.
Also affects order for stacking, tooltip, and legend.- Parameters:
order
- the drawing order of dataset.
-
getOrder
public default int getOrder()
Returns the drawing order of dataset.
Also affects order for stacking, tooltip, and legend.- Returns:
- the drawing order of dataset
-
-