math-helper-functions
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -263,3 +263,3 @@ "use strict"; | ||
count: dataArr.map((d) => d.data), | ||
percentage_serie: dataArr.map((d) => calcPercent(d.data * 100, serieCount)) | ||
percentage_serie: dataArr.map((d) => calcPercent(d.data, serieCount)) | ||
}; | ||
@@ -270,3 +270,3 @@ }); | ||
data: data.map((i) => __spreadProps(__spreadValues({}, i), { | ||
percentage_total: i.count.map((d) => calcPercent(d * 100, totalCount)) | ||
percentage_total: i.count.map((d) => calcPercent(d, totalCount)) | ||
})) | ||
@@ -273,0 +273,0 @@ }; |
@@ -263,3 +263,3 @@ "use strict"; | ||
count: dataArr.map((d) => d.data), | ||
percentage_serie: dataArr.map((d) => calcPercent(d.data * 100, serieCount)) | ||
percentage_serie: dataArr.map((d) => calcPercent(d.data, serieCount)) | ||
}; | ||
@@ -270,3 +270,3 @@ }); | ||
data: data.map((i) => __spreadProps(__spreadValues({}, i), { | ||
percentage_total: i.count.map((d) => calcPercent(d * 100, totalCount)) | ||
percentage_total: i.count.map((d) => calcPercent(d, totalCount)) | ||
})) | ||
@@ -273,0 +273,0 @@ }; |
{ | ||
"name": "math-helper-functions", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Helper with misc. math functions such as sums, averages, max, min, etc", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -174,3 +174,3 @@ import { thresholdSturges } from 'd3-array'; | ||
count: dataArr.map((d) => d.data), | ||
percentage_serie: dataArr.map((d) => calcPercent(d.data * 100, serieCount)), | ||
percentage_serie: dataArr.map((d) => calcPercent(d.data, serieCount)), | ||
}; | ||
@@ -183,3 +183,3 @@ }); | ||
...i, | ||
percentage_total: i.count.map((d) => calcPercent(d * 100, totalCount)), | ||
percentage_total: i.count.map((d) => calcPercent(d, totalCount)), | ||
})), | ||
@@ -186,0 +186,0 @@ }; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75254