public class TimeSeriesBarDataset extends BarDataset implements HasTimeSeriesItems
DataPoint
or TimeSeriesItem
.FLEX_BAR_THICKNESS
Constructor and Description |
---|
TimeSeriesBarDataset()
Creates a dataset.
It uses the global options has default. |
TimeSeriesBarDataset(IsDefaultOptions defaultValues)
Creates the dataset using a default.
|
Modifier and Type | Method and Description |
---|---|
List<Double> |
getData()
Returns the data property of a dataset for a chart is specified as an array of numbers.
|
List<Double> |
getData(boolean binding)
Returns the data property of a dataset for a chart is specified as an array of numbers.
|
default int |
getOrder()
Returns the drawing order of dataset.
Also affects order for stacking, tooltip, and legend. |
String |
getStackGroup()
Returns the name of stack group.
|
void |
setData(double... values)
Sets the data property of a dataset for a chart is specified as an array of numbers.
|
void |
setData(List<Double> values)
Sets the data property of a dataset for a chart is specified as an array of numbers.
|
default void |
setOrder(int order)
Sets the drawing order of dataset.
Also affects order for stacking, tooltip, and legend. |
void |
setStackGroup(String stackGroup)
Sets the name of stack group.
|
getBarPercentage, getBarThickness, getBorderSkipped, getBorderSkippedCallback, getBorderWidthAsItem, getCategoryPercentage, getDefaultBackgroundColorAsString, getDefaultBorderColorAsString, getDefaultBorderWidth, getLabel, getMaxBarThickness, getMinBarLength, getOrderer, getXAxisID, getYAxisID, setBarPercentage, setBarThickness, setBorderSkipped, setBorderSkipped, setBorderSkipped, setBorderWidth, setCategoryPercentage, setMaxBarThickness, setMinBarLength, setXAxisID, setYAxisID
applyGradient, applyPattern, getBackgroundColor, getBackgroundColorAsGradient, getBackgroundColorAsPatterns, getBackgroundColorAsString, getBorderColor, getBorderColorAsGradient, getBorderColorAsString, getBorderWidth, getHoverBackgroundColor, getHoverBackgroundColorAsGradient, getHoverBackgroundColorAsPatterns, getHoverBackgroundColorAsString, getHoverBorderColor, getHoverBorderColorAsGradient, getHoverBorderColorAsString, getHoverBorderWidth, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setBorderColor, setBorderWidth, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderColor, setHoverBorderColor, setHoverBorderColor, setHoverBorderWidth
getBackgroundColorCallback, getBorderColorCallback, getBorderWidthCallback, getDataset, getDataType, getDefaultValues, getId, getOptions, getType, hasOptions, isHidden, setBackgroundColor, setBorderColor, setBorderWidth, setHidden, setLabel, setOptions, setType
checkValue, getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, 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
public TimeSeriesBarDataset()
public TimeSeriesBarDataset(IsDefaultOptions defaultValues)
defaultValues
- default optionspublic void setStackGroup(String stackGroup)
stackGroup
- name of stack group.public String getStackGroup()
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 into containerDataType.NUMBERS
.public void setOrder(int order)
order
- the drawing order of dataset.public int getOrder()