com.vaadin.flow.component.charts.model.
Class ItemPartialFill
All Implemented Interfaces:
PartialFill configuration object to be used in DataSeriesItemXrange
.
Typically used to visualize how much of a task is performed.
See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty PartialFill configuration object
ItemPartialFill
(Number amount) Creates a new PartialFill with the defined fill amount
ItemPartialFill
(Number amount, Color fill) Creates a new PartialFill with the defined fill color and amount
-
Method Summary
-
Constructor Details
-
ItemPartialFill
public ItemPartialFill()Creates an empty PartialFill configuration object
-
ItemPartialFill
Creates a new PartialFill with the defined fill amount
Parameters:
amount
- The amount of the xrange point to be filled. -
ItemPartialFill
Creates a new PartialFill with the defined fill color and amount
Parameters:
amount
- The amount of the xrange point to be filled.fill
- The color to be used for partial fills
-
-
Method Details
-
getFill
Returns:
the color used for partial fills
See Also:
-
setFill
The fill color to be used for partial fills. When
null
, a darker shade of the point's color is used.Parameters:
fill
- color to be used for partial fills -
getAmount
Returns:
the amount used for partial fill
See Also:
-
setAmount
The amount of the xrange point to be filled. Values can be 0-1 and are converted to percentages in the default data label formatter.
Parameters:
amount
-
-