Type: function()
Returns: Promise<void>

Deselects the currently selected objects.

The promise resolves when the selection was successfully cleared. This means that the objects are not selected anymore, and that they have been released if they were temporarily held.

It gets rejected when releasing the held seats fails (e.g. due to a network issue).

try {
await chart.clearSelection();
} catch {
// whoops ... something went wrong