-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] chart: avoid overlapping values on charts
The option "Show Values" on charts could lead to overlapping texts in the chart, which was quite ugly. This commit improve the behaviour or the value labels: - prevent overlapping value labels on stacked charts - the bar chart value labels are now in the middle of the bar - the value labels have now the same color as the dataset - prevent value labels from going outside of the chart Code-wise, the commit totally splits the handling of bar and horizontal bar charts. It make the code slightly longer, but avoid having to write a ternary for each computation of x/y position, which ultimately makes the code more readable. closes #5109 Task: 4207889 X-original-commit: 75906d4 Signed-off-by: Lucas Lefèvre (lul) <[email protected]> Signed-off-by: Adrien Minne (adrm) <[email protected]>
- Loading branch information
1 parent
2e95535
commit a81189b
Showing
1 changed file
with
134 additions
and
61 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