web: add previous/compare values for all charts

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-01-21 22:05:49 +01:00
parent 308ae98472
commit 46d5d203dc
27 changed files with 1290 additions and 231 deletions

View File

@@ -0,0 +1,11 @@
export function useNumber() {
const locale = 'en-gb';
return {
format: (value: number) => {
return new Intl.NumberFormat(locale, {
maximumSignificantDigits: 20,
}).format(value);
},
};
}