-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] charts: time axis broken with long formatted date
In the charts, we truncate the labels if they are too long (>20 characters)[1]. But in line chart with time axis, chartJS parses the labels to get a date. This parsing obviously fails if the label is truncated. This commit fixes the issue by not truncating the labels if the axis is a time axis. [1] e.g. a format like "12/04/2024 12:34:56 AM". closes #4133 Task: 3857242 X-original-commit: 1c949f2 Signed-off-by: Rémi Rahir (rar) <rar@odoo.com> Signed-off-by: Adrien Minne (adrm) <adrm@odoo.com>
- Loading branch information
1 parent
065ac98
commit 1f97287
Showing
3 changed files
with
37 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters