@carbon/charts-react 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/dist/index.mjs CHANGED
@@ -14667,15 +14667,18 @@ let nn = class extends mt {
14667
14667
  render(t) {
14668
14668
  if (!(y(this.getOptions(), "points", "enabled") || y(this.getOptions(), "bubble", "enabled")))
14669
14669
  return;
14670
- const n = this.getComponentContainer({ ariaLabel: "scatter points", withinChartClip: !0 }), r = this.getOptions(), { groupMapsTo: i } = r.data, { cartesianScales: s } = this.services;
14671
- if (!s) throw new Error("Services cartesianScales are undefined.");
14672
- const a = s.getDomainIdentifier(), o = n.selectAll("circle.dot").data(
14670
+ const n = this.services.zoom?.isZoomBarEnabled() || !1, r = this.getComponentContainer({
14671
+ ariaLabel: "scatter points",
14672
+ withinChartClip: n
14673
+ }), i = this.getOptions(), { groupMapsTo: s } = i.data, { cartesianScales: a } = this.services;
14674
+ if (!a) throw new Error("Services cartesianScales are undefined.");
14675
+ const o = a.getDomainIdentifier(), l = r.selectAll("circle.dot").data(
14673
14676
  this.getScatterData(),
14674
- (c) => `${c[i]}-${c[a]}`
14677
+ (u) => `${u[s]}-${u[o]}`
14675
14678
  );
14676
- o.exit().attr("opacity", 0).remove();
14677
- const l = o.enter().append("circle").classed("dot", !0).attr("opacity", 0).merge(o);
14678
- this.styleCircles(l, t), this.addEventListeners();
14679
+ l.exit().attr("opacity", 0).remove();
14680
+ const c = l.enter().append("circle").classed("dot", !0).attr("opacity", 0).merge(l);
14681
+ this.styleCircles(c, t), this.addEventListeners();
14679
14682
  }
14680
14683
  // A value is an anomaly if is above all defined domain and range thresholds
14681
14684
  isDatapointThresholdAnomaly(t) {
@@ -14742,7 +14745,11 @@ let nn = class extends mt {
14742
14745
  return null;
14743
14746
  }
14744
14747
  addEventListeners() {
14745
- const t = this, { groupMapsTo: n } = t.getOptions().data, r = y(this.getOptions(), "tooltip", "alwaysShowRulerTooltip");
14748
+ const t = this, { groupMapsTo: n } = t.getOptions().data, r = y(
14749
+ this.getOptions(),
14750
+ "tooltip",
14751
+ "alwaysShowRulerTooltip"
14752
+ );
14746
14753
  if (!this.parent) throw new Error("Parent not defined");
14747
14754
  const i = this.parent.selectAll("circle");
14748
14755
  r ? i.style("pointer-events", "none") : i.style("pointer-events", null), i.on("mouseover", function(s, a) {