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 f8af7ea commit 1ccef6dCopy full SHA for 1ccef6d
src/App.tsx
@@ -20,8 +20,7 @@ function App() {
20
data={fruit.sort((a, b) => a.value - b.value)}
21
label="label"
22
value="value"
23
- legend="top-left"
24
- outerRadius={240}
+ outerRadius={400}
25
pieLabel={true}
26
/>
27
<BarChart
src/components/Arc.tsx
@@ -29,7 +29,8 @@ export const Arc = React.memo(
29
cursorX: e.nativeEvent.pageX,
30
cursorY: e.nativeEvent.pageY,
31
distanceFromTop: e.nativeEvent.pageY - e.clientY + e.clientY,
32
- distanceFromRight: margin.left + cWidth + margin.right - cWidth,
+ distanceFromRight:
33
+ cWidth - (margin.right + margin.left) - e.nativeEvent.pageX,
34
distanceFromLeft: e.pageX,
35
data,
36
};
0 commit comments