@carbon/charts 1.15.2 → 1.15.3

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.
@@ -510,9 +510,9 @@ function Ta() {
510
510
  const $ = t.createElement("template");
511
511
  $.content && $.content.ownerDocument && (t = $.content.ownerDocument);
512
512
  }
513
- let y, A = "";
513
+ let y, w = "";
514
514
  const {
515
- implementation: w,
515
+ implementation: A,
516
516
  createNodeIterator: L,
517
517
  createDocumentFragment: I,
518
518
  getElementsByTagName: P
@@ -520,7 +520,7 @@ function Ta() {
520
520
  importNode: W
521
521
  } = n;
522
522
  let R = {};
523
- e.isSupported = typeof ba == "function" && typeof T == "function" && w && w.createHTMLDocument !== void 0;
523
+ e.isSupported = typeof ba == "function" && typeof T == "function" && A && A.createHTMLDocument !== void 0;
524
524
  const {
525
525
  MUSTACHE_EXPR: C,
526
526
  ERB_EXPR: V,
@@ -593,9 +593,9 @@ function Ta() {
593
593
  throw bt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
594
594
  if (typeof b.TRUSTED_TYPES_POLICY.createScriptURL != "function")
595
595
  throw bt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
596
- y = b.TRUSTED_TYPES_POLICY, A = y.createHTML("");
596
+ y = b.TRUSTED_TYPES_POLICY, w = y.createHTML("");
597
597
  } else
598
- y === void 0 && (y = Qr(u, s)), y !== null && typeof A == "string" && (A = y.createHTML(""));
598
+ y === void 0 && (y = Qr(u, s)), y !== null && typeof w == "string" && (w = y.createHTML(""));
599
599
  Ee && Ee(b), tt = b;
600
600
  }
601
601
  }, Qn = Y({}, ["mi", "mo", "mn", "ms", "mtext"]), es = Y({}, ["foreignobject", "desc", "title", "annotation-xml"]), Pa = Y({}, ["title", "style", "font", "a", "script"]), ts = Y({}, [...dn, ...hn, ...Fr]), ns = Y({}, [...un, ...zr]), Na = function(b) {
@@ -654,9 +654,9 @@ function Ta() {
654
654
  } catch {
655
655
  }
656
656
  if (!k || !k.documentElement) {
657
- k = w.createDocument(et, "template", null);
657
+ k = A.createDocument(et, "template", null);
658
658
  try {
659
- k.documentElement.innerHTML = Kt ? A : ee;
659
+ k.documentElement.innerHTML = Kt ? w : ee;
660
660
  } catch {
661
661
  }
662
662
  }
@@ -816,7 +816,7 @@ function Ta() {
816
816
  $.indexOf("<") === -1)
817
817
  return y && Lt ? y.createHTML($) : $;
818
818
  if (k = ss($), !k)
819
- return N ? null : Lt ? A : "";
819
+ return N ? null : Lt ? w : "";
820
820
  }
821
821
  k && D && Fe(k.firstChild);
822
822
  const ve = as(gt ? $ : k);
@@ -1843,8 +1843,8 @@ function Go(o) {
1843
1843
  var u = {
1844
1844
  group: p && p.group,
1845
1845
  state: d
1846
- }, g = [u.group, d].filter(Boolean).join("-").split("-").map(function(A) {
1847
- return A[0].toUpperCase() + A.substr(1);
1846
+ }, g = [u.group, d].filter(Boolean).join("-").split("-").map(function(w) {
1847
+ return w[0].toUpperCase() + w.substr(1);
1848
1848
  }).join(""), m = new CustomEvent(this.options["eventBefore".concat(g)], {
1849
1849
  bubbles: !0,
1850
1850
  cancelable: !0,
@@ -2608,18 +2608,18 @@ class vl extends q {
2608
2608
  if (O && i.length) {
2609
2609
  const T = this, y = d.selectAll("div.additional-item").data(O);
2610
2610
  y.exit().remove();
2611
- const A = y.enter().append("div").merge(y).classed("legend-item", !0).classed("additional", !0).attr(
2611
+ const w = y.enter().append("div").merge(y).classed("legend-item", !0).classed("additional", !0).attr(
2612
2612
  "aria-labelledby",
2613
2613
  (I, P) => this.services.domUtils.generateElementIDString(
2614
2614
  `legend-datagroup-${E.size() + P}-title`
2615
2615
  )
2616
2616
  );
2617
- A.selectAll("*").remove();
2618
- let w, L = 1;
2619
- A.append("svg").classed("icon", !0).each(function(I) {
2617
+ w.selectAll("*").remove();
2618
+ let A, L = 1;
2619
+ w.append("svg").classed("icon", !0).each(function(I) {
2620
2620
  const P = x(this);
2621
- !w || w != I.type ? (w = I.type, L = 1) : L++, T.addAdditionalItem(P, I, L);
2622
- }), A.append("p").merge(A.select("p")), this.truncateLegendText();
2621
+ !A || A != I.type ? (A = I.type, L = 1) : L++, T.addAdditionalItem(P, I, L);
2622
+ }), w.append("p").merge(w.select("p")), this.truncateLegendText();
2623
2623
  }
2624
2624
  p.exit().on("mouseover", null).on("click", null).on("mouseout", null).remove(), u && h.size() > 1 && this.addEventListeners();
2625
2625
  }
@@ -3066,37 +3066,37 @@ const dt = class dt extends q {
3066
3066
  if (p && d === pe.TIME) {
3067
3067
  let g = this.model.get("zoomDomain");
3068
3068
  g === void 0 && (g = this.services.zoom.getDefaultZoomBarDomain(), g && this.model.set({ zoomDomain: g }, { animate: !1 }));
3069
- const m = (w) => {
3070
- const L = w[1] - w[0];
3069
+ const m = (A) => {
3070
+ const L = A[1] - A[0];
3071
3071
  let I = "0," + L.toString();
3072
3072
  const P = Math.floor(l / dt.DASH_LENGTH), W = P * dt.DASH_LENGTH;
3073
3073
  for (let R = 0; R < P; R++)
3074
3074
  I += "," + dt.DASH_LENGTH;
3075
3075
  I += "," + (l - W), P % 2 === 1 && (I += ",0"), I += "," + L.toString(), I += "," + l.toString(), u.attr("stroke-dasharray", I);
3076
- }, E = (w) => {
3077
- const L = w.selection;
3076
+ }, E = (A) => {
3077
+ const L = A.selection;
3078
3078
  L === null || L[0] === L[1] || (u.attr("x", parseFloat(i.attr("x")) + parseFloat(s.attr("x"))).attr("y", i.attr("y")).attr("width", i.attr("width")).attr("height", i.attr("height")).style("cursor", "pointer").style("display", null), m(L));
3079
- }, O = (w, L) => {
3079
+ }, O = (A, L) => {
3080
3080
  const I = Qa().range([0, r]).domain(g);
3081
- let P = [I.invert(w), I.invert(L)];
3081
+ let P = [I.invert(A), I.invert(L)];
3082
3082
  P[0].valueOf() === P[1].valueOf() && (P = this.services.zoom.getDefaultZoomBarDomain()), (g[0].valueOf() !== P[0].valueOf() || g[1].valueOf() !== P[1].valueOf()) && this.services.zoom.handleDomainChange(P);
3083
3083
  };
3084
3084
  let T;
3085
- const y = (w) => {
3086
- const L = w.selection;
3085
+ const y = (A) => {
3086
+ const L = A.selection;
3087
3087
  L !== null && (O(L[0], L[1]), a.call(T.move, null), u.style("display", "none"));
3088
3088
  };
3089
3089
  l != 0 && r != 0 && (T = Qs().extent([
3090
3090
  [0, 0],
3091
3091
  [r - 1, l]
3092
3092
  ]).on("start brush end", E).on("end.brushed", y), a.call(T));
3093
- const A = this.services.zoom.getZoomRatio();
3094
- s.on("click", function(w) {
3095
- if (w.shiftKey) {
3093
+ const w = this.services.zoom.getZoomRatio();
3094
+ s.on("click", function(A) {
3095
+ if (A.shiftKey) {
3096
3096
  const L = this.services.domUtils.getHolder(), I = jt(a.node(), L)[0];
3097
- let P = I - r * A / 2;
3097
+ let P = I - r * w / 2;
3098
3098
  P < 0 && (P = 0);
3099
- let W = I + r * A / 2;
3099
+ let W = I + r * w / 2;
3100
3100
  W > r && (W = r), O(P, W);
3101
3101
  }
3102
3102
  });
@@ -3165,7 +3165,7 @@ class Eh extends q {
3165
3165
  },
3166
3166
  { skipUpdate: !0 }
3167
3167
  ), this.xScale.range([c, l]).domain(O), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, r - 6]).domain(Xt(E, (L) => L.value));
3168
- const A = this.model.get("zoomDomain");
3168
+ const w = this.model.get("zoomDomain");
3169
3169
  if (a === st.GRAPH_VIEW && (this.renderZoomBarArea(p, "path.zoom-graph-area-unselected", E, null), this.updateClipPath(t, this.clipId, 0, 0, 0, 0), this.renderZoomBarArea(p, "path.zoom-graph-area", E, this.clipId), this.renderZoomBarBaseline(p, c, l), i)) {
3170
3170
  const L = i.highlightStartMapsTo, I = i.highlightEndMapsTo, P = i.color, W = i.labelMapsTo;
3171
3171
  i.data.forEach((R, C) => {
@@ -3181,16 +3181,16 @@ class Eh extends q {
3181
3181
  ).style("stroke-dasharray", "2, 2").attr("stroke-width", "1px");
3182
3182
  });
3183
3183
  }
3184
- this.addBrushEventListener(A, c, l);
3185
- const w = S.appendOrSelect(t, this.brushSelector).call(this.brush);
3186
- if (A !== void 0)
3187
- if (A[0].valueOf() === A[1].valueOf())
3188
- w.call(this.brush.move, this.xScale.range()), this.updateBrushHandle(this.getComponentContainer(), this.xScale.range());
3184
+ this.addBrushEventListener(w, c, l);
3185
+ const A = S.appendOrSelect(t, this.brushSelector).call(this.brush);
3186
+ if (w !== void 0)
3187
+ if (w[0].valueOf() === w[1].valueOf())
3188
+ A.call(this.brush.move, this.xScale.range()), this.updateBrushHandle(this.getComponentContainer(), this.xScale.range());
3189
3189
  else {
3190
- const L = A.map((I) => this.xScale(I));
3191
- L[1] - L[0] < this.MIN_SELECTION_DIFF || (w.call(this.brush.move, L), this.updateBrushHandle(this.getComponentContainer(), L));
3190
+ const L = w.map((I) => this.xScale(I));
3191
+ L[1] - L[0] < this.MIN_SELECTION_DIFF || (A.call(this.brush.move, L), this.updateBrushHandle(this.getComponentContainer(), L));
3192
3192
  }
3193
- s && (this.brush.filter(() => !1), w.selectAll("rect").attr("cursor", "auto"));
3193
+ s && (this.brush.filter(() => !1), A.selectAll("rect").attr("cursor", "auto"));
3194
3194
  }
3195
3195
  }
3196
3196
  addBrushEventListener(e, t, n) {
@@ -3255,7 +3255,7 @@ class Eh extends q {
3255
3255
  S.appendOrSelect(a, "rect.zoom-slider-selected-area").attr("x", e[0]).attr("y", n / 2 - 1).attr("width", e[1] - e[0]).attr("height", 2);
3256
3256
  }
3257
3257
  renderZoomBarArea(e, t, n, s) {
3258
- const { cartesianScales: a } = this.services, i = a.getMainXAxisPosition(), r = a.getMainYAxisPosition(), l = a.getMainXScaleType(), c = a.getMainYScaleType(), d = (O, T, y) => (A) => a.getValueFromScale(O, T, y, A), p = d(this.xScale, l, i), h = d(this.yScale, c, r), u = v(this.getOptions(), "zoomBar", B.TOP, "type"), g = Me.height[u], m = Nn().x((O) => p(O)).y0(g).y1((O) => g - h(O)), E = S.appendOrSelect(e, t).datum(n).attr("d", m);
3258
+ const { cartesianScales: a } = this.services, i = a.getMainXAxisPosition(), r = a.getMainYAxisPosition(), l = a.getMainXScaleType(), c = a.getMainYScaleType(), d = (O, T, y) => (w) => a.getValueFromScale(O, T, y, w), p = d(this.xScale, l, i), h = d(this.yScale, c, r), u = v(this.getOptions(), "zoomBar", B.TOP, "type"), g = Me.height[u], m = Nn().x((O) => p(O)).y0(g).y1((O) => g - h(O)), E = S.appendOrSelect(e, t).datum(n).attr("d", m);
3259
3259
  s && E.attr("clip-path", `url(#${s})`);
3260
3260
  }
3261
3261
  updateClipPath(e, t, n, s, a, i) {
@@ -3333,7 +3333,7 @@ class bh extends q {
3333
3333
  ), g = p.services.cartesianScales.getScaleTypeByPosition(h);
3334
3334
  let m = null, E = null;
3335
3335
  h === B.LEFT || h === B.RIGHT ? (E = u, m = p.services.cartesianScales.getMainXScale()) : (m = u, E = p.services.cartesianScales.getMainYScale());
3336
- const O = g === pe.LABELS, [T, y] = m.range(), [A, w] = E.range(), { cartesianScales: L } = p.services, I = L.getOrientation(), P = (F) => L.getDomainValue(F), W = (F) => L.getRangeValue(F), [R, C] = $e(
3336
+ const O = g === pe.LABELS, [T, y] = m.range(), [w, A] = E.range(), { cartesianScales: L } = p.services, I = L.getOrientation(), P = (F) => L.getDomainValue(F), W = (F) => L.getRangeValue(F), [R, C] = $e(
3337
3337
  P,
3338
3338
  W,
3339
3339
  I
@@ -3344,13 +3344,13 @@ class bh extends q {
3344
3344
  name: "threshold-line-update",
3345
3345
  animate: e
3346
3346
  })
3347
- ).attr("y1", w).attr("y2", A).attr(
3347
+ ).attr("y1", A).attr("y2", w).attr(
3348
3348
  "x1",
3349
3349
  ({ datum: F }) => R(F) + (O ? u.step() / 2 : 0)
3350
3350
  ).attr(
3351
3351
  "x2",
3352
3352
  ({ datum: F }) => R(F) + (O ? u.step() / 2 : 0)
3353
- ).style("stroke", ({ fillColor: F }) => F), V.selectAll("rect.threshold-hoverable-area").attr("x", 0).attr("y", ({ datum: F }) => -R(F)).attr("width", Math.abs(A - w)).classed("rotate", !0)) : (V.selectAll("line.threshold-line").transition().call(
3353
+ ).style("stroke", ({ fillColor: F }) => F), V.selectAll("rect.threshold-hoverable-area").attr("x", 0).attr("y", ({ datum: F }) => -R(F)).attr("width", Math.abs(w - A)).classed("rotate", !0)) : (V.selectAll("line.threshold-line").transition().call(
3354
3354
  (F) => p.services.transitions.setupTransition({
3355
3355
  transition: F,
3356
3356
  name: "threshold-line-update",
@@ -3468,10 +3468,10 @@ class Sh extends q {
3468
3468
  c.append("rect").attr("class", "highlight-bar"), c.append("line").attr("class", "highlight-line"), c.merge(l).attr("class", "highlight-group");
3469
3469
  const p = this;
3470
3470
  r.each(function({ axisPosition: h }) {
3471
- const u = p.services.cartesianScales.getMainXScale(), g = p.services.cartesianScales.getMainYScale(), [m, E] = u.range(), [O, T] = g.range(), { cartesianScales: y } = p.services, A = y.getOrientation(), w = (R) => y.getDomainValue(R), L = (R) => y.getRangeValue(R), [I, P] = $e(
3472
- w,
3471
+ const u = p.services.cartesianScales.getMainXScale(), g = p.services.cartesianScales.getMainYScale(), [m, E] = u.range(), [O, T] = g.range(), { cartesianScales: y } = p.services, w = y.getOrientation(), A = (R) => y.getDomainValue(R), L = (R) => y.getRangeValue(R), [I, P] = $e(
3472
+ A,
3473
3473
  L,
3474
- A
3474
+ w
3475
3475
  ), W = x(this);
3476
3476
  h === B.TOP || h === B.BOTTOM ? W.selectAll("rect.highlight-bar").transition().call(
3477
3477
  (R) => p.services.transitions.setupTransition({
@@ -3618,15 +3618,15 @@ class xh extends q {
3618
3618
  }), this.graph.nodes = this.graph.nodes.filter((y) => y.value !== 0);
3619
3619
  const h = {};
3620
3620
  this.graph.nodes.forEach((y) => {
3621
- const A = y.x0;
3622
- y.category && (h[A] = y == null ? void 0 : y.category);
3621
+ const w = y.x0;
3622
+ y.category && (h[w] = y == null ? void 0 : y.category);
3623
3623
  }), t.append("g").classed("header-arrows", !0).selectAll("g").data(Object.keys(h)).join("g").attr("transform", (y) => `translate(${y}, 0)`).append("text").attr(
3624
3624
  "id",
3625
- (y, A) => this.services.domUtils.generateElementIDString(`alluvial-category-${A}`)
3626
- ).style("font-size", "14px").text((y) => h[y] ? h[y] : "").attr("y", 20).attr("x", (y, A) => {
3627
- const w = this.services.domUtils.generateElementIDString(
3628
- `alluvial-category-${A}`
3629
- ), { width: L } = S.getSVGElementSize(x(`text#${w}`), {
3625
+ (y, w) => this.services.domUtils.generateElementIDString(`alluvial-category-${w}`)
3626
+ ).style("font-size", "14px").text((y) => h[y] ? h[y] : "").attr("y", 20).attr("x", (y, w) => {
3627
+ const A = this.services.domUtils.generateElementIDString(
3628
+ `alluvial-category-${w}`
3629
+ ), { width: L } = S.getSVGElementSize(x(`text#${A}`), {
3630
3630
  useBBox: !0
3631
3631
  });
3632
3632
  let I = 0;
@@ -3635,10 +3635,10 @@ class xh extends q {
3635
3635
  const g = t.append("g").attr("fill", "none").selectAll("g").data(this.graph.links);
3636
3636
  if (g.exit().remove(), r) {
3637
3637
  const y = v(this.getOptions(), "color", "scale");
3638
- y && g.enter().append("linearGradient").attr("id", (A) => `${this.gradient_id}-link-${A.index}`).attr("gradientUnits", "userSpaceOnUse").call(
3639
- (A) => A.append("stop").attr("offset", "0%").attr("stop-color", (w) => y[w.source.name])
3638
+ y && g.enter().append("linearGradient").attr("id", (w) => `${this.gradient_id}-link-${w.index}`).attr("gradientUnits", "userSpaceOnUse").call(
3639
+ (w) => w.append("stop").attr("offset", "0%").attr("stop-color", (A) => y[A.source.name])
3640
3640
  ).call(
3641
- (A) => A.append("stop").attr("offset", "100%").attr("stop-color", (w) => y[w.target.name])
3641
+ (w) => w.append("stop").attr("offset", "100%").attr("stop-color", (A) => y[A.target.name])
3642
3642
  ), g.exit().remove();
3643
3643
  }
3644
3644
  g.enter().append("path").classed("link", !0).attr("d", Mi()).attr(
@@ -3672,17 +3672,17 @@ class xh extends q {
3672
3672
  E.append("text").attr(
3673
3673
  "id",
3674
3674
  (y) => this.services.domUtils.generateElementIDString(`alluvial-node-text-${y.index}`)
3675
- ).attr("class", "node-text").style("font-size", "12px").attr("text-anchor", "start").attr("fill", "white").attr("x", 4).attr("dy", 13).text((y) => `${y.name} (${T(y.value, O)})`).attr("aria-label", (y) => `${y.name} (${y.value})`), E.append("rect").classed("node-text-bg", !0).attr("width", (y, A) => {
3676
- const w = this.services.domUtils.generateElementIDString(
3677
- `alluvial-node-text-${A}`
3678
- ), { width: L } = S.getSVGElementSize(x(`text#${w}`), {
3675
+ ).attr("class", "node-text").style("font-size", "12px").attr("text-anchor", "start").attr("fill", "white").attr("x", 4).attr("dy", 13).text((y) => `${y.name} (${T(y.value, O)})`).attr("aria-label", (y) => `${y.name} (${y.value})`), E.append("rect").classed("node-text-bg", !0).attr("width", (y, w) => {
3676
+ const A = this.services.domUtils.generateElementIDString(
3677
+ `alluvial-node-text-${w}`
3678
+ ), { width: L } = S.getSVGElementSize(x(`text#${A}`), {
3679
3679
  useBBox: !0
3680
3680
  });
3681
3681
  return L + 8;
3682
- }).attr("height", 18).attr("stroke-width", 2).lower(), E.attr("transform", (y, A) => {
3683
- const w = this.services.domUtils.generateElementIDString(
3684
- `alluvial-node-text-${A}`
3685
- ), { width: L } = S.getSVGElementSize(x(`text#${w}`), {
3682
+ }).attr("height", 18).attr("stroke-width", 2).lower(), E.attr("transform", (y, w) => {
3683
+ const A = this.services.domUtils.generateElementIDString(
3684
+ `alluvial-node-text-${w}`
3685
+ ), { width: L } = S.getSVGElementSize(x(`text#${A}`), {
3686
3686
  useBBox: !0
3687
3687
  }), I = (y.y1 - y.y0) / 2 - 9;
3688
3688
  let P = y.x1 - y.x0;
@@ -3953,33 +3953,33 @@ class Lh extends q {
3953
3953
  render(e = !0) {
3954
3954
  const t = this.getComponentContainer({ withinChartClip: !0 }), n = this.getOptions();
3955
3955
  let s = [0, 0];
3956
- const { cartesianScales: a } = this.services, i = a.getOrientation(), r = Nn().curve(this.services.curves.getD3Curve()).defined((w) => {
3957
- const L = a.getRangeIdentifier(), I = w[L];
3956
+ const { cartesianScales: a } = this.services, i = a.getOrientation(), r = Nn().curve(this.services.curves.getD3Curve()).defined((A) => {
3957
+ const L = a.getRangeIdentifier(), I = A[L];
3958
3958
  return I != null;
3959
3959
  }), l = this.model.getGroupedData(this.configs.groups), c = v(n, "bounds"), d = c && l && l.length === 1;
3960
3960
  !d && c && console.warn(
3961
3961
  `Bounds can only be shown when having 1 single datagroup, you've supplied ${l.length}`
3962
3962
  );
3963
3963
  let p = 0;
3964
- const h = (w, L) => {
3965
- v(n, "axes", w, "includeZero") === !1 && L[0] > 0 && L[1] > 0 && (p = L[0]);
3966
- }, u = (w) => d ? a.getBoundedScaledValues(w)[0] : a.getRangeValue(p), g = (w) => d ? a.getBoundedScaledValues(w)[1] : a.getRangeValue(w);
3967
- i === xe.VERTICAL ? (s = a.getMainYScale().domain(), h(a.getMainYAxisPosition(), s), r.x((w) => a.getDomainValue(w)).y0((w) => u(w)).y1((w) => g(w))) : (s = a.getMainXScale().domain(), h(a.getMainXAxisPosition(), s), r.x0((w) => u(w)).x1((w) => g(w)).y((w) => a.getDomainValue(w)));
3964
+ const h = (A, L) => {
3965
+ v(n, "axes", A, "includeZero") === !1 && L[0] > 0 && L[1] > 0 && (p = L[0]);
3966
+ }, u = (A) => d ? a.getBoundedScaledValues(A)[0] : a.getRangeValue(p), g = (A) => d ? a.getBoundedScaledValues(A)[1] : a.getRangeValue(A);
3967
+ i === xe.VERTICAL ? (s = a.getMainYScale().domain(), h(a.getMainYAxisPosition(), s), r.x((A) => a.getDomainValue(A)).y0((A) => u(A)).y1((A) => g(A))) : (s = a.getMainXScale().domain(), h(a.getMainXAxisPosition(), s), r.x0((A) => u(A)).x1((A) => g(A)).y((A) => a.getDomainValue(A)));
3968
3968
  const m = v(n, "color", "gradient", "enabled"), E = l && l.length === 1 && m;
3969
3969
  l.length > 1 && m && console.error("Gradients can only be enabled when having 1 single dataset");
3970
- const O = t.selectAll("path.area").data(l, (w) => w.name), T = x(this.services.domUtils.getMainContainer());
3970
+ const O = t.selectAll("path.area").data(l, (A) => A.name), T = x(this.services.domUtils.getMainContainer());
3971
3971
  if (O.exit().attr("opacity", 0).remove(), !l.length)
3972
3972
  return;
3973
3973
  if (E) {
3974
- const w = T.select(
3974
+ const A = T.select(
3975
3975
  `path.${this.model.getColorClassName({
3976
3976
  classNameTypes: [z.STROKE],
3977
3977
  dataGroupName: l[0].name
3978
3978
  })}`
3979
3979
  ).node();
3980
3980
  let L;
3981
- if (w)
3982
- L = getComputedStyle(w, null).getPropertyValue(
3981
+ if (A)
3982
+ L = getComputedStyle(A, null).getPropertyValue(
3983
3983
  "stroke"
3984
3984
  );
3985
3985
  else {
@@ -4004,39 +4004,39 @@ class Lh extends q {
4004
4004
  this.parent.selectAll("defs linearGradient").empty() || this.parent.selectAll("defs linearGradient").each(function() {
4005
4005
  this.parentNode.remove();
4006
4006
  });
4007
- const y = this, A = O.enter().append("path");
4008
- E ? A.merge(O).style(
4007
+ const y = this, w = O.enter().append("path");
4008
+ E ? w.merge(O).style(
4009
4009
  "fill",
4010
- (w) => `url(#${this.services.domUtils.generateElementIDString(
4011
- `${w.name.replace(" ", "")}_${this.gradient_id}`
4010
+ (A) => `url(#${this.services.domUtils.generateElementIDString(
4011
+ `${A.name.replace(" ", "")}_${this.gradient_id}`
4012
4012
  )})`
4013
4013
  ).attr("class", "area").attr(
4014
4014
  "class",
4015
- (w) => this.model.getColorClassName({
4015
+ (A) => this.model.getColorClassName({
4016
4016
  classNameTypes: [z.FILL],
4017
- dataGroupName: w.name,
4017
+ dataGroupName: A.name,
4018
4018
  originalClassName: "area"
4019
4019
  })
4020
- ).attr("d", (w) => {
4021
- const { data: L } = w;
4020
+ ).attr("d", (A) => {
4021
+ const { data: L } = A;
4022
4022
  return r(L);
4023
- }) : (A.attr("opacity", 0).merge(O).attr("class", "area").attr(
4023
+ }) : (w.attr("opacity", 0).merge(O).attr("class", "area").attr(
4024
4024
  "class",
4025
- (w) => this.model.getColorClassName({
4025
+ (A) => this.model.getColorClassName({
4026
4026
  classNameTypes: [z.FILL, z.STROKE],
4027
- dataGroupName: w.name,
4027
+ dataGroupName: A.name,
4028
4028
  originalClassName: "area"
4029
4029
  })
4030
- ).style("fill", (w) => y.model.getFillColor(w.name, null, w.data)).transition().call(
4031
- (w) => this.services.transitions.setupTransition({
4032
- transition: w,
4030
+ ).style("fill", (A) => y.model.getFillColor(A.name, null, A.data)).transition().call(
4031
+ (A) => this.services.transitions.setupTransition({
4032
+ transition: A,
4033
4033
  name: "area-update-enter",
4034
4034
  animate: e
4035
4035
  })
4036
- ).attr("opacity", d ? 1 : He.opacity.selected).attr("d", (w) => {
4037
- const { data: L } = w;
4036
+ ).attr("opacity", d ? 1 : He.opacity.selected).attr("d", (A) => {
4037
+ const { data: L } = A;
4038
4038
  return r(L);
4039
- }), d && A.attr("fill-opacity", He.opacity.selected).style("stroke", (w) => y.model.getStrokeColor(w.name, null, w.data)).style("stroke-dasharray", "2, 2").attr("stroke-width", 0.7 + "px"));
4039
+ }), d && w.attr("fill-opacity", He.opacity.selected).style("stroke", (A) => y.model.getStrokeColor(A.name, null, A.data)).style("stroke-dasharray", "2, 2").attr("stroke-width", 0.7 + "px"));
4040
4040
  }
4041
4041
  destroy() {
4042
4042
  const e = this.services.events;
@@ -4085,12 +4085,12 @@ class Ah extends q {
4085
4085
  const T = this.services.cartesianScales.getDomainIdentifier(O), y = this.services.cartesianScales.getRangeIdentifier(O);
4086
4086
  return {
4087
4087
  name: v(O, 0, m),
4088
- data: O.map((A) => ({
4089
- [T]: A.data.sharedStackKey,
4090
- [m]: A[m],
4091
- [y]: A[1]
4088
+ data: O.map((w) => ({
4089
+ [T]: w.data.sharedStackKey,
4090
+ [m]: w[m],
4091
+ [y]: w[1]
4092
4092
  })),
4093
- hidden: !Dr(O, (A) => A[0] !== A[1])
4093
+ hidden: !Dr(O, (w) => w[0] !== w[1])
4094
4094
  };
4095
4095
  });
4096
4096
  } else
@@ -4162,18 +4162,18 @@ class Ma extends q {
4162
4162
  const m = this.pointsWithinLine.reduce((E, O) => {
4163
4163
  if (E.length === 0)
4164
4164
  return E.push(O), E;
4165
- const T = E[0].domainValue, y = Math.abs(d - O.domainValue), A = Math.abs(d - T);
4166
- return y > A || (y < A ? E = [O] : E.push(O)), E;
4165
+ const T = E[0].domainValue, y = Math.abs(d - O.domainValue), w = Math.abs(d - T);
4166
+ return y > w || (y < w ? E = [O] : E.push(O)), E;
4167
4167
  }, []);
4168
4168
  if (m.length > 0) {
4169
- const E = m.map((A) => A.originalData).filter((A) => {
4170
- const w = this.services.cartesianScales.getRangeIdentifier(A), L = A[w];
4169
+ const E = m.map((w) => w.originalData).filter((w) => {
4170
+ const A = this.services.cartesianScales.getRangeIdentifier(w), L = w[A];
4171
4171
  return L != null;
4172
4172
  }), O = m.map(
4173
- (A) => A.domainValue
4174
- ), T = u.filter((A) => {
4175
- const w = this.services.cartesianScales.getDomainValue(A);
4176
- return O.includes(w);
4173
+ (w) => w.domainValue
4174
+ ), T = u.filter((w) => {
4175
+ const A = this.services.cartesianScales.getDomainValue(w);
4176
+ return O.includes(A);
4177
4177
  });
4178
4178
  this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !Ea(this.elementsToHighlight, T) && this.hideRuler(), T.dispatch("mouseover"), this.elementsToHighlight = T, this.services.events.dispatchEvent(f.Tooltip.SHOW, {
4179
4179
  mousePosition: [t, n],
@@ -4513,7 +4513,7 @@ class Ca extends q {
4513
4513
  g.attr("aria-hidden", !0);
4514
4514
  return;
4515
4515
  }
4516
- const A = v(E, "scaleType"), w = v(n, "data", "loading"), L = v(E, "ticks", "number"), I = v(E, "ticks", "values"), P = v(E, "truncation", "type"), W = v(E, "truncation", "threshold"), R = v(E, "truncation", "numCharacter"), C = L !== null, V = v(n, "timeScale"), F = S.appendOrSelect(m, "g.tick"), M = S.appendOrSelect(F, "text").text("0"), Q = S.getSVGElementSize(M.node(), {
4516
+ const w = v(E, "scaleType"), A = v(n, "data", "loading"), L = v(E, "ticks", "number"), I = v(E, "ticks", "values"), P = v(E, "truncation", "type"), W = v(E, "truncation", "threshold"), R = v(E, "truncation", "numCharacter"), C = L !== null, V = v(n, "timeScale"), F = S.appendOrSelect(m, "g.tick"), M = S.appendOrSelect(F, "text").text("0"), Q = S.getSVGElementSize(M.node(), {
4517
4517
  useBBox: !0
4518
4518
  }).height;
4519
4519
  F.remove();
@@ -4565,7 +4565,7 @@ class Ca extends q {
4565
4565
  const J = U.getTime();
4566
4566
  return J >= new Date(qe).getTime() && J <= new Date(se).getTime();
4567
4567
  });
4568
- else if (A === pe.LABELS) {
4568
+ else if (w === pe.LABELS) {
4569
4569
  const U = this.services.cartesianScales.getScaleByPosition(t).domain();
4570
4570
  Ie = I.filter((J) => U.includes(J));
4571
4571
  } else
@@ -4591,7 +4591,7 @@ class Ca extends q {
4591
4591
  const Ke = this.model.isDataEmpty();
4592
4592
  if (E.title) {
4593
4593
  const U = S.appendOrSelect(l, "text.axis-title").html(
4594
- Ke || w ? "" : Pe(E.title)
4594
+ Ke || A ? "" : Pe(E.title)
4595
4595
  ), J = v(E, "titleOrientation");
4596
4596
  let ae;
4597
4597
  switch (t) {
@@ -4666,7 +4666,7 @@ class Ca extends q {
4666
4666
  this.getNumberOfFittingTicks(i, Q, lt.ticks.horizontalSpaceRatio)
4667
4667
  ), m.call(K), g.call(K)), l.selectAll("g.ticks g.tick text").attr("transform", "rotate(-45)").attr("text-anchor", t === B.TOP ? "start" : "end")) : l.selectAll("g.ticks g.tick text").attr("transform", null).attr("text-anchor", null);
4668
4668
  }
4669
- if (w ? l.attr("opacity", 0) : l.attr("opacity", 1), g.selectAll("g.tick").attr("aria-label", (U) => U), m.selectAll("g.tick").attr("aria-label", (U) => U), P !== ct.NONE && A === pe.LABELS && !I) {
4669
+ if (A ? l.attr("opacity", 0) : l.attr("opacity", 1), g.selectAll("g.tick").attr("aria-label", (U) => U), m.selectAll("g.tick").attr("aria-label", (U) => U), P !== ct.NONE && w === pe.LABELS && !I) {
4670
4670
  const U = this.services.cartesianScales.getScaleDomain(t);
4671
4671
  if (U.length > 0) {
4672
4672
  const J = a.select(`g.axis.${t} g.ticks g.tick`).html();
@@ -5013,7 +5013,7 @@ class Mh extends q {
5013
5013
  (C) => this.services.cartesianScales.getDomainValue(C),
5014
5014
  (C) => this.services.cartesianScales.getRangeValue(C),
5015
5015
  m
5016
- ), y = Math.floor((E ? h : u) / a.length), A = Math.min(y / 2, 16), w = this.model.getBoxplotData(), L = t.selectAll(".box-group").data(w);
5016
+ ), y = Math.floor((E ? h : u) / a.length), w = Math.min(y / 2, 16), A = this.model.getBoxplotData(), L = t.selectAll(".box-group").data(A);
5017
5017
  L.exit().remove();
5018
5018
  const I = L.enter().append("g").attr("class", "box-group"), P = L.merge(I);
5019
5019
  I.append("path").merge(L.select("path.vertical-line.start")).attr(
@@ -5059,14 +5059,14 @@ class Mh extends q {
5059
5059
  animate: e
5060
5060
  })
5061
5061
  ).attr("d", (C) => {
5062
- const V = g.getDomainValue(C[s]) - A / 2, F = V + A, M = g.getRangeValue(
5062
+ const V = g.getDomainValue(C[s]) - w / 2, F = V + w, M = g.getRangeValue(
5063
5063
  Math[E ? "max" : "min"](C.quartiles.q_75, C.quartiles.q_25)
5064
5064
  ), Q = M + Math.abs(
5065
5065
  g.getRangeValue(C.quartiles.q_75) - g.getRangeValue(C.quartiles.q_25)
5066
5066
  );
5067
5067
  return ye({ x0: V, x1: F, y0: M, y1: Q }, m);
5068
5068
  }), I.append("path").merge(L.select("path.highlight-area")).attr("class", "highlight-area").attr("opacity", 0).attr("d", (C) => {
5069
- const V = g.getDomainValue(C[s]) - A / 2, F = V + A, M = g.getRangeValue(C.whiskers.min), Q = g.getRangeValue(C.whiskers.max);
5069
+ const V = g.getDomainValue(C[s]) - w / 2, F = V + w, M = g.getRangeValue(C.whiskers.min), Q = g.getRangeValue(C.whiskers.max);
5070
5070
  return ye({ x0: V, x1: F, y0: M, y1: Q }, m);
5071
5071
  }), I.append("path").merge(L.select("path.whisker.start")).attr(
5072
5072
  "class",
@@ -5081,7 +5081,7 @@ class Mh extends q {
5081
5081
  animate: e
5082
5082
  })
5083
5083
  ).attr("d", (C) => {
5084
- const V = g.getDomainValue(C[s]) - A / 4, F = V + A / 2, M = g.getRangeValue(C.whiskers.min), Q = g.getRangeValue(C.whiskers.min);
5084
+ const V = g.getDomainValue(C[s]) - w / 4, F = V + w / 2, M = g.getRangeValue(C.whiskers.min), Q = g.getRangeValue(C.whiskers.min);
5085
5085
  return ye({ x0: V, x1: F, y0: M, y1: Q }, m);
5086
5086
  }), I.append("path").merge(L.select("path.median")).attr("fill", "none").attr(
5087
5087
  "class",
@@ -5096,7 +5096,7 @@ class Mh extends q {
5096
5096
  animate: e
5097
5097
  })
5098
5098
  ).attr("d", (C) => {
5099
- const V = g.getDomainValue(C[s]) - A / 2, F = V + A, M = g.getRangeValue(C.quartiles.q_50);
5099
+ const V = g.getDomainValue(C[s]) - w / 2, F = V + w, M = g.getRangeValue(C.quartiles.q_50);
5100
5100
  return ye({ x0: V, x1: F, y0: M, y1: M }, m);
5101
5101
  }), I.append("path").merge(L.select("path.whisker.end")).attr(
5102
5102
  "class",
@@ -5111,7 +5111,7 @@ class Mh extends q {
5111
5111
  animate: e
5112
5112
  })
5113
5113
  ).attr("d", (C) => {
5114
- const V = g.getDomainValue(C[s]) - A / 4, F = V + A / 2, M = g.getRangeValue(C.whiskers.max), Q = g.getRangeValue(C.whiskers.max);
5114
+ const V = g.getDomainValue(C[s]) - w / 4, F = V + w / 2, M = g.getRangeValue(C.whiskers.max), Q = g.getRangeValue(C.whiskers.max);
5115
5115
  return ye({ x0: V, x1: F, y0: M, y1: Q }, m);
5116
5116
  });
5117
5117
  const W = P.selectAll("circle.outlier").data(
@@ -5369,11 +5369,11 @@ class Ih extends q {
5369
5369
  const t = this.getOptions(), { groupMapsTo: n } = t.data, s = this.getComponentContainer({ withinChartClip: !0 }), a = this.model.getDisplayData(this.configs.groups), i = this.services.cartesianScales.getRangeScale(), r = this.services.cartesianScales.getRangeIdentifier(), [l, c] = i.range(), [, d] = i.domain(), p = () => {
5370
5370
  const m = [];
5371
5371
  a.forEach((T) => {
5372
- T.ranges ? T.ranges.forEach((y, A) => {
5372
+ T.ranges ? T.ranges.forEach((y, w) => {
5373
5373
  y != null && y < d && m.push({
5374
5374
  datum: T,
5375
5375
  value: y,
5376
- order: A + 1
5376
+ order: w + 1
5377
5377
  });
5378
5378
  }) : m.push({
5379
5379
  datum: T,
@@ -5388,9 +5388,9 @@ class Ih extends q {
5388
5388
  animate: e
5389
5389
  })
5390
5390
  ).attr("d", (T) => {
5391
- let A, w, L, I;
5392
- return T.order === 1 ? (A = this.services.cartesianScales.getDomainValue(T.datum) - 16 / 2, w = A + 16, L = c - 2, I = l + 1) : (A = this.services.cartesianScales.getDomainValue(T.datum) - 16 / 2, w = A + 16, L = this.services.cartesianScales.getRangeValue(T.value), I = c), ye(
5393
- { x0: A, x1: w, y0: L, y1: I },
5391
+ let w, A, L, I;
5392
+ return T.order === 1 ? (w = this.services.cartesianScales.getDomainValue(T.datum) - 16 / 2, A = w + 16, L = c - 2, I = l + 1) : (w = this.services.cartesianScales.getDomainValue(T.datum) - 16 / 2, A = w + 16, L = this.services.cartesianScales.getRangeValue(T.value), I = c), ye(
5393
+ { x0: w, x1: A, y0: L, y1: I },
5394
5394
  this.services.cartesianScales.getOrientation()
5395
5395
  );
5396
5396
  }).attr("opacity", 1);
@@ -5413,9 +5413,9 @@ class Ih extends q {
5413
5413
  const T = this.services.cartesianScales.getDomainIdentifier(O);
5414
5414
  return this.model.getFillColor(O[n], O[T], O);
5415
5415
  }).attr("d", (O) => {
5416
- const y = this.services.cartesianScales.getDomainValue(O) - 4, A = y + 8, w = this.services.cartesianScales.getRangeValue(0) + 1, L = this.services.cartesianScales.getRangeValue(O);
5416
+ const y = this.services.cartesianScales.getDomainValue(O) - 4, w = y + 8, A = this.services.cartesianScales.getRangeValue(0) + 1, L = this.services.cartesianScales.getRangeValue(O);
5417
5417
  return ye(
5418
- { x0: y, x1: A, y0: w, y1: L },
5418
+ { x0: y, x1: w, y0: A, y1: L },
5419
5419
  this.services.cartesianScales.getOrientation()
5420
5420
  );
5421
5421
  }).attr("opacity", 1).attr("role", X.GRAPHICS_SYMBOL).attr("aria-roledescription", "bar").attr("aria-label", (O) => O.value);
@@ -5431,20 +5431,20 @@ class Ih extends q {
5431
5431
  animate: e
5432
5432
  })
5433
5433
  ).attr("d", (O) => {
5434
- const y = this.services.cartesianScales.getDomainValue(O) - 12, A = y + 24, w = this.services.cartesianScales.getRangeValue(O.marker);
5434
+ const y = this.services.cartesianScales.getDomainValue(O) - 12, w = y + 24, A = this.services.cartesianScales.getRangeValue(O.marker);
5435
5435
  return ye(
5436
- { x0: y, x1: A, y0: w, y1: w },
5436
+ { x0: y, x1: w, y0: A, y1: A },
5437
5437
  this.services.cartesianScales.getOrientation()
5438
5438
  );
5439
5439
  }).attr("opacity", 1);
5440
5440
  }, g = () => {
5441
5441
  let m = [];
5442
5442
  a.filter((T) => v(T, "marker") !== null).forEach((T) => {
5443
- const y = T.marker, A = T[r];
5443
+ const y = T.marker, w = T[r];
5444
5444
  m = m.concat([
5445
- { datum: T, value: y * 0.25, barValue: A },
5446
- { datum: T, value: y * 0.5, barValue: A },
5447
- { datum: T, value: y * 0.75, barValue: A }
5445
+ { datum: T, value: y * 0.25, barValue: w },
5446
+ { datum: T, value: y * 0.5, barValue: w },
5447
+ { datum: T, value: y * 0.75, barValue: w }
5448
5448
  ]);
5449
5449
  });
5450
5450
  const E = S.appendOrSelect(s, "g.quartiles").selectAll("path.quartile").data(m, (T) => T[n]);
@@ -5455,11 +5455,11 @@ class Ih extends q {
5455
5455
  animate: e
5456
5456
  })
5457
5457
  ).attr("d", ({ datum: T, value: y }) => {
5458
- let A = 4;
5459
- T.ranges && T.ranges.indexOf(y) !== -1 && (A = 8);
5460
- const w = this.services.cartesianScales.getDomainValue(T) - A / 2, L = w + A, I = this.services.cartesianScales.getRangeValue(y);
5458
+ let w = 4;
5459
+ T.ranges && T.ranges.indexOf(y) !== -1 && (w = 8);
5460
+ const A = this.services.cartesianScales.getDomainValue(T) - w / 2, L = A + w, I = this.services.cartesianScales.getRangeValue(y);
5461
5461
  return ye(
5462
- { x0: w, x1: L, y0: I, y1: I },
5462
+ { x0: A, x1: L, y0: I, y1: I },
5463
5463
  this.services.cartesianScales.getOrientation()
5464
5464
  );
5465
5465
  }).attr("opacity", 1);
@@ -5744,7 +5744,7 @@ class Rh extends Ma {
5744
5744
  });
5745
5745
  if (E.size() > 0) {
5746
5746
  this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !Ea(this.elementsToHighlight, E) && this.hideRuler(), E.dispatch("mouseover"), this.elementsToHighlight = E;
5747
- const O = x(E.nodes()[0]).datum(), T = parseFloat(ne(O, "data.x0")), y = parseFloat(ne(O, "data.x1")), A = this.model.getActiveDataGroupNames(), w = A.reverse().map((I) => ({
5747
+ const O = x(E.nodes()[0]).datum(), T = parseFloat(ne(O, "data.x0")), y = parseFloat(ne(O, "data.x1")), w = this.model.getActiveDataGroupNames(), A = w.reverse().map((I) => ({
5748
5748
  label: I,
5749
5749
  value: ne(O, `data.${I}`),
5750
5750
  class: this.model.getColorClassName({
@@ -5752,7 +5752,7 @@ class Rh extends Ma {
5752
5752
  dataGroupName: I
5753
5753
  })
5754
5754
  })).filter((I) => I.value !== 0);
5755
- if (w.length > 0) {
5755
+ if (A.length > 0) {
5756
5756
  this.services.events.dispatchEvent(f.Tooltip.SHOW, {
5757
5757
  mousePosition: [t, n],
5758
5758
  hoveredElement: g,
@@ -5761,11 +5761,11 @@ class Rh extends Ma {
5761
5761
  label: ne(a, "bins.rangeLabel") || "Range",
5762
5762
  value: `${T} – ${y}`
5763
5763
  },
5764
- ...w,
5764
+ ...A,
5765
5765
  ...v(a, "tooltip", "showTotal") === !0 ? [
5766
5766
  {
5767
5767
  label: ne(a, "locale.translations.total") || ne(a, "tooltip.totalLabel") || "Total",
5768
- value: A.reduce(
5768
+ value: w.reduce(
5769
5769
  (P, W) => P + parseFloat(ne(O, `data.${W}`)),
5770
5770
  0
5771
5771
  )
@@ -5877,7 +5877,7 @@ class Fh extends vl {
5877
5877
  O.push(
5878
5878
  i === sn.LINEAR ? `stop-color-${E}-${r}-${R}` : `fill-${E}-${r}-${R}`
5879
5879
  );
5880
- const y = ta(p[0], p[1]), A = si(y, 3), w = Ye().domain(p).range([0, u]), L = Bn(w).tickSize(0).tickValues(A), { code: I, number: P } = v(t, "locale");
5880
+ const y = ta(p[0], p[1]), w = si(y, 3), A = Ye().domain(p).range([0, u]), L = Bn(A).tickSize(0).tickValues(w), { code: I, number: P } = v(t, "locale");
5881
5881
  L.tickFormat((R) => P(R, I));
5882
5882
  let W;
5883
5883
  switch (i) {
@@ -5891,7 +5891,7 @@ class Fh extends vl {
5891
5891
  d,
5892
5892
  g,
5893
5893
  u
5894
- ), w.range([W, u]);
5894
+ ), A.range([W, u]);
5895
5895
  break;
5896
5896
  default:
5897
5897
  throw Error("Entered color legend type is not supported.");
@@ -6284,10 +6284,10 @@ class Rl extends q {
6284
6284
  }).end().finally(() => {
6285
6285
  t.isRendering = !1;
6286
6286
  });
6287
- const { code: m, number: E } = v(s, "locale"), O = s.pie.labels.enabled, T = O ? d.filter((M) => M.data[i] > 0) : [], A = S.appendOrSelect(n, "g.labels").attr("role", X.GROUP).attr("data-name", "labels").selectAll("text.pie-label").data(T, (M) => M.data[a]);
6288
- A.exit().attr("opacity", 0).remove();
6289
- const w = A.enter().append("text").classed("pie-label", !0), L = [];
6290
- w.merge(A).style("text-anchor", "middle").text((M) => s.pie.labels.formatter ? s.pie.labels.formatter({
6287
+ const { code: m, number: E } = v(s, "locale"), O = s.pie.labels.enabled, T = O ? d.filter((M) => M.data[i] > 0) : [], w = S.appendOrSelect(n, "g.labels").attr("role", X.GROUP).attr("data-name", "labels").selectAll("text.pie-label").data(T, (M) => M.data[a]);
6288
+ w.exit().attr("opacity", 0).remove();
6289
+ const A = w.enter().append("text").classed("pie-label", !0), L = [];
6290
+ A.merge(w).style("text-anchor", "middle").text((M) => s.pie.labels.formatter ? s.pie.labels.formatter({
6291
6291
  ...M,
6292
6292
  percentageValue: tn(
6293
6293
  M.data[i],
@@ -6530,7 +6530,7 @@ class Xh extends q {
6530
6530
  const { width: y } = S.getSVGElementSize(
6531
6531
  S.appendOrSelect(e, "text.gauge-value-number"),
6532
6532
  { useBBox: !0 }
6533
- ), A = u / 2, w = d ? "%" : "", L = S.appendOrSelect(g, "text.gauge-value-symbol").style("font-size", `${A}px`).attr("x", y / 2).text(w), { width: I, height: P } = S.getSVGElementSize(L, {
6533
+ ), w = u / 2, A = d ? "%" : "", L = S.appendOrSelect(g, "text.gauge-value-symbol").style("font-size", `${w}px`).attr("x", y / 2).text(A), { width: I, height: P } = S.getSVGElementSize(L, {
6534
6534
  useBBox: !0
6535
6535
  });
6536
6536
  L.attr("y", `-${P / 2}px`), g.attr("transform", `translate(-${I / 2}, 0)`);
@@ -6545,19 +6545,19 @@ class Xh extends q {
6545
6545
  "transform",
6546
6546
  `translate(0, ${l(r) + p})`
6547
6547
  ), m = S.appendOrSelect(g, "text.gauge-delta-number"), E = h ? "%" : "";
6548
- m.data(s === null ? [] : [s]), m.enter().append("text").classed("gauge-delta-number", !0).merge(m).attr("text-anchor", "middle").style("font-size", `${l(r)}px`).text((A) => {
6549
- let w;
6550
- return A != null ? w = Number(A.toFixed(2)) % 1 !== 0 ? A.toFixed(2) : A.toFixed() : w = 0, c ? `${c(w)}${E}` : `${i(Number(w), a)}${E}`;
6548
+ m.data(s === null ? [] : [s]), m.enter().append("text").classed("gauge-delta-number", !0).merge(m).attr("text-anchor", "middle").style("font-size", `${l(r)}px`).text((w) => {
6549
+ let A;
6550
+ return w != null ? A = Number(w.toFixed(2)) % 1 !== 0 ? w.toFixed(2) : w.toFixed() : A = 0, c ? `${c(A)}${E}` : `${i(Number(A), a)}${E}`;
6551
6551
  });
6552
6552
  const { width: O } = S.getSVGElementSize(
6553
6553
  S.appendOrSelect(t, ".gauge-delta-number"),
6554
6554
  { useBBox: !0 }
6555
6555
  ), T = v(n, "gauge", "deltaArrow", "enabled"), y = g.selectAll("svg.gauge-delta-arrow").data(s !== null && T ? [s] : []);
6556
6556
  y.enter().append("svg").merge(y).attr("class", "gauge-delta-arrow").attr("x", -d(r) - O / 2).attr("y", -d(r) / 2 - l(r) * 0.35).attr("width", d(r)).attr("height", d(r)).attr("viewBox", "0 0 16 16").each(function() {
6557
- const A = x(this);
6558
- S.appendOrSelect(A, "rect.gauge-delta-arrow-backdrop").attr("width", "16").attr("height", "16").attr("fill", "none");
6559
- const w = v(n, "gauge", "status");
6560
- S.appendOrSelect(A, "polygon.gauge-delta-arrow").attr("class", w !== null ? `gauge-delta-arrow status--${w}` : "").attr("points", e.getArrow(s));
6557
+ const w = x(this);
6558
+ S.appendOrSelect(w, "rect.gauge-delta-arrow-backdrop").attr("width", "16").attr("height", "16").attr("fill", "none");
6559
+ const A = v(n, "gauge", "status");
6560
+ S.appendOrSelect(w, "polygon.gauge-delta-arrow").attr("class", A !== null ? `gauge-delta-arrow status--${A}` : "").attr("points", e.getArrow(s));
6561
6561
  }), y.exit().remove(), m.exit().remove();
6562
6562
  } else {
6563
6563
  const r = t.select("g.gauge-delta");
@@ -6671,10 +6671,10 @@ class Zh extends Wn {
6671
6671
  const u = this.services.cartesianScales.getDomainIdentifier(h);
6672
6672
  return this.model.getFillColor(h[s], h[u], h);
6673
6673
  }).attr("d", (h) => {
6674
- const u = this.groupScale(h[s]), g = this.getBarWidth(), m = u, E = u + g, O = this.services.cartesianScales.getRangeAxisPosition({ datum: h }), T = this.services.cartesianScales.getValueThroughAxisPosition(O, 0), y = this.services.cartesianScales.getRangeValue(h), A = this.services.cartesianScales.getDomainValue(h) - g / 2, w = A + g;
6675
- if (!this.isOutsideZoomedDomain(A, w))
6674
+ const u = this.groupScale(h[s]), g = this.getBarWidth(), m = u, E = u + g, O = this.services.cartesianScales.getRangeAxisPosition({ datum: h }), T = this.services.cartesianScales.getDomainLowerBound(O), y = this.services.cartesianScales.getValueThroughAxisPosition(O, T), w = this.services.cartesianScales.getRangeValue(h), A = this.services.cartesianScales.getDomainValue(h) - g / 2, L = A + g;
6675
+ if (!this.isOutsideZoomedDomain(A, L))
6676
6676
  return ye(
6677
- { x0: m, x1: E, y0: T, y1: y },
6677
+ { x0: m, x1: E, y0: y, y1: w },
6678
6678
  this.services.cartesianScales.getOrientation()
6679
6679
  );
6680
6680
  }).attr("opacity", 1).attr("role", X.GRAPHICS_SYMBOL).attr("aria-roledescription", "bar").attr("aria-label", (h) => h.value), this.addEventListeners();
@@ -7274,16 +7274,16 @@ class Qh extends q {
7274
7274
  useAttrs: !0
7275
7275
  }), a = this.model.getData(), i = this.model.getGroupedData(), r = this.getOptions(), l = v(r, "data", "groupMapsTo"), c = v(r, "radar", "axes", "value"), { angle: d, value: p } = v(r, "radar", "axes"), { xLabelPadding: h, yLabelPadding: u, yTicksNumber: g, minRange: m, xAxisRectHeight: E } = We;
7276
7276
  this.uniqueKeys = Array.from(new Set(a.map((_) => _[d]))), this.uniqueGroups = Array.from(new Set(a.map((_) => _[l]))), this.fullDataNormalized = this.normalizeFlatData(a), this.groupedDataNormalized = this.normalizeGroupedData(i);
7277
- const T = 2 * (this.getLabelDimensions(this.uniqueKeys[0]).height + u), w = (Math.min(n, s) - T) / 2;
7278
- if (w <= 0)
7277
+ const T = 2 * (this.getLabelDimensions(this.uniqueKeys[0]).height + u), A = (Math.min(n, s) - T) / 2;
7278
+ if (A <= 0)
7279
7279
  return;
7280
7280
  const L = Hn().domain(this.fullDataNormalized.map((_) => _[d])).range([0, 2 * Math.PI].map((_) => _ - Math.PI / 2)), I = vn(this.fullDataNormalized.map((_) => _[p])), P = Ye().domain([
7281
7281
  I >= 0 ? 0 : I,
7282
7282
  gs(this.fullDataNormalized.map((_) => _[p]))
7283
- ]).range([m, w]).nice(g), W = P.ticks(g), R = (_, D, N) => this.model.getFillColor(_, D, N), C = li().angle((_) => L(_[d]) + Math.PI / 2).radius((_) => P(_[p])).curve(ci), V = this.uniqueKeys.map((_) => {
7283
+ ]).range([m, A]).nice(g), W = P.ticks(g), R = (_, D, N) => this.model.getFillColor(_, D, N), C = li().angle((_) => L(_[d]) + Math.PI / 2).radius((_) => P(_[p])).curve(ci), V = this.uniqueKeys.map((_) => {
7284
7284
  const D = this.getLabelDimensions(_).width, N = Oi(
7285
7285
  L(_),
7286
- w
7286
+ A
7287
7287
  );
7288
7288
  return D + N;
7289
7289
  }), M = {
@@ -7968,7 +7968,7 @@ class iu extends q {
7968
7968
  name: "tree-update-viewbox",
7969
7969
  animate: !0
7970
7970
  })
7971
- ).attr("viewBox", [-p.left, W.x, n, C].join(" ")), F = w.selectAll("g").data(I, (H) => H.id), M = this, Q = F.enter().append("g").attr("transform", () => `translate(${L.y0},${L.x0})`).attr(
7971
+ ).attr("viewBox", [-p.left, W.x, n, C].join(" ")), F = A.selectAll("g").data(I, (H) => H.id), M = this, Q = F.enter().append("g").attr("transform", () => `translate(${L.y0},${L.x0})`).attr(
7972
7972
  "class",
7973
7973
  (H) => H.depth !== 0 && H.children && H.children.length > 0 ? "clickable" : null
7974
7974
  ).on("mouseover", function(H, Z) {
@@ -7991,7 +7991,7 @@ class iu extends q {
7991
7991
  });
7992
7992
  });
7993
7993
  Q.append("circle").attr("r", 2.5).attr("class", (H) => H._children ? "parent" : "child").attr("stroke-width", 10), Q.append("text").attr("dy", "0.31em").attr("x", (H) => H._children ? -rt : rt).attr("text-anchor", (H) => H._children ? "end" : "start").text((H) => H.data.name).clone(!0).attr("class", "text-stroke").lower(), F.merge(Q).transition(V).attr("transform", (H) => `translate(${H.y},${H.x})`).attr("fill-opacity", 1).attr("stroke-opacity", 1), F.exit().transition(V).remove().attr("transform", () => `translate(${L.y},${L.x})`).attr("fill-opacity", 0).attr("stroke-opacity", 0);
7994
- const me = A.selectAll("path").data(P, (H) => H.target.id), K = me.enter().append("path").attr("d", () => {
7994
+ const me = w.selectAll("path").data(P, (H) => H.target.id), K = me.enter().append("path").attr("d", () => {
7995
7995
  const H = { x: L.x0, y: L.y0 };
7996
7996
  return y({ source: H, target: H });
7997
7997
  });
@@ -8011,7 +8011,7 @@ class iu extends q {
8011
8011
  h.x0 = g / 2, h.y0 = 0, h.descendants().forEach((L, I) => {
8012
8012
  L.id = I, L._children = L.children;
8013
8013
  }), T(h), t.attr("viewBox", [-p.left, -p.top, n, u]).style("user-select", "none");
8014
- const A = t.append("g").attr("class", "links"), w = t.append("g").attr("class", "nodes");
8014
+ const w = t.append("g").attr("class", "links"), A = t.append("g").attr("class", "nodes");
8015
8015
  m(h);
8016
8016
  }
8017
8017
  }
@@ -8704,4 +8704,4 @@ export {
8704
8704
  Mh as y,
8705
8705
  _h as z
8706
8706
  };
8707
- //# sourceMappingURL=choropleth-iPofCoEr.mjs.map
8707
+ //# sourceMappingURL=choropleth-nq4Ls6mL.mjs.map