add frontend support for the date formatting option

This commit is contained in:
Gregor Vostrak
2025-05-08 18:00:25 +02:00
committed by Constantin Graf
parent f69bc28316
commit a076bb2fb0
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 });