import e from"@babel/runtime/helpers/slicedToArray";import a from"lodash/mean";function r(r,o){if(!r.length)return r;var n=e(r[0],1)[0];return r.reduce((function(n,u,l){var t=e(u,1)[0];if(t-n.valueToCompare<o)return n;var m=function(r){var o=r.reduce((function(a,r){var o=e(r,2),n=o[0],u=o[1];return{xValues:a.xValues.concat(n),yValues:a.yValues.concat(u)}}),{xValues:[],yValues:[]}),n=o.xValues,u=o.yValues;return[a(n),a(u)]}(r.slice(n.valueToCompareIndex,l));return{normalizedData:n.normalizedData.concat([m]),valueToCompare:t,valueToCompareIndex:l}}),{normalizedData:[],valueToCompare:n,valueToCompareIndex:0}).normalizedData}export{r as smoothenSerie};
//# sourceMappingURL=chartSeries.js.map
