@carbon/charts-react 1.13.5 → 1.13.6

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/dist/index.mjs CHANGED
@@ -14584,7 +14584,7 @@ class su extends dt {
14584
14584
  a.attr("id", function() {
14585
14585
  return (this.parentNode.querySelector("div.checkbox") || this.parentNode).getAttribute("aria-labelledby");
14586
14586
  }), r !== Ie.NONE ? a.html(function(o) {
14587
- return o.name.length > i ? zi(o.name, r, s) : o.name;
14587
+ return o.name.length > i && o.name.length !== s ? zi(o.name, r, s) : o.name;
14588
14588
  }) : a.html((o) => o.name);
14589
14589
  }
14590
14590
  addEventListeners() {
@@ -14596,7 +14596,7 @@ class su extends dt {
14596
14596
  const o = R(this);
14597
14597
  o.select("div.checkbox").classed("hovered", !0);
14598
14598
  const l = o.datum();
14599
- l.name.length > s.threshold && s.type !== Ie.NONE && t.services.events.dispatchEvent(O.Tooltip.SHOW, {
14599
+ l.name.length > s.threshold && s.numCharacter < l.name.length && s.type !== Ie.NONE && t.services.events.dispatchEvent(O.Tooltip.SHOW, {
14600
14600
  event: a,
14601
14601
  hoveredElement: o,
14602
14602
  content: l.name
@@ -14836,7 +14836,7 @@ class au extends dt {
14836
14836
  return r !== Ie.NONE ? t.map((a) => {
14837
14837
  const o = a.labelIcon ? 12 : 0;
14838
14838
  return a.value = a.value ? this.valueFormatter(a.value, a.label) : a.value, a.label && a.label.length + o > i && (a.label = zi(a.label, r, s)), a.value && a.value.length > i && (a.value = zi(a.value, r, s)), a;
14839
- }) : t;
14839
+ }) : t.map((a) => (a.value = a.value ? this.valueFormatter(a.value, a.label) : a.value, a));
14840
14840
  }
14841
14841
  getTooltipHTML(t) {
14842
14842
  return '<ul class="multi-tooltip">' + t.map(