@carbon/charts-vue 1.21.4 → 1.22.0

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
@@ -11297,13 +11297,13 @@ let dt = class {
11297
11297
  getParent() {
11298
11298
  return this.parent;
11299
11299
  }
11300
- getComponentContainer(t = { withinChartClip: !1 }) {
11300
+ getComponentContainer(t = { ariaLabel: null, isPresentational: !1, withinChartClip: !1 }) {
11301
11301
  if (this.type) {
11302
11302
  const n = b(this.model.getOptions(), "style", "prefix"), r = this.id ? `#${this.id}` : "", i = I.appendOrSelect(
11303
11303
  this.parent,
11304
11304
  `${this.renderType === Q.SVG ? "svg" : "div"}${r}.${le}--${n}--${this.type}`
11305
11305
  );
11306
- if (t.withinChartClip) {
11306
+ if (t.ariaLabel && i.attr("aria-label", t.ariaLabel), t.isPresentational && i.attr("role", "presentation"), t.withinChartClip) {
11307
11307
  const a = this.model.get("chartClipId");
11308
11308
  if (a) {
11309
11309
  const s = D(`#${a}`).select("rect");
@@ -11861,7 +11861,9 @@ const Na = (e) => xu.sanitize(e, {
11861
11861
  // @ts-ignore
11862
11862
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
11863
11863
  render(t = !0) {
11864
- const n = this.getComponentContainer().attr("role", "toolbar");
11864
+ const n = this.getComponentContainer({
11865
+ ariaLabel: "toolbar"
11866
+ }).attr("role", "group");
11865
11867
  if (b(this.getOptions(), "data", "loading"))
11866
11868
  n.html(""), this.overflowMenu = null;
11867
11869
  else {
@@ -12242,46 +12244,47 @@ const Pv = class Bv extends dt {
12242
12244
  return this.parent.selectAll(`div.layout-child-${this._instanceID}`).filter((t) => b(t, "growth") === at.STRETCH).size();
12243
12245
  }
12244
12246
  render(t = !0) {
12245
- const n = this.parent, { width: r, height: i } = I.getHTMLElementSize(n.node()), a = this.configs.direction === At.ROW || this.configs.direction === At.ROW_REVERSE, s = b(this.model.getOptions(), "style", "prefix"), o = n.classed(
12246
- `${le}--${s}--layout-row`,
12247
+ const n = this.model.getOptions(), r = this.parent, { width: i, height: a } = I.getHTMLElementSize(r.node()), s = this.configs.direction === At.ROW || this.configs.direction === At.ROW_REVERSE, o = b(this.model.getOptions(), "style", "prefix"), l = r.classed(
12248
+ `${le}--${o}--layout-row`,
12247
12249
  this.configs.direction === At.ROW
12248
12250
  ).classed(
12249
- `${le}--${s}--layout-row-reverse`,
12251
+ `${le}--${o}--layout-row-reverse`,
12250
12252
  this.configs.direction === At.ROW_REVERSE
12251
12253
  ).classed(
12252
- `${le}--${s}--layout-column`,
12254
+ `${le}--${o}--layout-column`,
12253
12255
  this.configs.direction === At.COLUMN
12254
12256
  ).classed(
12255
- `${le}--${s}--layout-column-reverse`,
12257
+ `${le}--${o}--layout-column-reverse`,
12256
12258
  this.configs.direction === At.COLUMN_REVERSE
12257
12259
  ).classed(
12258
- `${le}--${s}--layout-alignitems-center`,
12260
+ `${le}--${o}--layout-alignitems-center`,
12259
12261
  this.configs.alignItems === Qr.CENTER
12260
- ).selectAll(`div.layout-child-${this._instanceID}`).data(this.children, (c) => c.id);
12261
- o.enter().append("div").merge(n.selectAll(`div.layout-child-${this._instanceID}`)).attr("class", (c) => `layout-child layout-child-${this._instanceID} ${c.id}`).each(function(c) {
12262
- c.components.forEach((u) => {
12263
- const d = D(this), h = b(c, "renderType") === Q.SVG;
12264
- u.setParent(
12265
- h ? I.appendOrSelect(d, "svg.layout-svg-wrapper").attr("width", "100%").attr("height", "100%") : d
12266
- );
12267
- const p = b(c, "growth");
12268
- (p === at.PREFERRED || p === at.FIXED) && u.render(t);
12262
+ ).selectAll(`div.layout-child-${this._instanceID}`).data(this.children, (u) => u.id);
12263
+ l.enter().append("div").merge(r.selectAll(`div.layout-child-${this._instanceID}`)).attr("class", (u) => `layout-child layout-child-${this._instanceID} ${u.id}`).each(function(u) {
12264
+ u.components.forEach((d) => {
12265
+ var h;
12266
+ const p = D(this), f = b(u, "renderType") === Q.SVG;
12267
+ d.setParent(
12268
+ f ? I.appendOrSelect(p, "svg.layout-svg-wrapper").attr("width", "100%").attr("height", "100%") : p
12269
+ ), f && !p.select("svg.layout-svg-wrapper").attr("aria-label") && p.select("svg.layout-svg-wrapper").attr("aria-label", ((h = n == null ? void 0 : n.accessibility) == null ? void 0 : h.svgAriaLabel) || (n == null ? void 0 : n.title));
12270
+ const g = b(u, "growth");
12271
+ (g === at.PREFERRED || g === at.FIXED) && d.render(t);
12269
12272
  });
12270
- }), n.selectAll(`div.layout-child-${this._instanceID}`).style("height", null).style("width", null).each(function(c) {
12271
- const u = b(c, "growth"), d = b(c, "renderType") === Q.SVG ? I.getSVGElementSize(D(this).select("svg.layout-svg-wrapper"), {
12273
+ }), r.selectAll(`div.layout-child-${this._instanceID}`).style("height", null).style("width", null).each(function(u) {
12274
+ const d = b(u, "growth"), h = b(u, "renderType") === Q.SVG ? I.getSVGElementSize(D(this).select("svg.layout-svg-wrapper"), {
12272
12275
  useBBox: !0
12273
12276
  }) : I.getHTMLElementSize(this);
12274
- if (u === at.PREFERRED) {
12275
- const h = a ? d.width : d.height, p = a ? r : i;
12276
- c.size = h / p * 100;
12277
+ if (d === at.PREFERRED) {
12278
+ const p = s ? h.width : h.height, f = s ? i : a;
12279
+ u.size = p / f * 100;
12277
12280
  }
12278
- }), o.exit().remove(), this.children.filter((c) => b(c, "growth") === at.STRETCH).forEach((c) => {
12279
- c.size = (100 - +this.getPreferedAndFixedSizeSum()) / +this.getNumOfStretchChildren();
12281
+ }), l.exit().remove(), this.children.filter((u) => b(u, "growth") === at.STRETCH).forEach((u) => {
12282
+ u.size = (100 - +this.getPreferedAndFixedSizeSum()) / +this.getNumOfStretchChildren();
12280
12283
  });
12281
- const l = n.selectAll(`div.layout-child-${this._instanceID}`).data(this.children, (c) => c.id);
12282
- a ? l.style("width", (c) => `${c.size / 100 * r}px`).style("height", "100%") : l.style("height", (c) => `${c.size / 100 * i}px`).style("width", "100%"), l.each(function(c) {
12283
- c.components.forEach((u) => {
12284
- b(c, "growth") === at.STRETCH && u.render(t);
12284
+ const c = r.selectAll(`div.layout-child-${this._instanceID}`).data(this.children, (u) => u.id);
12285
+ s ? c.style("width", (u) => `${u.size / 100 * i}px`).style("height", "100%") : c.style("height", (u) => `${u.size / 100 * a}px`).style("width", "100%"), c.each(function(u) {
12286
+ u.components.forEach((d) => {
12287
+ b(u, "growth") === at.STRETCH && d.render(t);
12285
12288
  });
12286
12289
  });
12287
12290
  }
@@ -12313,7 +12316,9 @@ class $n extends dt {
12313
12316
  // @ts-ignore
12314
12317
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
12315
12318
  render(t = !1) {
12316
- this.getComponentContainer().style("width", `${this.configs.size || td.default.size}px`).style("height", `${this.configs.size || td.default.size}px`).attr("opacity", 0);
12319
+ this.getComponentContainer({
12320
+ isPresentational: !0
12321
+ }).style("width", `${this.configs.size || td.default.size}px`).style("height", `${this.configs.size || td.default.size}px`).attr("opacity", 0);
12317
12322
  }
12318
12323
  }
12319
12324
  var fD = {
@@ -14013,7 +14018,9 @@ const zv = class Ja extends dt {
14013
14018
  // @ts-ignore
14014
14019
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
14015
14020
  render(t = !0) {
14016
- const n = this.parent, r = this.getComponentContainer();
14021
+ const n = this.parent, r = this.getComponentContainer({
14022
+ isPresentational: !0
14023
+ });
14017
14024
  if (!n) throw new Error("SVG was not defined");
14018
14025
  const i = I.appendOrSelect(
14019
14026
  n,
@@ -14078,7 +14085,9 @@ class kR extends dt {
14078
14085
  // @ts-ignore
14079
14086
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
14080
14087
  render(t = !0) {
14081
- const n = this.getComponentContainer(), r = this.services.zoom.isZoomBarLoading(V.TOP), i = this.services.zoom.isZoomBarLocked(V.TOP), a = b(this.getOptions(), "zoomBar", V.TOP, "type"), s = b(this.getOptions(), "axes", V.BOTTOM, "highlights"), o = me.height[a], { width: l } = I.getSVGElementSize(this.parent, {
14088
+ const n = this.getComponentContainer({
14089
+ ariaLabel: "zoom bar"
14090
+ }), r = this.services.zoom.isZoomBarLoading(V.TOP), i = this.services.zoom.isZoomBarLocked(V.TOP), a = b(this.getOptions(), "zoomBar", V.TOP, "type"), s = b(this.getOptions(), "axes", V.BOTTOM, "highlights"), o = me.height[a], { width: l } = I.getSVGElementSize(this.parent, {
14082
14091
  useAttrs: !0
14083
14092
  });
14084
14093
  if (l === 0)
@@ -14275,7 +14284,10 @@ class DR extends dt {
14275
14284
  });
14276
14285
  }
14277
14286
  });
14278
- const i = this.getComponentContainer({ withinChartClip: !0 }).selectAll("g.axis-thresholds").data(r, (c) => c.axisPosition);
14287
+ const i = this.getComponentContainer({
14288
+ ariaLabel: "threshold lines",
14289
+ withinChartClip: !0
14290
+ }).selectAll("g.axis-thresholds").data(r, (c) => c.axisPosition);
14279
14291
  i.exit().attr("opacity", 0).remove();
14280
14292
  const a = i.enter().append("g").merge(i);
14281
14293
  a.attr("class", (c) => `axis-thresholds ${c.axisPosition}`);
@@ -14415,7 +14427,10 @@ class RR extends dt {
14415
14427
  });
14416
14428
  }
14417
14429
  });
14418
- const i = this.getComponentContainer({ withinChartClip: !0 }).selectAll("g.axis-highlight").data(r, (c) => c.axisPosition);
14430
+ const i = this.getComponentContainer({
14431
+ ariaLabel: "highlight areas",
14432
+ withinChartClip: !0
14433
+ }).selectAll("g.axis-highlight").data(r, (c) => c.axisPosition);
14419
14434
  i.exit().attr("opacity", 0).remove();
14420
14435
  const a = i.enter().append("g").merge(i);
14421
14436
  a.attr("class", (c) => `axis-highlight ${c.axisPosition}`);
@@ -14932,7 +14947,7 @@ class tI extends dt {
14932
14947
  // @ts-ignore
14933
14948
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
14934
14949
  render(t = !0) {
14935
- const n = this.getComponentContainer({ withinChartClip: !0 });
14950
+ const n = this.getComponentContainer({ ariaLabel: "alluvial graphs", withinChartClip: !0 });
14936
14951
  n.html("");
14937
14952
  const { width: r, height: i } = I.getSVGElementSize(n, {
14938
14953
  useAttrs: !0
@@ -15258,7 +15273,10 @@ class _e extends dt {
15258
15273
  }
15259
15274
  drawBackdrop(t, n) {
15260
15275
  const r = this.parent, i = this.services.cartesianScales.getMainXScale(), a = this.services.cartesianScales.getMainYScale(), [s, o] = i.range(), [l, c] = a.range();
15261
- this.backdrop = I.appendOrSelect(r, "svg.chart-grid-backdrop");
15276
+ this.backdrop = I.appendOrSelect(r, "svg.chart-grid-backdrop").attr(
15277
+ "role",
15278
+ "presentation"
15279
+ );
15262
15280
  const u = I.appendOrSelect(
15263
15281
  this.backdrop,
15264
15282
  t || n ? "rect.chart-grid-backdrop.stroked" : "rect.chart-grid-backdrop"
@@ -15293,7 +15311,7 @@ class Yv extends dt {
15293
15311
  t.addEventListener(S.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(S.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
15294
15312
  }
15295
15313
  render(t = !0) {
15296
- const n = this.getComponentContainer({ withinChartClip: !0 }), r = this.getOptions();
15314
+ const n = this.getComponentContainer({ ariaLabel: "area graphs", withinChartClip: !0 }), r = this.getOptions();
15297
15315
  let i = [0, 0];
15298
15316
  const { cartesianScales: a } = this.services, s = a.getOrientation(), o = bu().curve(this.services.curves.getD3Curve()).defined((E) => {
15299
15317
  const w = a.getRangeIdentifier();
@@ -15409,7 +15427,7 @@ class Ur extends dt {
15409
15427
  t.addEventListener(S.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(S.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
15410
15428
  }
15411
15429
  render(t = !0) {
15412
- const n = this.getComponentContainer({ withinChartClip: !0 }), { cartesianScales: r, curves: i } = this.services, a = (p) => r.getDomainValue(p), s = (p) => r.getRangeValue(p), [o, l] = bn(
15430
+ const n = this.getComponentContainer({ ariaLabel: "lines", withinChartClip: !0 }), { cartesianScales: r, curves: i } = this.services, a = (p) => r.getDomainValue(p), s = (p) => r.getRangeValue(p), [o, l] = bn(
15413
15431
  a,
15414
15432
  s,
15415
15433
  r.getOrientation()
@@ -15646,7 +15664,7 @@ class tn extends dt {
15646
15664
  render(t) {
15647
15665
  if (!(b(this.getOptions(), "points", "enabled") || b(this.getOptions(), "bubble", "enabled")))
15648
15666
  return;
15649
- const n = this.getComponentContainer({ withinChartClip: !0 }), r = this.getOptions(), { groupMapsTo: i } = r.data, { cartesianScales: a } = this.services;
15667
+ const n = this.getComponentContainer({ ariaLabel: "scatter points", withinChartClip: !0 }), r = this.getOptions(), { groupMapsTo: i } = r.data, { cartesianScales: a } = this.services;
15650
15668
  if (!a) throw new Error("Services cartesianScales are undefined.");
15651
15669
  const s = a.getDomainIdentifier(), o = n.selectAll("circle.dot").data(
15652
15670
  this.getScatterData(),
@@ -15809,7 +15827,9 @@ class Zv extends dt {
15809
15827
  }, r && (this.configs = r), this.margins = this.configs.margins;
15810
15828
  }
15811
15829
  render(t = !0) {
15812
- const { position: n } = this.configs, r = this.getOptions(), i = b(r, "axes", n, "visible"), a = this.getComponentContainer(), { width: s, height: o } = I.getSVGElementSize(a, {
15830
+ const { position: n } = this.configs, r = this.getOptions(), i = b(r, "axes", n, "visible"), a = this.getComponentContainer({
15831
+ ariaLabel: "axes"
15832
+ }), { width: s, height: o } = I.getSVGElementSize(a, {
15813
15833
  useAttrs: !0
15814
15834
  }), l = I.appendOrSelect(a, `g.axis.${n}`);
15815
15835
  let c, u;
@@ -16065,7 +16085,9 @@ class nI extends Zv {
16065
16085
  }
16066
16086
  render(t = !0) {
16067
16087
  super.render(t), super.destroy();
16068
- const n = this.configs.position, r = this.getComponentContainer(), i = I.appendOrSelect(r, `g.axis.${n}`), a = this;
16088
+ const n = this.configs.position, r = this.getComponentContainer({
16089
+ ariaLabel: "axes"
16090
+ }), i = I.appendOrSelect(r, `g.axis.${n}`), a = this;
16069
16091
  i.selectAll("g.tick").each(function(s, o) {
16070
16092
  const l = D(this);
16071
16093
  l.classed("tick-hover", !0).attr("tabindex", o === 0 ? 0 : -1);
@@ -16333,7 +16355,7 @@ class rI extends dt {
16333
16355
  super(...arguments), this.type = "boxplot", this.renderType = Q.SVG;
16334
16356
  }
16335
16357
  render(t) {
16336
- const n = this.getComponentContainer({ withinChartClip: !0 }), r = this.getOptions(), { groupMapsTo: i } = r.data, a = this.model.getDataGroupNames(), s = this.services.cartesianScales.getMainXScale(), o = this.services.cartesianScales.getMainYScale(), [l, c] = s.range(), [u, d] = o.range(), h = c - l, p = u - d;
16358
+ const n = this.getComponentContainer({ ariaLabel: "box plots", withinChartClip: !0 }), r = this.getOptions(), { groupMapsTo: i } = r.data, a = this.model.getDataGroupNames(), s = this.services.cartesianScales.getMainXScale(), o = this.services.cartesianScales.getMainYScale(), [l, c] = s.range(), [u, d] = o.range(), h = c - l, p = u - d;
16337
16359
  if (h === 0)
16338
16360
  return;
16339
16361
  const { cartesianScales: f } = this.services, g = f.getOrientation(), m = g === Ft.VERTICAL, [y, v] = bn(
@@ -16595,7 +16617,9 @@ class ei extends dt {
16595
16617
  render(t) {
16596
16618
  const n = this.services.cartesianScales.getRangeAxisPosition({
16597
16619
  groups: this.configs.groups
16598
- }), r = this.services.cartesianScales.getScaleByPosition(n), [i, a] = r.domain(), s = i > 0 && a < 0 || i < 0 && a > 0, o = this.getComponentContainer();
16620
+ }), r = this.services.cartesianScales.getScaleByPosition(n), [i, a] = r.domain(), s = i > 0 && a < 0 || i < 0 && a > 0, o = this.getComponentContainer({
16621
+ isPresentational: !0
16622
+ });
16599
16623
  if (!s) {
16600
16624
  o.selectAll("line.domain").remove();
16601
16625
  return;
@@ -16693,7 +16717,7 @@ class aI extends dt {
16693
16717
  t.addEventListener(S.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(S.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
16694
16718
  }
16695
16719
  render(t) {
16696
- const n = this.getOptions(), { groupMapsTo: r } = n.data, i = this.getComponentContainer({ withinChartClip: !0 }), a = this.model.getDisplayData(this.configs.groups), s = this.services.cartesianScales.getRangeScale(), o = this.services.cartesianScales.getRangeIdentifier(), [l, c] = s.range(), [, u] = s.domain(), d = () => {
16720
+ const n = this.getOptions(), { groupMapsTo: r } = n.data, i = this.getComponentContainer({ ariaLabel: "bullet graphs", withinChartClip: !0 }), a = this.model.getDisplayData(this.configs.groups), s = this.services.cartesianScales.getRangeScale(), o = this.services.cartesianScales.getRangeIdentifier(), [l, c] = s.range(), [, u] = s.domain(), d = () => {
16697
16721
  const g = [];
16698
16722
  a.forEach((y) => {
16699
16723
  y.ranges ? y.ranges.forEach((v, x) => {
@@ -17131,7 +17155,9 @@ class Xv extends _u {
17131
17155
  // @ts-ignore
17132
17156
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
17133
17157
  render(t = !1) {
17134
- const n = this.getOptions(), r = this.getComponentContainer(), { width: i } = I.getSVGElementSize(r, {
17158
+ const n = this.getOptions(), r = this.getComponentContainer({
17159
+ ariaLabel: "legend"
17160
+ }), { width: i } = I.getSVGElementSize(r, {
17135
17161
  useAttrs: !0
17136
17162
  }), a = b(n, "color", "gradient", "colors"), s = b(n, this.chartType, "colorLegend", "type");
17137
17163
  let o = b(n, "color", "pairing", "option");
@@ -17206,7 +17232,9 @@ class mI extends ga {
17206
17232
  // @ts-ignore
17207
17233
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
17208
17234
  render(t = !1) {
17209
- const n = b(this.model.getDisplayData(), 0), r = this.getOptions(), i = this.getComponentContainer(), { groupMapsTo: a } = r.data, s = r.locale.translations.meter.title;
17235
+ const n = b(this.model.getDisplayData(), 0), r = this.getOptions(), i = this.getComponentContainer({
17236
+ ariaLabel: "meter title"
17237
+ }), { groupMapsTo: a } = r.data, s = r.locale.translations.meter.title;
17210
17238
  if (b(r, "meter", "proportional"))
17211
17239
  this.displayTotal(), this.displayBreakdownTitle();
17212
17240
  else {
@@ -17350,7 +17378,10 @@ class gI extends dt {
17350
17378
  // @ts-ignore
17351
17379
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
17352
17380
  render(t = !0) {
17353
- const n = this.getComponentContainer({ withinChartClip: !0 }), { width: r, height: i } = I.getSVGElementSize(this.parent, {
17381
+ const n = this.getComponentContainer({
17382
+ ariaLabel: "circle packs",
17383
+ withinChartClip: !0
17384
+ }), { width: r, height: i } = I.getSVGElementSize(this.parent, {
17354
17385
  useAttrs: !0
17355
17386
  });
17356
17387
  if (r < 1 || i < 1)
@@ -17536,7 +17567,9 @@ class Kv extends dt {
17536
17567
  return Ct.innerRadius;
17537
17568
  }
17538
17569
  render(t = !0) {
17539
- const n = this, r = this.getComponentContainer(), i = this.getOptions(), { groupMapsTo: a } = i.data, { valueMapsTo: s } = i.pie;
17570
+ const n = this, r = this.getComponentContainer({
17571
+ ariaLabel: "pie graph"
17572
+ }), i = this.getOptions(), { groupMapsTo: a } = i.data, { valueMapsTo: s } = i.pie;
17540
17573
  this.isRendering = !0;
17541
17574
  const o = this.model.getDisplayData().filter((L) => L[s] > 0), l = this.computeRadius();
17542
17575
  this.arc = na().innerRadius(this.getInnerRadius()).outerRadius(l), this.hoverArc = na().innerRadius(this.getInnerRadius()).outerRadius(l + Ct.hoverArc.outerRadiusOffset);
@@ -17694,10 +17727,17 @@ class yI extends Kv {
17694
17727
  super.render(t);
17695
17728
  const n = this;
17696
17729
  if (this.model.isDataEmpty()) {
17697
- this.getComponentContainer().select("g.center").remove();
17730
+ this.getComponentContainer({
17731
+ ariaLabel: "donut graph"
17732
+ }).select("g.center").remove();
17698
17733
  return;
17699
17734
  }
17700
- const r = I.appendOrSelect(this.getComponentContainer(), "g.center"), i = this.getOptions(), a = this.computeRadius(), s = b(i, "donut", "center", "label");
17735
+ const r = I.appendOrSelect(
17736
+ this.getComponentContainer({
17737
+ ariaLabel: "donut graph"
17738
+ }),
17739
+ "g.center"
17740
+ ), i = this.getOptions(), a = this.computeRadius(), s = b(i, "donut", "center", "label");
17701
17741
  I.appendOrSelect(r, "text.donut-figure").attr("text-anchor", "middle").style("dominant-baseline", () => s === null || s === "" ? "central" : "initial").style("font-size", () => i.donut.center.numberFontSize(a)).transition().call(
17702
17742
  (o) => this.services.transitions.setupTransition({
17703
17743
  transition: o,
@@ -17773,7 +17813,9 @@ class bI extends dt {
17773
17813
  // @ts-ignore
17774
17814
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
17775
17815
  render(t = !0) {
17776
- const n = this.getComponentContainer().attr("width", "100%").attr("height", "100%"), r = this.getOptions(), i = this.getValue(), a = this.getValueRatio(), s = this.getArcSize(), o = this.getStartAngle(), l = a * s, c = o + l, u = o + s, d = this.computeRadius(), h = this.getInnerRadius();
17816
+ const n = this.getComponentContainer({
17817
+ ariaLabel: "gauge graph"
17818
+ }).attr("width", "100%").attr("height", "100%"), r = this.getOptions(), i = this.getValue(), a = this.getValueRatio(), s = this.getArcSize(), o = this.getStartAngle(), l = a * s, c = o + l, u = o + s, d = this.computeRadius(), h = this.getInnerRadius();
17777
17819
  this.backgroundArc = na().innerRadius(h).outerRadius(d).startAngle(c).endAngle(u), this.arc = na().innerRadius(h).outerRadius(d).startAngle(o).endAngle(c), I.appendOrSelect(n, "path.arc-background").attr("d", this.backgroundArc);
17778
17820
  const p = n.selectAll("path.arc-foreground").data([i]);
17779
17821
  p.enter().append("path").merge(p).attr(
@@ -17910,7 +17952,7 @@ class Qv extends Su {
17910
17952
  render(t) {
17911
17953
  const n = this.model.getDisplayData(this.configs.groups), r = this.getOptions(), { groupMapsTo: i } = r.data;
17912
17954
  this.setGroupScale();
17913
- const a = this.getComponentContainer({ withinChartClip: !0 }), s = Wi(
17955
+ const a = this.getComponentContainer({ ariaLabel: "grouped bar graphs", withinChartClip: !0 }), s = Wi(
17914
17956
  n.map((u) => {
17915
17957
  const d = this.services.cartesianScales.getDomainIdentifier(u);
17916
17958
  return u[d] && typeof u[d].toString == "function" ? u[d].toString() : u[d];
@@ -18113,7 +18155,7 @@ class xI extends dt {
18113
18155
  // @ts-ignore
18114
18156
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
18115
18157
  render(t = !0) {
18116
- const n = this.getComponentContainer({ withinChartClip: !0 });
18158
+ const n = this.getComponentContainer({ ariaLabel: "heatmap", withinChartClip: !0 });
18117
18159
  n.lower();
18118
18160
  const { cartesianScales: r } = this.services;
18119
18161
  if (this.matrix = this.model.getMatrix(), n.html(""), b(this.getOptions(), "data", "loading"))
@@ -18249,7 +18291,9 @@ class _I extends dt {
18249
18291
  t.addEventListener(S.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(S.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
18250
18292
  }
18251
18293
  render(t) {
18252
- const n = this.getComponentContainer(), r = this.model.getOptions(), { groupIdentifier: i } = r, { groupMapsTo: a } = r.data, s = this.model.getBinnedStackedData(), o = this.services.cartesianScales.getMainXScale(), l = n.selectAll("g.bars").data(s, (u) => mt(u, `0.${a}`));
18294
+ const n = this.getComponentContainer({
18295
+ ariaLabel: "histogram bars"
18296
+ }), r = this.model.getOptions(), { groupIdentifier: i } = r, { groupMapsTo: a } = r.data, s = this.model.getBinnedStackedData(), o = this.services.cartesianScales.getMainXScale(), l = n.selectAll("g.bars").data(s, (u) => mt(u, `0.${a}`));
18253
18297
  l.exit().attr("opacity", 0).remove(), l.enter().append("g").classed("bars", !0).attr("role", ot.GROUP);
18254
18298
  const c = n.selectAll("g.bars").selectAll("path.bar").data((u) => u);
18255
18299
  c.exit().remove(), c.enter().append("path").merge(c).classed("bar", !0).attr(i, (u, d) => d).transition().call(
@@ -18348,7 +18392,7 @@ class EI extends tn {
18348
18392
  t.addEventListener(S.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(S.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
18349
18393
  }
18350
18394
  render(t) {
18351
- const n = this.getComponentContainer({ withinChartClip: !0 }), r = this.model.getOptions(), { groupMapsTo: i } = r.data, { cartesianScales: a } = this.services, s = a.getMainXScale(), o = a.getMainYScale(), l = a.getDomainIdentifier(), c = (m) => a.getDomainValue(m), u = (m) => a.getRangeValue(m), d = a.getOrientation(), [h, p] = bn(
18395
+ const n = this.getComponentContainer({ ariaLabel: "lines", withinChartClip: !0 }), r = this.model.getOptions(), { groupMapsTo: i } = r.data, { cartesianScales: a } = this.services, s = a.getMainXScale(), o = a.getMainYScale(), l = a.getDomainIdentifier(), c = (m) => a.getDomainValue(m), u = (m) => a.getRangeValue(m), d = a.getOrientation(), [h, p] = bn(
18352
18396
  c,
18353
18397
  u,
18354
18398
  d
@@ -18408,7 +18452,9 @@ class OI extends dt {
18408
18452
  }));
18409
18453
  }
18410
18454
  render(t = !0) {
18411
- const n = this, r = this.getComponentContainer(), i = this.getOptions(), a = b(i, "meter", "proportional"), s = this.model.getDisplayData(), o = this.model.getStatus(), { width: l } = I.getSVGElementSize(r, {
18455
+ const n = this, r = this.getComponentContainer({
18456
+ ariaLabel: "meter lines"
18457
+ }), i = this.getOptions(), a = b(i, "meter", "proportional"), s = this.model.getDisplayData(), o = this.model.getStatus(), { width: l } = I.getSVGElementSize(r, {
18412
18458
  useAttrs: !0
18413
18459
  }), { groupMapsTo: c } = i.data;
18414
18460
  let u;
@@ -18543,7 +18589,9 @@ class SI extends dt {
18543
18589
  t.addEventListener(S.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(S.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
18544
18590
  }
18545
18591
  render(t = !0) {
18546
- const n = this.getComponentContainer(), { width: r, height: i } = I.getSVGElementSize(n, {
18592
+ const n = this.getComponentContainer({
18593
+ ariaLabel: "radar graph"
18594
+ }), { width: r, height: i } = I.getSVGElementSize(n, {
18547
18595
  useAttrs: !0
18548
18596
  }), a = this.model.getData(), s = this.model.getGroupedData(), o = this.getOptions(), l = b(o, "data", "groupMapsTo"), c = b(o, "radar", "axes", "value"), { angle: u, value: d } = b(o, "radar", "axes"), { xLabelPadding: h, yLabelPadding: p, yTicksNumber: f, minRange: g, xAxisRectHeight: m } = Vn;
18549
18597
  this.uniqueKeys = Array.from(new Set(a.map((_) => _[u]))), this.uniqueGroups = Array.from(new Set(a.map((_) => _[l]))), this.fullDataNormalized = this.normalizeFlatData(a), this.groupedDataNormalized = this.normalizeGroupedData(s);
@@ -18863,7 +18911,10 @@ class Jv extends Su {
18863
18911
  t.addEventListener(S.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(S.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
18864
18912
  }
18865
18913
  render(t) {
18866
- const n = this.getOptions(), { groupMapsTo: r } = n.data, i = this.getComponentContainer({ withinChartClip: !0 }), a = this.model.getDisplayData(this.configs.groups), s = this.services.cartesianScales.getOrientation(), o = i.selectAll("path.bar").data(a, (l) => l[r]);
18914
+ const n = this.getOptions(), { groupMapsTo: r } = n.data, i = this.getComponentContainer({
18915
+ ariaLabel: "bar graphs",
18916
+ withinChartClip: !0
18917
+ }), a = this.model.getDisplayData(this.configs.groups), s = this.services.cartesianScales.getOrientation(), o = i.selectAll("path.bar").data(a, (l) => l[r]);
18867
18918
  o.exit().attr("opacity", 0).remove(), o.enter().append("path").attr("opacity", 0).merge(o).classed("bar", !0).attr("width", this.getBarWidth.bind(this)).transition().call(
18868
18919
  (l) => this.services.transitions.setupTransition({
18869
18920
  transition: l,
@@ -18988,7 +19039,10 @@ class t0 extends dt {
18988
19039
  t.addEventListener(S.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(S.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
18989
19040
  }
18990
19041
  render(t = !0) {
18991
- const n = this.getComponentContainer({ withinChartClip: !0 }), r = this, i = this.getOptions(), { groupMapsTo: a } = i.data, s = Object.keys(i.axes).some((p) => i.axes[p].percentage), o = this.model.getStackedData({
19042
+ const n = this.getComponentContainer({
19043
+ ariaLabel: "stacked area graphs",
19044
+ withinChartClip: !0
19045
+ }), r = this, i = this.getOptions(), { groupMapsTo: a } = i.data, s = Object.keys(i.axes).some((p) => i.axes[p].percentage), o = this.model.getStackedData({
18992
19046
  percentage: s,
18993
19047
  groups: this.configs.groups
18994
19048
  }), l = b(o, 0, 0), c = this.services.cartesianScales.getDomainAxisPosition({ datum: l }), u = this.services.cartesianScales.getRangeAxisPosition({ datum: l }), d = this.services.cartesianScales.getScaleByPosition(u), h = n.selectAll("path.area").data(o, (p) => b(p, 0, a));
@@ -19037,7 +19091,7 @@ class e0 extends Su {
19037
19091
  t.addEventListener(S.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(S.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
19038
19092
  }
19039
19093
  render(t) {
19040
- const n = this.getComponentContainer({ withinChartClip: !0 }), r = this.getOptions(), { groupMapsTo: i } = r.data, a = this.model.getStackedData({
19094
+ const n = this.getComponentContainer({ ariaLabel: "stacked bar graphs", withinChartClip: !0 }), r = this.getOptions(), { groupMapsTo: i } = r.data, a = this.model.getStackedData({
19041
19095
  groups: this.configs.groups,
19042
19096
  divergent: !0
19043
19097
  }), s = this.model.getActiveDataGroupNames(), o = n.selectAll("g.bars").data(a, (c) => b(c, 0, i));
@@ -19151,7 +19205,7 @@ class n0 extends tn {
19151
19205
  render(t) {
19152
19206
  if (!b(this.getOptions(), "points", "enabled"))
19153
19207
  return;
19154
- const n = this.getComponentContainer({ withinChartClip: !0 }), r = this.getOptions(), { groupMapsTo: i } = r.data, a = Object.keys(r.axes).some((u) => r.axes[u].percentage), s = this.model.getStackedData({
19208
+ const n = this.getComponentContainer({ ariaLabel: "scatter points", withinChartClip: !0 }), r = this.getOptions(), { groupMapsTo: i } = r.data, a = Object.keys(r.axes).some((u) => r.axes[u].percentage), s = this.model.getStackedData({
19155
19209
  groups: this.configs.groups,
19156
19210
  percentage: a
19157
19211
  }), o = n.selectAll("g.dots").data(s, (u) => b(u, 0, i));
@@ -19214,7 +19268,9 @@ class TI extends dt {
19214
19268
  // @ts-ignore
19215
19269
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
19216
19270
  render(t = !0) {
19217
- const n = this.getComponentContainer();
19271
+ const n = this.getComponentContainer({
19272
+ ariaLabel: "tree diagram"
19273
+ });
19218
19274
  n.html("");
19219
19275
  const { width: r, height: i } = I.getSVGElementSize(this.parent, {
19220
19276
  useAttrs: !0
@@ -19487,7 +19543,9 @@ class e3 extends dt {
19487
19543
  t.addEventListener(S.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(S.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
19488
19544
  }
19489
19545
  render(t = !0) {
19490
- const n = this.getComponentContainer();
19546
+ const n = this.getComponentContainer({
19547
+ ariaLabel: "treemap"
19548
+ });
19491
19549
  this.model.getData();
19492
19550
  const r = this.model.getDisplayData(), i = this.model.getOptions(), a = b(window, "location"), { width: s, height: o } = I.getSVGElementSize(n, {
19493
19551
  useAttrs: !0
@@ -19909,7 +19967,9 @@ class O3 extends dt {
19909
19967
  t.addEventListener(S.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(S.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
19910
19968
  }
19911
19969
  render(t = !0) {
19912
- const n = this, r = this.getComponentContainer().attr("width", "100%").attr("height", "100%"), i = this.model.getDisplayData(), a = this.getFontSizeScale(i), s = this.getOptions(), { fontSizeMapsTo: o, wordMapsTo: l } = s.wordCloud, { groupMapsTo: c } = s.data, { width: u, height: d } = I.getSVGElementSize(r, {
19970
+ const n = this, r = this.getComponentContainer({
19971
+ ariaLabel: "word cloud"
19972
+ }).attr("width", "100%").attr("height", "100%"), i = this.model.getDisplayData(), a = this.getFontSizeScale(i), s = this.getOptions(), { fontSizeMapsTo: o, wordMapsTo: l } = s.wordCloud, { groupMapsTo: c } = s.data, { width: u, height: d } = I.getSVGElementSize(r, {
19913
19973
  useAttrs: !0
19914
19974
  });
19915
19975
  if (u === 0 || d === 0)
@@ -20104,7 +20164,7 @@ class w3 extends S3 {
20104
20164
  render(t = !0) {
20105
20165
  super.render();
20106
20166
  const n = this.model.getCombinedData();
20107
- this.getComponentContainer({ withinChartClip: !0 }).select("g.geo").selectAll("path").classed("border", !0).attr("class", (r) => this.model.getColorClassName({
20167
+ this.getComponentContainer({ ariaLabel: "map", withinChartClip: !0 }).select("g.geo").selectAll("path").classed("border", !0).attr("class", (r) => this.model.getColorClassName({
20108
20168
  value: n[r.properties.NAME].value,
20109
20169
  originalClassName: "border"
20110
20170
  })), this.addCountryAreaEventListener();