Skip to content
Commits on Source (2)
{
"name": "i4-js-commons",
"version": "3.9.20",
"version": "3.9.21",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......
{
"name": "i4-js-commons",
"version": "3.9.20",
"version": "3.9.21",
"description": "Just a load of common stuff for i4 front-ends and some probably usable in back-end as well",
"dependencies": {
"@material-ui/core": "^4.8.0",
......
......@@ -251,7 +251,7 @@ export const fromChannels = async ({
}).then(data => ({ path, data })),
),
); // -> [[{ts, pl}, {ts, pl}], [{ts, pl}]]
// console.log('histories:', histories);
console.log('histories:', histories);
/* eslint-disable no-param-reassign */
counts = counts.length
? counts
......
......@@ -40,6 +40,12 @@ export const sliceData = (inData = {}, start, end) => {
};
};
// export const minMaxDecimation = data => {
// const bucketSize = R.when(R.lt(2.0), data.length)(data.length / 2000.0);
// R.reduce((acc, val) => {}, [])(data);
// // R.compose(R.reduce(), R.)
// };
export const pointsToChartData = (label, points = []) => {
/* eslint-disable no-param-reassign */
if (!points.length) points = [{ ts: new Date(), pl: [] }];
......