Class XRangePartialFill

  • All Implemented Interfaces:
    Serializable, OptionDataListener, org.zkoss.json.JSONAware

    public class XRangePartialFill
    extends Optionable
    A partial fill for each point, typically used to visualize how much of a task is performed. The partial fill object can be set either on series or point level.
    Since:
    7.2.1.0
    Author:
    rudyhuang
    See Also:
    Serialized Form
    • Constructor Detail

      • XRangePartialFill

        public XRangePartialFill()
      • XRangePartialFill

        public XRangePartialFill​(Number amount)
        Constructs with an amount.
    • Method Detail

      • getAmount

        public Number getAmount()
        Returns the amount of the X-range point to be filled. Values can be 0-1 and are converted to percentages in the default data label formatter.

        Default: null

      • setAmount

        public void setAmount​(Number amount)
        Sets the amount of the X-range point to be filled. Values can be 0-1 and are converted to percentages in the default data label formatter.
      • getFill

        public Color getFill()
        Returns the fill color to be used for partial fills.

        Default: a darker shade of the point color

      • setFill

        public void setFill​(Color fill)
        Sets the fill color to be used for partial fills.
      • setFill

        public void setFill​(String fill)
        Sets the fill color to be used for partial fills.
      • setFill

        public void setFill​(LinearGradient fill)
        Sets the fill color to be used for partial fills.
      • setFill

        public void setFill​(RadialGradient fill)
        Sets the fill color to be used for partial fills.