@politicalwatch/tipi-uikit 1.7.12 → 1.7.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -187,9 +187,10 @@ class d3sunburst extends d3chart {
|
|
|
187
187
|
*/
|
|
188
188
|
bindData() {
|
|
189
189
|
const partition = (data) => {
|
|
190
|
+
console.log(data);
|
|
190
191
|
const root = d3
|
|
191
192
|
.hierarchy(data)
|
|
192
|
-
.sum((d) => d
|
|
193
|
+
.sum((d) => d.value)
|
|
193
194
|
.sort((a, b) => b.name - a.name);
|
|
194
195
|
return d3.partition()(root);
|
|
195
196
|
};
|