add frontend support for the date formatting option

This commit is contained in:
Gregor Vostrak
2025-05-08 18:00:25 +02:00
parent ed32c6b217
commit b1ff97a82f
6 changed files with 34 additions and 22 deletions

View File

@@ -43,7 +43,7 @@ const xAxisLabels = computed(() => {
if (props.groupedType === 'week') {
return props?.groupedData?.map((el) => formatWeek(el.key));
}
return props?.groupedData?.map((el) => formatDate(el.key ?? ''));
return props?.groupedData?.map((el) => formatDate(el.key ?? '', organization?.value?.date_format));
});
const accentColor = useCssVar('--theme-color-chart', null, { observe: true });
const labelColor = useCssVar('--color-text-secondary', null, { observe: true });