[DASHBOARDS] Add cumulative setting for bar chart and line chart (#16248)

## Description

- Add cumulative setting
- This setting is only present for dates
- It is preserved when switching from a date field to another date field
but it is reset when switching to another field type

## Video QA


https://github.com/user-attachments/assets/a070bf54-8ef6-4e35-9378-a514fe1c3848


https://github.com/user-attachments/assets/07edfe87-253c-45a5-b582-06f2df9a2dfc
This commit is contained in:
Raphaël Bosi
2025-12-02 14:00:58 +01:00
committed by GitHub
parent 00e970bdf4
commit 1038efa3dd
34 changed files with 766 additions and 19 deletions
@@ -145,6 +145,13 @@ export class BarChartConfigurationDTO {
@IsOptional()
groupMode?: BarChartGroupMode;
@Field(() => Boolean, {
nullable: true,
})
@IsBoolean()
@IsOptional()
isCumulative?: boolean;
@Field(() => String, { nullable: true, defaultValue: 'UTC' })
@IsTimeZone()
@IsOptional()
@@ -146,6 +146,13 @@ export class LineChartConfigurationDTO {
@IsOptional()
isStacked?: boolean;
@Field(() => Boolean, {
nullable: true,
})
@IsBoolean()
@IsOptional()
isCumulative?: boolean;
@Field(() => String, { nullable: true, defaultValue: 'UTC' })
@IsTimeZone()
@IsOptional()