mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: count format.
This commit is contained in:
1 parent
a72a538030
commit
562ef2387c
1 file changed
+3
-1
@@ -8,6 +8,7 @@
|
||||
<script lang="ts">
|
||||
import { Colors } from '$lib/charts/config';
|
||||
import { Status } from '$lib/components';
|
||||
import { formatNumberWithCommas } from '$lib/helpers/numbers';
|
||||
|
||||
export let legendData: LegendData[] = [];
|
||||
|
||||
@@ -16,8 +17,9 @@
|
||||
|
||||
<div class="u-flex u-cross-center u-gap-16">
|
||||
{#each legendData as { name, value }, index}
|
||||
{@const formattedValue = typeof value === 'number' ? formatNumberWithCommas(value) : value}
|
||||
<Status status="none" statusIconStyle="background-color: {colors[index % colors.length]}">
|
||||
{name} ({value})
|
||||
{name} ({formattedValue})
|
||||
</Status>
|
||||
{/each}
|
||||
</div>
|
||||
Reference in new issue
Block a user