@politicalwatch/tipi-uikit 1.7.12 → 1.7.14

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@politicalwatch/tipi-uikit",
3
- "version": "1.7.12",
3
+ "version": "1.7.14",
4
4
  "main": "src/components/index.js",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -189,7 +189,10 @@ class d3sunburst extends d3chart {
189
189
  const partition = (data) => {
190
190
  const root = d3
191
191
  .hierarchy(data)
192
- .sum((d) => d[this.cfg.value])
192
+ .sum((d) => {
193
+ console.log('d en binddata', d);
194
+ return d[this.cfg.value];
195
+ })
193
196
  .sort((a, b) => b.name - a.name);
194
197
  return d3.partition()(root);
195
198
  };
@@ -245,8 +248,8 @@ class d3sunburst extends d3chart {
245
248
  .enter()
246
249
  .append('g')
247
250
  .attr('class', 'chart__slice-group chart__slice-group--sunburst clickable')
248
- .on('click', (event, d) => {
249
- event.stopPropagation();
251
+ .on('click', (d) => {
252
+ window.event.stopPropagation();
250
253
  this.focusOn(d);
251
254
  });
252
255