@politicalwatch/tipi-uikit 1.7.1 → 1.7.3

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.1",
3
+ "version": "1.7.3",
4
4
  "main": "src/components/index.js",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -259,9 +259,11 @@ class d3sunburst extends d3chart {
259
259
  const label = this.cfg.tooltip.suffixPlural
260
260
  ? pluralize(this.cfg.tooltip.suffix, d.value)
261
261
  : this.cfg.tooltip.suffix;
262
+
263
+ console.log('VALOR DE D en hover:', d);
262
264
  const text = this.cfg.tooltip.suffix
263
- ? `<div>${d.data[this.cfg.key]}: ${d.value} ${label}</div>`
264
- : `<div>${d.data[this.cfg.key]}: ${d.value}</div>`;
265
+ ? `<div>${d.data[this.cfg.key] ?? 'TESTLABEL'}: ${d.value} ${label}</div>`
266
+ : `<div>${d.data[this.cfg.key] ?? 'TESTLABEL'}: ${d.value}</div>`;
265
267
  this.tooltip.html(text).classed('active', true);
266
268
  })
267
269
  .on('mouseout', () => {