Package org.zkoss.chart.plotOptions
Class DataLabelsFilter
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.plotOptions.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
-
-
Field Summary
-
Fields inherited from class org.zkoss.chart.Optionable
NOT_NULL_VALUE, options
-
-
Constructor Summary
Constructors Constructor Description DataLabelsFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getOperator()
Returns the operator to compare by.String
getProperty()
Returns the point property to filter by.Number
getValue()
Returns the value to compare against.void
setOperator(String operator)
Sets the operator to compare by.void
setProperty(String property)
Sets the point property to filter by.void
setValue(Number value)
Sets the value to compare against.-
Methods inherited from class org.zkoss.chart.Optionable
addExtraAttr, addOptionDataListener, clearOptonDataListener, clone, containsKey, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getAttr, getAttr, getClientState, getExtraAttr, merge, onChange, removeExtraAttr, removeKey, removeOptionDataListener, setAttr, setAttr, setAttr, setAttr, toJSONString, toString
-
-
-
-
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 underPoint
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 underPoint
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.
-
-