-
Notifications
You must be signed in to change notification settings - Fork 44
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 #4148 Task: 3857242 X-original-commit: 49a41ed Signed-off-by: Rémi Rahir (rar) <rar@odoo.com> Signed-off-by: Adrien Minne (adrm) <adrm@odoo.com>
- Loading branch information
1 parent
1285168
commit 0ff6dfc
Showing
3 changed files
with
38 additions
and
9 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