@carbon/charts 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/CHANGELOG.md CHANGED
@@ -3,6 +3,24 @@
3
3
  All notable changes to this project will be documented in this file. See
4
4
  [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 1.13.6 (2023-10-06)
7
+
8
+ **Note:** Version bump only for package @carbon/charts
9
+
10
+ # Change Log
11
+
12
+ All notable changes to this project will be documented in this file. See
13
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
14
+
15
+ ## 1.13.5 (2023-10-03)
16
+
17
+ **Note:** Version bump only for package @carbon/charts
18
+
19
+ # Change Log
20
+
21
+ All notable changes to this project will be documented in this file. See
22
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
23
+
6
24
  ## 1.13.4 (2023-09-25)
7
25
 
8
26
  **Note:** Version bump only for package @carbon/charts
@@ -2088,7 +2088,7 @@ class nr extends z {
2088
2088
  i.attr("id", function() {
2089
2089
  return (this.parentNode.querySelector("div.checkbox") || this.parentNode).getAttribute("aria-labelledby");
2090
2090
  }), s !== Ie.NONE ? i.html(function(r) {
2091
- return r.name.length > n ? Ge(r.name, s, a) : r.name;
2091
+ return r.name.length > n && r.name.length !== a ? Ge(r.name, s, a) : r.name;
2092
2092
  }) : i.html((r) => r.name);
2093
2093
  }
2094
2094
  addEventListeners() {
@@ -2100,7 +2100,7 @@ class nr extends z {
2100
2100
  const r = x(this);
2101
2101
  r.select("div.checkbox").classed("hovered", !0);
2102
2102
  const l = r.datum();
2103
- l.name.length > a.threshold && a.type !== Ie.NONE && e.services.events.dispatchEvent(f.Tooltip.SHOW, {
2103
+ l.name.length > a.threshold && a.numCharacter < l.name.length && a.type !== Ie.NONE && e.services.events.dispatchEvent(f.Tooltip.SHOW, {
2104
2104
  event: i,
2105
2105
  hoveredElement: r,
2106
2106
  content: l.name
@@ -2340,7 +2340,7 @@ class ir extends z {
2340
2340
  return s !== Ie.NONE ? e.map((i) => {
2341
2341
  const r = i.labelIcon ? 12 : 0;
2342
2342
  return i.value = i.value ? this.valueFormatter(i.value, i.label) : i.value, i.label && i.label.length + r > n && (i.label = Ge(i.label, s, a)), i.value && i.value.length > n && (i.value = Ge(i.value, s, a)), i;
2343
- }) : e;
2343
+ }) : e.map((i) => (i.value = i.value ? this.valueFormatter(i.value, i.label) : i.value, i));
2344
2344
  }
2345
2345
  getTooltipHTML(e) {
2346
2346
  return '<ul class="multi-tooltip">' + e.map(
@@ -8030,4 +8030,4 @@ export {
8030
8030
  Zc as y,
8031
8031
  Bc as z
8032
8032
  };
8033
- //# sourceMappingURL=choropleth-75258a8a.mjs.map
8033
+ //# sourceMappingURL=choropleth-bfa2bf81.mjs.map