@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 +15 -8
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/styles.css +6 -0
- package/dist/styles.css.map +1 -1
- package/dist/styles.min.css +1 -1
- package/dist/styles.min.css.map +1 -1
- package/package.json +3 -3
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.
|
|
14671
|
-
|
|
14672
|
-
|
|
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
|
-
(
|
|
14677
|
+
(u) => `${u[s]}-${u[o]}`
|
|
14675
14678
|
);
|
|
14676
|
-
|
|
14677
|
-
const
|
|
14678
|
-
this.styleCircles(
|
|
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(
|
|
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) {
|