@carbon/charts-react 1.23.11 → 1.23.13

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
@@ -12565,7 +12565,7 @@ class lu extends mt {
12565
12565
  render(t = !1) {
12566
12566
  const n = this.getOptions(), r = y(n, "legend"), i = y(r, "alignment"), s = y(n, "legend", "orientation");
12567
12567
  let a = this.model.getDataGroups();
12568
- const { DISABLED: o } = It.items.status, l = a.some((x) => x.status === o), c = y(r, "order"), u = this.getComponentContainer().classed("center-aligned", i === jt.CENTER).classed("right-aligned", i === jt.RIGHT).classed(s, !0).classed("has-deactivated-items", l).attr("role", ht.GROUP).attr("aria-label", "Data groups").attr("data-name", "legend-items");
12568
+ const { DISABLED: o } = It.items.status, l = a.some((x) => x.status === o), c = y(r, "order"), u = this.getComponentContainer().classed("center-aligned", i === jt.CENTER).classed("right-aligned", i === jt.RIGHT).classed(s || "horizontal", !0).classed("has-deactivated-items", l).attr("role", ht.GROUP).attr("aria-label", "Data groups").attr("data-name", "legend-items");
12569
12569
  c && (a = this.sortDataGroups(a, c));
12570
12570
  const d = u.selectAll("div.legend-item").data(a, (x) => x.name), h = d.enter().append("div").attr("class", "legend-item");
12571
12571
  h.merge(u.selectAll("div.legend-item")).classed("active", function(x) {
@@ -16631,10 +16631,11 @@ class Tv extends mt {
16631
16631
  name: "pie_slice_enter_update",
16632
16632
  animate: t
16633
16633
  })
16634
- ).attr("opacity", 1).attr("role", ht.GRAPHICS_SYMBOL).attr("aria-roledescription", "slice").attr(
16635
- "aria-label",
16636
- (A) => `${A[a]}, ${ko(A.data[a], o, a) + "%"}`
16637
- ).attrTween("d", function(A) {
16634
+ ).attr("opacity", 1).attr("role", ht.GRAPHICS_SYMBOL).attr("aria-roledescription", "slice").attr("aria-label", (A) => [
16635
+ A[a],
16636
+ ko(A.data[a], o, a) + "%",
16637
+ A.data[s]
16638
+ ].filter(Boolean).join(", ")).attrTween("d", function(A) {
16638
16639
  return ID.bind(this)(A, n.arc);
16639
16640
  }).on("end", () => {
16640
16641
  n.isRendering = !1;