mirror of
https://github.com/directus/directus.git
synced 2026-02-06 09:24:54 -05:00
Use configured decimals in Y axis labels
This commit is contained in:
@@ -309,7 +309,12 @@ export default defineComponent({
|
||||
offsetY: 1,
|
||||
offsetX: -4,
|
||||
formatter: (value: number) => {
|
||||
return value > 10000 ? abbreviateNumber(value, 1) : n(value);
|
||||
return value > 10000
|
||||
? abbreviateNumber(value, 1)
|
||||
: n(value, 'decimal', {
|
||||
minimumFractionDigits: props.options.decimals ?? 0,
|
||||
maximumFractionDigits: props.options.decimals ?? 0,
|
||||
} as any);
|
||||
},
|
||||
style: {
|
||||
fontFamily: 'var(--family-sans-serif)',
|
||||
|
||||
Reference in New Issue
Block a user