chart.setFilteredCategories()

danger

Deprecated. See changeConfig instead.

Type: function(labelsOrIds)
Returns: Promise<void>

Leaves the specified categories normally visible, while making all others dimmed out. The parameter labelsOrIds must be an array of strings, which are the label or ID of the target categories to leave fully visible.

chart.setFilteredCategories(['Stalls', 'Choir']);
chart.setFilteredCategories([1, 2]);

The code above makes the Stalls (id: 1) and Choir (id: 2) categories fully visible, while dimming out all others.

Notice

This does not make any categories available or unavailable from selection, and it's meant to be used as a visual filter/aid only.