Skip to content

Commit

Permalink
Update docs/user-interaction.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: SEHI L'YI <[email protected]>
  • Loading branch information
etowahadams and sehilyi authored Jun 17, 2024
1 parent 09af3dd commit b1d640b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/user-interaction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ Corresponding specification:
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:

<img src='/img/doc_images/mouse_interaction.png' width='700' />
Expand Down

0 comments on commit b1d640b

Please sign in to comment.