@carbon/charts 1.26.0 → 1.26.1

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,19 @@
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.26.1 (2025-09-22)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **scatter,scatterStacked:** use withiChartClip only with zoombar
11
+ ([#2042](https://github.com/carbon-design-system/carbon-charts/issues/2042))
12
+ ([a71fba6](https://github.com/carbon-design-system/carbon-charts/commit/a71fba6f4df65fea07e8ddfd5d616f0c39868f75))
13
+
14
+ # Change Log
15
+
16
+ All notable changes to this project will be documented in this file. See
17
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
18
+
6
19
  # 1.26.0 (2025-09-22)
7
20
 
8
21
  ### Features
@@ -6060,15 +6060,18 @@ class Qi extends dt {
6060
6060
  render(t) {
6061
6061
  if (!(O(this.getOptions(), "points", "enabled") || O(this.getOptions(), "bubble", "enabled")))
6062
6062
  return;
6063
- const n = this.getComponentContainer({ ariaLabel: "scatter points", withinChartClip: !0 }), s = this.getOptions(), { groupMapsTo: a } = s.data, { cartesianScales: r } = this.services;
6064
- if (!r) throw new Error("Services cartesianScales are undefined.");
6065
- const o = r.getDomainIdentifier(), c = n.selectAll("circle.dot").data(
6063
+ const n = this.services.zoom?.isZoomBarEnabled() || !1, s = this.getComponentContainer({
6064
+ ariaLabel: "scatter points",
6065
+ withinChartClip: n
6066
+ }), a = this.getOptions(), { groupMapsTo: r } = a.data, { cartesianScales: o } = this.services;
6067
+ if (!o) throw new Error("Services cartesianScales are undefined.");
6068
+ const c = o.getDomainIdentifier(), l = s.selectAll("circle.dot").data(
6066
6069
  this.getScatterData(),
6067
- (d) => `${d[a]}-${d[o]}`
6070
+ (u) => `${u[r]}-${u[c]}`
6068
6071
  );
6069
- c.exit().attr("opacity", 0).remove();
6070
- const h = c.enter().append("circle").classed("dot", !0).attr("opacity", 0).merge(c);
6071
- this.styleCircles(h, t), this.addEventListeners();
6072
+ l.exit().attr("opacity", 0).remove();
6073
+ const d = l.enter().append("circle").classed("dot", !0).attr("opacity", 0).merge(l);
6074
+ this.styleCircles(d, t), this.addEventListeners();
6072
6075
  }
6073
6076
  // A value is an anomaly if is above all defined domain and range thresholds
6074
6077
  isDatapointThresholdAnomaly(t) {
@@ -6135,7 +6138,11 @@ class Qi extends dt {
6135
6138
  return null;
6136
6139
  }
6137
6140
  addEventListeners() {
6138
- const t = this, { groupMapsTo: e } = t.getOptions().data, n = O(this.getOptions(), "tooltip", "alwaysShowRulerTooltip");
6141
+ const t = this, { groupMapsTo: e } = t.getOptions().data, n = O(
6142
+ this.getOptions(),
6143
+ "tooltip",
6144
+ "alwaysShowRulerTooltip"
6145
+ );
6139
6146
  if (!this.parent) throw new Error("Parent not defined");
6140
6147
  const s = this.parent.selectAll("circle");
6141
6148
  n ? s.style("pointer-events", "none") : s.style("pointer-events", null), s.on("mouseover", function(a, r) {
@@ -10778,4 +10785,4 @@ export {
10778
10785
  jm as y,
10779
10786
  Gm as z
10780
10787
  };
10781
- //# sourceMappingURL=choropleth-CRH6Tnw6.mjs.map
10788
+ //# sourceMappingURL=choropleth-Bu2YPax2.mjs.map