We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8b963d commit 7a48833Copy full SHA for 7a48833
src/charts/PieChart/PieChart.tsx
@@ -119,8 +119,11 @@ export default function PieChart({
119
.value((d: any) => d[value]);
120
121
const pie: any = pieGenerator(data);
122
- const propsData = useMemo(() => pie.map((d: any) => ({[label]: d.data[label], [value]: d.data[value]})), [data])
123
-
+ const propsData = useMemo(
+ () =>
124
+ pie.map((d: any) => ({ [label]: d.data[label], [value]: d.data[value] })),
125
+ [data]
126
+ );
127
128
// ********************
129
// STEP 4. Define styles
0 commit comments