@carbon/charts-vue 1.13.4 → 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
@@ -14577,7 +14577,7 @@ class Cc extends ot {
14577
14577
  a.attr("id", function() {
14578
14578
  return (this.parentNode.querySelector("div.checkbox") || this.parentNode).getAttribute("aria-labelledby");
14579
14579
  }), r !== _e.NONE ? a.html(function(o) {
14580
- return o.name.length > i ? _i(o.name, r, s) : o.name;
14580
+ return o.name.length > i && o.name.length !== s ? _i(o.name, r, s) : o.name;
14581
14581
  }) : a.html((o) => o.name);
14582
14582
  }
14583
14583
  addEventListeners() {
@@ -14589,7 +14589,7 @@ class Cc extends ot {
14589
14589
  const o = D(this);
14590
14590
  o.select("div.checkbox").classed("hovered", !0);
14591
14591
  const l = o.datum();
14592
- l.name.length > s.threshold && s.type !== _e.NONE && t.services.events.dispatchEvent(O.Tooltip.SHOW, {
14592
+ l.name.length > s.threshold && s.numCharacter < l.name.length && s.type !== _e.NONE && t.services.events.dispatchEvent(O.Tooltip.SHOW, {
14593
14593
  event: a,
14594
14594
  hoveredElement: o,
14595
14595
  content: l.name
@@ -14829,7 +14829,7 @@ class $c extends ot {
14829
14829
  return r !== _e.NONE ? t.map((a) => {
14830
14830
  const o = a.labelIcon ? 12 : 0;
14831
14831
  return a.value = a.value ? this.valueFormatter(a.value, a.label) : a.value, a.label && a.label.length + o > i && (a.label = _i(a.label, r, s)), a.value && a.value.length > i && (a.value = _i(a.value, r, s)), a;
14832
- }) : t;
14832
+ }) : t.map((a) => (a.value = a.value ? this.valueFormatter(a.value, a.label) : a.value, a));
14833
14833
  }
14834
14834
  getTooltipHTML(t) {
14835
14835
  return '<ul class="multi-tooltip">' + t.map(