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:
-
- 6.0.3
- See also:
-
- Highcharts-Demo: Data labels filtered by percentage
Example
filter: { property: 'percentage', operator: '>', value: 4 }
Members
-
operator :Highcharts.DataLabelsFilterOperatorValue
-
The operator to compare by. Can be one of
>
,<
,>=
,<=
,==
, and===
.Type:
-
property :string
-
The point property to filter by. Point options are passed directly to properties, additionally there are
y
value,percentage
and others listed under Highcharts.Point members.Type:
- string
-
value :number|null
-
The value to compare against.
Type:
- number | null