format ytick to truncate values
This commit is contained in:
1 parent
56e1aee525
commit
947adb197b
1 file changed
+1
-1
@@ -62,7 +62,7 @@ export const PercentTick = ({ x, y, payload, index }) => {
|
|||||||
fontSize={11}
|
fontSize={11}
|
||||||
fontWeight={400}
|
fontWeight={400}
|
||||||
>
|
>
|
||||||
{`${payload?.value * 100}%`}
|
{`${(payload?.value * 100).toFixed()}%`}
|
||||||
</Text>
|
</Text>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user