format ytick to truncate values

This commit is contained in:
Alex Holliday committed 2024-11-25 10:49:05 +08:00
1 parent 56e1aee525
commit 947adb197b
1 file changed
+1 -1
@@ -62,7 +62,7 @@ export const PercentTick = ({ x, y, payload, index }) => {
fontSize={11}
fontWeight={400}
>
{`${payload?.value * 100}%`}
{`${(payload?.value * 100).toFixed()}%`}
</Text>
);
};