Chart

HotSpots

A means of interacting with a Chart. It is structured as a specified number of slots that the user can hover over or click. It should be placed inside a Layers component.

Properties

activeIndex {number}
The currently active slot index, if any.
count {number}
The number of slots, including both ends. This property is required.
onActive {function (index)}
Hover handler. The hovered index is passed as an argument. When the user is ceases to hover over the component, undefined is passed as an argument.
onClick {function (index)}
Click handler. The clicked index is passed as an argument.
vertical true|false
Whether the slots should be layed out horizontally or vertically.