react-semaphor 0.0.198 → 0.0.199

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.
@@ -29310,22 +29310,22 @@ function lX(e, t = !1) {
29310
29310
  }
29311
29311
  };
29312
29312
  }
29313
- function cX(e) {
29314
- var n, r, o, i;
29313
+ function cX(e, t) {
29314
+ var r, o, i, s;
29315
29315
  return {
29316
29316
  ...e,
29317
- type: "bar",
29317
+ type: t === "stackedBar" ? "bar" : "line",
29318
29318
  options: {
29319
29319
  ...e == null ? void 0 : e.options,
29320
29320
  //indexAxis is set here
29321
29321
  scales: {
29322
29322
  x: {
29323
- ...(r = (n = e == null ? void 0 : e.options) == null ? void 0 : n.scales) == null ? void 0 : r.x,
29323
+ ...(o = (r = e == null ? void 0 : e.options) == null ? void 0 : r.scales) == null ? void 0 : o.x,
29324
29324
  display: !0,
29325
29325
  stacked: !0
29326
29326
  },
29327
29327
  y: {
29328
- ...(i = (o = e == null ? void 0 : e.options) == null ? void 0 : o.scales) == null ? void 0 : i.y,
29328
+ ...(s = (i = e == null ? void 0 : e.options) == null ? void 0 : i.scales) == null ? void 0 : s.y,
29329
29329
  display: !0,
29330
29330
  stacked: !0
29331
29331
  }
@@ -29478,8 +29478,8 @@ function eA({
29478
29478
  }
29479
29479
  };
29480
29480
  }
29481
- if (t === "stackedBar") {
29482
- const u = cX(n), { dimensionKeys: f, metricKeys: p } = Rr(e), g = Uy({
29481
+ if (t === "stackedBar" || t === "stackedLine") {
29482
+ const u = cX(n, t), { dimensionKeys: f, metricKeys: p } = Rr(e), g = Uy({
29483
29483
  dataArray: e,
29484
29484
  groupKey: f[0],
29485
29485
  pivotKey: f[1],