We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a237047 + d069e06 commit 2dec3b0Copy full SHA for 2dec3b0
1 file changed
src/AbstractChart.tsx
@@ -267,8 +267,7 @@ class AbstractChart<
267
paddingTop;
268
return (
269
<Text
270
- rotation={horizontalLabelRotation}
271
- origin={`${x}, ${y}`}
+ transform={`rotate(${horizontalLabelRotation}, ${x}, ${y})`}
272
key={`horizontal-label-${i}-${yLabel}`}
273
x={x}
274
textAnchor="end"
@@ -338,8 +337,7 @@ class AbstractChart<
338
337
339
340
341
342
- rotation={verticalLabelRotation}
+ transform={`rotate(${verticalLabelRotation}, ${x}, ${y})`}
343
key={`vertical-label-${i}-${label}`}
344
345
y={y}
0 commit comments