We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ca1692 commit 15f2845Copy full SHA for 15f2845
app/components/Chart/SplitSparkline.vue
@@ -31,6 +31,7 @@ const props = defineProps<{
31
32
const { locale } = useI18n()
33
const colorMode = useColorMode()
34
+const numberFormatter = useNumberFormatter()
35
const resolvedMode = shallowRef<'light' | 'dark'>('light')
36
const rootEl = shallowRef<HTMLElement | null>(null)
37
const palette = getPalette('')
@@ -153,6 +154,9 @@ const configs = computed(() => {
153
154
fontSize: 24,
155
bold: false,
156
color: colors.value.fg,
157
+ formatter: ({ value }) => {
158
+ return numberFormatter.value.format(value)
159
+ },
160
datetimeFormatter: {
161
enable: true,
162
locale: locale.value,
0 commit comments