Class DataLabelsFilter

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

    public class DataLabelsFilter
    extends Optionable
    A declarative filter to control of which data labels to display. The declarative filter is designed for use when callback functions are not available, like when the chart options require a pure JSON structure or for use with graphical editors. For programmatic control, use the formatter instead, and return undefined to disable a single data label.
    Since:
    7.2.1.0
    Author:
    rudyhuang
    See Also:
    Serialized Form
    • Constructor Detail

      • DataLabelsFilter

        public DataLabelsFilter()
    • Method Detail

      • getOperator

        public String getOperator()
        Returns the operator to compare by. Can be one of >, <, >=, <=, ==, and ===.

        Default: null

      • setOperator

        public void setOperator​(String operator)
        Sets the operator to compare by. Can be one of >, <, >=, <=, ==, and ===.
      • getProperty

        public String getProperty()
        Returns the point property to filter by. Point options are passed directly to properties, additionally there are y value, percentage and others listed under Point members.

        Default: null

      • setProperty

        public void setProperty​(String property)
        Sets the point property to filter by. Point options are passed directly to properties, additionally there are y value, percentage and others listed under Point members.
      • getValue

        public Number getValue()
        Returns the value to compare against.

        Default: null

      • setValue

        public void setValue​(Number value)
        Sets the value to compare against.