Commit 646db21
committed
[FIX] charts: hierarchical charts should show formatted labels instead of raw
Before this commit:
- Hierarchical charts interpret datasets as labels and the last column
as values. dataset cells were read as raw values, which is correct for
other charts but incorrect here because these values are rendered as labels.
- As a result, formatted values were displayed incorrectly in charts
like Sunburst and Treemap.
After this commit:
- Dataset columns used as labels now use formatted cell values instead
of raw values, ensuring dates and other formatted types display
correctly in hierarchical charts.
closes #8133
Task: 5913296
X-original-commit: 5e7fb8c
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
Signed-off-by: Ronakkumar Mukeshbhai Bharadiya (rmbh) <rmbh@odoo.com>1 parent ca666fc commit 646db21
File tree
3 files changed
+77
-11
lines changed- src/helpers/figures/charts/runtime
- tests/figures/chart
- sunburst
- treemap
3 files changed
+77
-11
lines changedLines changed: 34 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
780 | 781 | | |
781 | 782 | | |
782 | 783 | | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
783 | 798 | | |
784 | 799 | | |
785 | 800 | | |
786 | 801 | | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
795 | 817 | | |
796 | | - | |
| 818 | + | |
| 819 | + | |
797 | 820 | | |
798 | 821 | | |
799 | 822 | | |
| |||
1081 | 1104 | | |
1082 | 1105 | | |
1083 | 1106 | | |
1084 | | - | |
| 1107 | + | |
1085 | 1108 | | |
1086 | 1109 | | |
1087 | 1110 | | |
1088 | 1111 | | |
1089 | 1112 | | |
1090 | | - | |
| 1113 | + | |
1091 | 1114 | | |
1092 | 1115 | | |
1093 | 1116 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
133 | 152 | | |
134 | 153 | | |
135 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
161 | 185 | | |
162 | 186 | | |
163 | 187 | | |
| |||
0 commit comments