chart.setAvailableCategories()

danger

Deprecated. See changeConfig instead.

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

Makes the specified categories available for selection, while making all others unavailable from selection. The parameter labelsOrIds must be an array of strings, which are the label or ID of the target categories to disable.

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

The code above makes the Stalls (id: 1) and Choir (id: 2) categories available for selection, while making all others unavailable.

Warning

Calling this method will deselect any object whose category was made unavailable.