Files
twenty/packages/twenty-front/src/modules/page-layout/widgets/graph/constants/GraphDefaultDateGranularity.ts
T
Raphaël Bosi 576019e465 [DASHBOARDS] Rotate ticks on bar and line charts (#16528)
## Description

3 steps depending on the widget width. From bigger to tighter space:
- Fully shown horizontal text
- Rotated text
- Rotated text with skipped ticks to avoid overlapping

Also created common files for all constants for bar and pie charts.
Since a lot of them are shared, they can be inherited from a common
file.

## Video QA


https://github.com/user-attachments/assets/fd58d412-1a8b-4bd6-a420-4c03767e98d5
2025-12-16 16:39:42 +00:00

7 lines
295 B
TypeScript

import { ObjectRecordGroupByDateGranularity } from 'twenty-shared/types';
// Default date granularity for grouping date fields in graphs
// TODO: This will be configurable in the graph editor in the future
export const GRAPH_DEFAULT_DATE_GRANULARITY =
ObjectRecordGroupByDateGranularity.DAY;