Class DataSeriesItemXrange
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.DataSeriesItemXrange
- All Implemented Interfaces:
Serializable
DataSeriesItem that can hold also x2 and partialFill amount and color. Used
in e.g. xrange series.
To change partial fill amount or color use getPartialFill()
to get
the configuration object.
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs an empty itemDataSeriesItemXrange
(Number x, Number x2, Number y) Constructs an item with X, X2 and YDataSeriesItemXrange
(Number x, Number x2, Number y, Number partialFillAmount) Constructs an item with X, X2, Y and partialFillAmount.DataSeriesItemXrange
(Number x, Number x2, Number y, Number partialFillAmount, Color partialFillColor) Constructs an item with X, X2, Y, partialFillAmount and partialFillColor.DataSeriesItemXrange
(Instant x, Instant x2, Number y) Constructs an item with X, X2 and YDataSeriesItemXrange
(Instant x, Instant x2, Number y, Number partialFillAmount) Constructs an item with X, X2, Y and partialFillAmount.DataSeriesItemXrange
(Instant x, Instant x2, Number y, Number partialFillAmount, Color partialFillColor) Constructs an item with X, X2, Y, partialFillAmount and partialFillColor. -
Method Summary
Modifier and TypeMethodDescriptiongetX2()
Returns the X2-value of the item.void
setPartialFill
(ItemPartialFill partialFill) Partial fill configuration for series points, typically used to visualize how much of a task is performed.void
Sets the X2 value of this data item.void
Sets the given instant as the x2 value.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, setSliced
Methods inherited from class com.vaadin.flow.component.charts.model.AbstractSeriesItem
getClassName, getColor, getColorIndex, getId, getLegendIndex, getMarker, getName, getSliced, getX, getY, setClassName, setColorIndex, setX, setX, setX, setY
-
Constructor Details
-
DataSeriesItemXrange
public DataSeriesItemXrange()Constructs an empty item -
DataSeriesItemXrange
Constructs an item with X, X2 and Y- Parameters:
x
-x2
-y
-
-
DataSeriesItemXrange
Constructs an item with X, X2 and Y- Parameters:
x
-x2
-y
-
-
DataSeriesItemXrange
Constructs an item with X, X2, Y and partialFillAmount.- Parameters:
x
-x2
-y
-partialFillAmount
-
-
DataSeriesItemXrange
Constructs an item with X, X2, Y and partialFillAmount.- Parameters:
x
-x2
-y
-partialFillAmount
-
-
DataSeriesItemXrange
public DataSeriesItemXrange(Number x, Number x2, Number y, Number partialFillAmount, Color partialFillColor) Constructs an item with X, X2, Y, partialFillAmount and partialFillColor.- Parameters:
x
-x2
-y
-partialFillAmount
-partialFillColor
-
-
DataSeriesItemXrange
public DataSeriesItemXrange(Instant x, Instant x2, Number y, Number partialFillAmount, Color partialFillColor) Constructs an item with X, X2, Y, partialFillAmount and partialFillColor.- Parameters:
x
-x2
-y
-partialFillAmount
-partialFillColor
-
-
-
Method Details
-
getX2
Returns the X2-value of the item.- Returns:
- The X2 value of this data item.
- See Also:
-
setX2
Sets the X2 value of this data item. Defaults to null.- Parameters:
x
- X-value of the item.
-
setX2
Sets the given instant as the x2 value.- Parameters:
instant
- Instant to set.
-
getPartialFill
- See Also:
-
setPartialFill
Partial fill configuration for series points, typically used to visualize how much of a task is performed.
-