Skip to content

Commit 8f79b84

Browse files
committed
Revert "fix: show integers for values below 1k in trends chart tooltip (#2550)"
This reverts commit da0897b.
1 parent 3cc9d17 commit 8f79b84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/Package/TrendsChart.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,7 @@ const chartConfig = computed<VueUiXyConfig>(() => {
15401540
const rows = items
15411541
.map((d: Record<string, any>) => {
15421542
const label = String(d?.name ?? '').trim()
1543-
const raw = Math.round(Number(d?.value ?? 0))
1543+
const raw = Number(d?.value ?? 0)
15441544
const v = compactNumberFormatter.value.format(Number.isFinite(raw) ? raw : 0)
15451545
15461546
if (!hasMultipleItems) {

0 commit comments

Comments
 (0)