Skip to content

Commit 6aacf57

Browse files
committed
Fix #765: Use transform instead of deprecated rotation/origin
Signed-off-by: Rabbl <root@rabbldating.com>
1 parent a237047 commit 6aacf57

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/AbstractChart.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,7 @@ class AbstractChart<
267267
paddingTop;
268268
return (
269269
<Text
270-
rotation={horizontalLabelRotation}
271-
origin={`${x}, ${y}`}
270+
transform={`rotate(${horizontalLabelRotation}, ${x}, ${y})`}
272271
key={`horizontal-label-${i}-${yLabel}`}
273272
x={x}
274273
textAnchor="end"

0 commit comments

Comments
 (0)