Deprecated. See changeConfig instead.

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

Makes the specified categories 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.setUnavailableCategories(['Stalls', 'Choir']);
chart.setUnavailableCategories([1, 2]);

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


Calling this method will clear the current selection.