Skip to content

Commit

Permalink
feat(website): improve data log when clicking on funnel parts
Browse files Browse the repository at this point in the history
  • Loading branch information
plouc committed Sep 4, 2021
1 parent f939554 commit 6f67fc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/src/pages/funnel/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react'
import omit from 'lodash/omit'
import merge from 'lodash/merge'
import { ResponsiveFunnel, svgDefaultProps } from '@nivo/funnel'
import { ComponentTemplate } from '../../components/components/ComponentTemplate'
Expand Down Expand Up @@ -84,7 +85,7 @@ const Funnel = () => (
type: 'click',
label: `[part] id: ${part.data.id}, value: ${part.formattedValue}`,
color: part.color,
data: part.data,
data: omit(part, ['points', 'areaPoints', 'borderPoints']),
})
}}
/>
Expand Down

0 comments on commit 6f67fc3

Please sign in to comment.