Skip to content

Commit

Permalink
Update InteractionMode.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerlinsley committed Jul 19, 2021
1 parent 34c0d6f commit ac8f167
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/simple/src/components/InteractionMode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,17 @@ export default function GroupingModes() {
<button onClick={randomizeData}>Randomize Data</button>
<br />
<br />
<em>Voronoi is shown for demonstration purposes</em>
<br />
<br />
<ResizableBox>
<Chart
options={{
data,
interactionMode,
primaryAxis,
secondaryAxes,

showVoronoi: true,
onClickDatum: (datum) => {
if (datum) setState((old) => ({ ...old, clicked: datum as any }));
},
Expand Down

1 comment on commit ac8f167

@vercel
Copy link

@vercel vercel bot commented on ac8f167 Jul 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.