@politicalwatch/tipi-uikit 1.9.28 → 1.9.29

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.9.28",
3
+ "version": "1.9.29",
4
4
  "main": "src/components/index.js",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -272,8 +272,8 @@ class d3sunburst extends d3chart {
272
272
  const label = this.cfg.tooltip.suffixPlural
273
273
  ? pluralize(this.cfg.tooltip.suffix, d.value)
274
274
  : this.cfg.tooltip.suffix;
275
- const text = this.cfg.humanReadable
276
- ? this.formatDuration(d.value)
275
+ const text = this.cfg.tooltip.humanReadable
276
+ ? `<div>${d.data[this.cfg.key]}: ${this.formatDuration(d.value)}</div>`
277
277
  : this.cfg.tooltip.suffix
278
278
  ? `<div>${d.data[this.cfg.key]}: ${d.value} ${label}</div>`
279
279
  : `<div>${d.data[this.cfg.key]}: ${d.value}</div>`;