Class OhlcItem
java.lang.Object
com.vaadin.flow.component.charts.model.AbstractConfigurationObject
com.vaadin.flow.component.charts.model.AbstractSeriesItem
com.vaadin.flow.component.charts.model.DataSeriesItem
com.vaadin.flow.component.charts.model.OhlcItem
- All Implemented Interfaces:
Serializable
A DataSeriesItem implementation suitable for <a
https://en.wikipedia.org/wiki/Open-high-low-close_chart">OHLC charts.
OHLC charts visualize well financial data.
-
Constructor Summary
ConstructorsConstructorDescriptionOhlcItem()Constructs an empty ohlc data itemConstructs an ohlc data item for give open, high, low and close valuesConstructs an ohlc data item for give open, high, low and close values -
Method Summary
Methods inherited from class com.vaadin.flow.component.charts.model.DataSeriesItem
getCursor, getDataLabels, getDescription, getDial, getHigh, getLow, isCustomized, isSelected, makeCustomized, setColor, setCursor, setDataLabels, setDescription, setDial, setHigh, setId, setLegendIndex, setLow, setMarker, setName, setSelected, setSlicedMethods inherited from class com.vaadin.flow.component.charts.model.AbstractSeriesItem
getClassName, getColor, getColorIndex, getId, getLegendIndex, getMarker, getName, getSliced, getX, getY, setClassName, setColorIndex, setX, setX, setY
-
Constructor Details
-
OhlcItem
public OhlcItem()Constructs an empty ohlc data item -
OhlcItem
Constructs an ohlc data item for give open, high, low and close values- Parameters:
x-open-high-low-close-
-
OhlcItem
Constructs an ohlc data item for give open, high, low and close values- Parameters:
instant-open-high-low-close-
-
-
Method Details
-
getOpen
- See Also:
-
setOpen
Sets the open value of the OHLC item- Parameters:
open-
-
getClose
- See Also:
-
setClose
Sets the close value of the OHLC item- Parameters:
close-
-