[DASHBOARDS] Use a time scale when the primary axis is a date on the Bar Chart (#15932)
Closes https://github.com/twentyhq/core-team-issues/issues/1891 Create empty buckets according to the date granularity Video QA: https://github.com/user-attachments/assets/86c0f817-35b3-4bab-b093-d11491684b82 Note: We would also need to create empty buckets for cyclic granularities (DAY_OF_THE_WEEK, MONTH_OF_THE_YEAR, QUARTER_OF_THE_YEAR). TODO: - Always order the cyclic granularities Monday -> Sunday (take firstDayOfTheWeek into account), January -> December, Q1 -> Q4. For now they are returned by the backend in alphabetical order, which doesn't make much sense - Remove the translation into the user's locale of these granularities from the backend because otherwise we can't reconstruct the missing days or month in the frontend since they will be translated --------- Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
This commit is contained in:
co-authored by
Lucas Bordeau
parent
c737042209
commit
fdb4e4ef10
+1
@@ -64,6 +64,7 @@ export interface GroupByResolverArgs<Filter = ObjectRecordFilter> {
|
||||
viewId?: string;
|
||||
orderBy?: OrderByWithGroupBy;
|
||||
orderByForRecords?: ObjectRecordOrderBy;
|
||||
limit?: number;
|
||||
}
|
||||
|
||||
export interface UpdateOneResolverArgs<
|
||||
|
||||
Reference in New Issue
Block a user