fix change label

This commit is contained in:
Francis Cao 2024-06-10 13:20:24 -07:00
parent 895398bebf
commit 1d9079f6ad
2 changed files with 7 additions and 6 deletions

View file

@ -62,7 +62,7 @@ export function WebsiteMetricsBar({
change:
(Math.min(visits.value, bounces.value) / visits.value) * 100 -
(Math.min(visits.prev, bounces.prev) / visits.prev) * 100,
formatValue: n => Number(n).toFixed(0) + '%',
formatValue: n => Math.round(+n) + '%',
reverseColors: true,
},
{