Package org.pepstock.charba.client.data
Class HorizontalBarDataset
- 
- All Implemented Interfaces:
- HasCallbackScope,- HasDataPoints,- HasDataset,- IsDefaultAnimationContainer,- IsDefaultAnimationTransition,- IsDefaultBarDatasets,- HasAnimationOptions,- HasBarDatasetOptions
 - Direct Known Subclasses:
- StackedHorizontalBarDataset,- TimeSeriesHorizontalBarDataset
 
 public class HorizontalBarDataset extends BarDataset The horizontal bar chart allows a number of properties to be specified for each data set.
 These are used to set display properties for a specific data set.
 Some properties can be specified as an array.
 If these are set to an array value, the first value applies to the first bar, the second value to the second bar, and so on.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.pepstock.charba.client.data.DatasetDataset.CanvasObjectProperty, Dataset.CommonProperty
 
- 
 - 
Field Summary- 
Fields inherited from class org.pepstock.charba.client.data.BarDatasetFLOATING_BAR_DATA_FACTORY
 - 
Fields inherited from class org.pepstock.charba.client.data.DatasetDEFAULT_HIDDEN, DEFAULT_NORMALIZED, DEFAULT_PARSING
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description HorizontalBarDataset()Creates a data set.
 It uses the global options has default.HorizontalBarDataset(boolean hidden)Creates a data set.
 It uses the global options has default.HorizontalBarDataset(IsDefaultOptions defaultValues)Creates the data set using a default.HorizontalBarDataset(IsDefaultOptions defaultValues, boolean hidden)Creates the data set using a default.protectedHorizontalBarDataset(Type type, boolean hidden)Creates the data set using chart type related to the data set.protectedHorizontalBarDataset(Type type, IsDefaultOptions defaultValues, boolean hidden)Creates the data set using a default and chart type related to the data set.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description default intgetOrder()Returns the drawing order of dataset.
 Also affects order for stacking, tooltip, and legend.voidsetIndexAxis(IndexAxis indexAxis)Sets the base axis for the data set.
 UseIndexAxis.Yfor horizontal bar.default voidsetOrder(int order)Sets the drawing order of dataset.
 Also affects order for stacking, tooltip, and legend.- 
Methods inherited from class org.pepstock.charba.client.data.BarDatasetgetBase, 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.HoverFlexDatasetgetBackgroundColor, 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.DatasetcreateContext, getAnimationContainer, getBackgroundColorCallback, getBorderColorCallback, getClip, getClipAsObject, getData, getData, 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, setData, setData, setHidden, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderColor, setHoverBorderColor, setLabel, setNormalized, setOptions, setOptions, setParsing
 - 
Methods inherited from class org.pepstock.charba.client.commons.AbstractNodecheckAndAddToParent, 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.NativeObjectContainercheckDefaultValuesArgument, 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.pepstock.charba.client.options.HasAnimationOptionsgetAnimation, getAnimations, getTransitions, isAnimationEnabled, setAnimationEnabled
 - 
Methods inherited from interface org.pepstock.charba.client.options.HasBarDatasetOptionsgetBarPercentage, getBarThickness, getCategoryPercentage, getMaxBarThickness, getMinBarLength, isGrouped, setBarPercentage, setBarThickness, setCategoryPercentage, setGrouped, setMaxBarThickness, setMinBarLength
 - 
Methods inherited from interface org.pepstock.charba.client.data.HasDataPointsgetDataPoints, getDataPoints, setDataPoints, setDataPoints
 - 
Methods inherited from interface org.pepstock.charba.client.data.HasDatasetgetDataset
 
- 
 
- 
- 
- 
Constructor Detail- 
HorizontalBarDatasetpublic HorizontalBarDataset() Creates a data set.
 It uses the global options has default.
 - 
HorizontalBarDatasetpublic HorizontalBarDataset(boolean hidden) Creates a data set.
 It uses the global options has default.- Parameters:
- hidden- if- true, it will be initially hidden.
 
 - 
HorizontalBarDatasetpublic HorizontalBarDataset(IsDefaultOptions defaultValues) Creates the data set using a default.- Parameters:
- defaultValues- default options
 
 - 
HorizontalBarDatasetpublic HorizontalBarDataset(IsDefaultOptions defaultValues, boolean hidden) Creates the data set using a default.- Parameters:
- defaultValues- default options
- hidden- if- true, it will be initially hidden.
 
 - 
HorizontalBarDatasetprotected HorizontalBarDataset(Type type, boolean hidden) Creates the data set using chart type related to the data set.- Parameters:
- type- chart type related to the data set
- hidden- if- true, it will be initially hidden
 
 - 
HorizontalBarDatasetprotected HorizontalBarDataset(Type type, IsDefaultOptions defaultValues, boolean hidden) Creates the data set using a default and chart type related to the data set.- Parameters:
- type- chart type related to the data set
- defaultValues- default options
- hidden- if- true, it will be initially hidden.
 
 
- 
 - 
Method Detail- 
setIndexAxispublic void setIndexAxis(IndexAxis indexAxis) Description copied from class:BarDatasetSets the base axis for the data set.
 UseIndexAxis.Yfor horizontal bar.- Overrides:
- setIndexAxisin class- BarDataset
- Parameters:
- indexAxis- the base axis for the data set
 
 - 
setOrderpublic 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.
 
 - 
getOrderpublic default int getOrder() Returns the drawing order of dataset.
 Also affects order for stacking, tooltip, and legend.- Returns:
- the drawing order of dataset
 
 
- 
 
-