Skip to content

Commit

Permalink
fix: remove dataKeyClicked from BarChart
Browse files Browse the repository at this point in the history
  • Loading branch information
mbauchet committed Sep 22, 2023
1 parent c2e36e6 commit cf1d6ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/chart-elements/BarChart/BarChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const BarChart = React.forwardRef<HTMLDivElement, BarChartProps>((props, ref) =>
});
onValueChange?.({
eventType: "bar",
dataKeyClicked: data.tooltipPayload[0]?.dataKey,
categoryClicked: data.tooltipPayload[0]?.dataKey,
...data.payload,
});
}
Expand Down

0 comments on commit cf1d6ad

Please sign in to comment.