You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mouse events can be enabled in Gosling by defining a `MouseEvents` object in the track definition.
You can use the [JavaScript API](js-api#subscribe) to subscribe to the mouse-related events, i.e., "mouseOver", "rangeSelect", and "click", to create custom interactions with the visualization.
Refer to [gosling-react-example](https://github.com/gosling-lang/gosling-react-example) to see how mouse events can be used in various use cases.
Here is an example of a track with a range selection enabled: