getEventZones

open fun getEventZones(dataset: Dataset<DOMAIN>): Collection<EventZone<DOMAIN>>

Get all of interactive zones for this Mark.

When drawing a Mark some zones need to react to user interactions (hovering, clicking...) and some may not, to know this the Chart will call this getEventZones function to retrieve a collection of EventZone of various shapes.

Note: when creating custom marks, it is highly recommended to create and store these EventZones, generally this can be done in the drawMark function, to avoid recreating them each time.

Return

a Collection of EventZone drawn by this mark.

Parameters

dataset

the chart's Dataset