@politicalwatch/tipi-uikit 1.7.15 → 1.7.16
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
|
@@ -190,9 +190,11 @@ class d3sunburst extends d3chart {
|
|
|
190
190
|
console.log(data);
|
|
191
191
|
const root = d3
|
|
192
192
|
.hierarchy(data)
|
|
193
|
-
.sum((d) => d.value)
|
|
193
|
+
.sum((d) => d[this.cfg.value])
|
|
194
194
|
.sort((a, b) => b.name - a.name);
|
|
195
|
-
return d3
|
|
195
|
+
return d3
|
|
196
|
+
.partition()(root)
|
|
197
|
+
.each((d) => (d.current = d));
|
|
196
198
|
};
|
|
197
199
|
|
|
198
200
|
this.hData = partition(this.data[0]).descendants();
|