Skip to content

Commit

Permalink
fix: violin type
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw committed Jul 23, 2020
1 parent 28a3783 commit 56e0a47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vx-stats/src/ViolinPlot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export default function ViolinPlot<ScaleInput extends object = BinDatum>({
className,
data,
width = 10,
count = (d: unknown) => d?.count || 0,
value = (d: unknown) => d?.value || 0,
count = (d?: { count?: number }) => d?.count || 0,
value = (d?: { value?: number }) => d?.value || 0,
valueScale,
horizontal,
children,
Expand Down

0 comments on commit 56e0a47

Please sign in to comment.