Class ColorVariation

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

    public class ColorVariation
    extends Optionable
    A configuration object to define how the color of a child varies from the parent's color. The variation is distributed among the children of node. For example when setting brightness, the brightness change will range from the parent's original brightness on the first child, to the amount set in the to setting on the last node. This allows a gradient-like color scheme that sets children out from each other while highlighting the grouping on treemaps and sectors on sunburst charts.
    Since:
    7.2.1.0
    Author:
    rudyhuang
    See Also:
    Serialized Form
    • Constructor Detail

      • ColorVariation

        public ColorVariation()
    • Method Detail

      • getKey

        public String getKey()
        Returns the key of a color variation. Currently supports brightness only.

        Default: null

      • setKey

        public void setKey​(String key)
        Sets the key of a color variation. Currently supports brightness only.
      • getTo

        public Number getTo()
        Returns the ending value of a color variation. The last sibling will receive this value.

        Default: null

      • setTo

        public void setTo​(Number to)
        Sets the ending value of a color variation. The last sibling will receive this value.