You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.component.charts.model.

Class ItemPartialFill

    • Constructor Detail

      • ItemPartialFill

        public ItemPartialFill()

        Creates an empty PartialFill configuration object

      • ItemPartialFill

        public ItemPartialFill​(Number amount)

        Creates a new PartialFill with the defined fill amount

        Parameters:

        amount - The amount of the xrange point to be filled.

      • ItemPartialFill

        public ItemPartialFill​(Number amount,
                               Color fill)

        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 Detail

      • getFill

        public Color getFill()

        Returns:

        the color used for partial fills

        See Also:

        setFill(Color)

      • setFill

        public void setFill​(Color fill)

        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

      • setAmount

        public void setAmount​(Number amount)

        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 -