@oliasoft-open-source/charts-library 3.3.7 → 3.3.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.
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -37355,8 +37355,8 @@ const getAxesData = (scalesKeys, datasets, annotationsData) => {
|
|
|
37355
37355
|
const reduceData = (arr, key) => arr.reduce((acc, { [key]: value }) => [...acc, value], []);
|
|
37356
37356
|
return datasets.reduce(
|
|
37357
37357
|
(acc, obj) => {
|
|
37358
|
-
const key = Object.values(obj).find((val) => axes.includes(val));
|
|
37359
|
-
return {
|
|
37358
|
+
const key = Object.values(obj).find((val) => axes.includes(val)) ?? multiAxesKey;
|
|
37359
|
+
return key ? {
|
|
37360
37360
|
...acc,
|
|
37361
37361
|
[key]: [
|
|
37362
37362
|
.../* @__PURE__ */ new Set([
|
|
@@ -37365,7 +37365,7 @@ const getAxesData = (scalesKeys, datasets, annotationsData) => {
|
|
|
37365
37365
|
...key === multiAxesKey && (data == null ? void 0 : data[multiAxesKey]) || []
|
|
37366
37366
|
])
|
|
37367
37367
|
]
|
|
37368
|
-
};
|
|
37368
|
+
} : acc;
|
|
37369
37369
|
},
|
|
37370
37370
|
{ [first]: [], [second]: [] }
|
|
37371
37371
|
);
|