impaktapps-design 0.2.58-alpha.7 → 0.2.58-alpha.8
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.
|
@@ -19776,14 +19776,12 @@ const DrawGraph = ({
|
|
|
19776
19776
|
}) => {
|
|
19777
19777
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
19778
19778
|
const data = (_a = value == null ? void 0 : value.main) == null ? void 0 : _a.data;
|
|
19779
|
-
const arr = value.main.xAxisValue && value.main.yAxisValue ? [value.main.xAxisValue, value.main.yAxisValue] : Object.keys(data[0].value[0]);
|
|
19779
|
+
const arr = value.main.xAxisValue && value.main.yAxisValue ? [value.main.xAxisValue, value.main.yAxisValue] : Object.keys(data[0].value[0][0]);
|
|
19780
19780
|
const accessors = {
|
|
19781
19781
|
xAccessor: (d2) => d2[arr[0]],
|
|
19782
19782
|
yAccessor: (d2) => d2[arr[1]]
|
|
19783
19783
|
};
|
|
19784
|
-
const dataKeyArray = data.map((ele) =>
|
|
19785
|
-
return ele.key;
|
|
19786
|
-
});
|
|
19784
|
+
const dataKeyArray = data.map((ele) => ele.key);
|
|
19787
19785
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
19788
19786
|
children: [value.main.legendAvailable && /* @__PURE__ */ jsx(Legend, {
|
|
19789
19787
|
value,
|
|
@@ -19829,7 +19827,7 @@ const DrawGraph = ({
|
|
|
19829
19827
|
labelOffset: ((_q = (_p = value.style) == null ? void 0 : _p.labelStyle) == null ? void 0 : _q.bottomLabelOffset) || 32
|
|
19830
19828
|
}), /* @__PURE__ */ jsx(AnimatedGrid, {
|
|
19831
19829
|
columns: value.main.grid,
|
|
19832
|
-
numTicks: value.main.numHidden ? 0 : ((_r = value.main) == null ? void 0 : _r.data[0].length) - 1
|
|
19830
|
+
numTicks: value.main.numHidden ? 0 : ((_r = value.main) == null ? void 0 : _r.data[0].value[0].length) - 1
|
|
19833
19831
|
}), (_s = value.main) == null ? void 0 : _s.data.map((elem, i) => {
|
|
19834
19832
|
var _a2, _b2, _c2, _d2, _e2, _f2;
|
|
19835
19833
|
return /* @__PURE__ */ jsx(
|