Comparing version 0.0.193-alpha.0 to 0.0.193-alpha.1
@@ -1,3 +0,3 @@ | ||
export { default as BoxPlot } from './boxplot/BoxPlot'; | ||
export { default as ViolinPlot } from './violinplot/ViolinPlot'; | ||
export { default as BoxPlot } from './BoxPlot'; | ||
export { default as ViolinPlot } from './ViolinPlot'; | ||
export { default as computeStats } from './util/computeStats'; |
@@ -15,8 +15,8 @@ export default function computeStats(numericalArray) { | ||
var binWidth = 2 * IQR * Math.pow(sampleSize - outliers.length, -1 / 3); | ||
var binNum = Math.round((max - min) / binWidth); | ||
var actualBinWidth = (max - min) / binNum; | ||
var bins = new Array(binNum + 2).fill(0); | ||
var values = new Array(binNum + 2).fill(min); | ||
var binCount = Math.round((max - min) / binWidth); | ||
var actualBinWidth = (max - min) / binCount; | ||
var bins = new Array(binCount + 2).fill(0); | ||
var values = new Array(binCount + 2).fill(min); | ||
for (var i = 1; i <= binNum; i += 1) { | ||
for (var i = 1; i <= binCount; i += 1) { | ||
values[i] += actualBinWidth * (i - 0.5); | ||
@@ -23,0 +23,0 @@ } |
@@ -6,7 +6,7 @@ "use strict"; | ||
var _BoxPlot = _interopRequireDefault(require("./boxplot/BoxPlot")); | ||
var _BoxPlot = _interopRequireDefault(require("./BoxPlot")); | ||
exports.BoxPlot = _BoxPlot.default; | ||
var _ViolinPlot = _interopRequireDefault(require("./violinplot/ViolinPlot")); | ||
var _ViolinPlot = _interopRequireDefault(require("./ViolinPlot")); | ||
@@ -13,0 +13,0 @@ exports.ViolinPlot = _ViolinPlot.default; |
@@ -20,8 +20,8 @@ "use strict"; | ||
var binWidth = 2 * IQR * Math.pow(sampleSize - outliers.length, -1 / 3); | ||
var binNum = Math.round((max - min) / binWidth); | ||
var actualBinWidth = (max - min) / binNum; | ||
var bins = new Array(binNum + 2).fill(0); | ||
var values = new Array(binNum + 2).fill(min); | ||
var binCount = Math.round((max - min) / binWidth); | ||
var actualBinWidth = (max - min) / binCount; | ||
var bins = new Array(binCount + 2).fill(0); | ||
var values = new Array(binCount + 2).fill(min); | ||
for (var i = 1; i <= binNum; i += 1) { | ||
for (var i = 1; i <= binCount; i += 1) { | ||
values[i] += actualBinWidth * (i - 0.5); | ||
@@ -28,0 +28,0 @@ } |
{ | ||
"name": "@vx/stats", | ||
"version": "0.0.193-alpha.0", | ||
"version": "0.0.193-alpha.1", | ||
"description": "vx stats box violin", | ||
@@ -8,2 +8,3 @@ "sideEffects": false, | ||
"module": "esm/index.js", | ||
"types": "lib/index.d.ts", | ||
"files": [ | ||
@@ -34,4 +35,7 @@ "lib", | ||
"dependencies": { | ||
"@vx/group": "0.0.193-alpha.0", | ||
"@vx/scale": "0.0.193-alpha.0", | ||
"@types/classnames": "^2.2.9", | ||
"@types/d3-shape": "^1.3.2", | ||
"@types/react": "*", | ||
"@vx/group": "0.0.193-alpha.1", | ||
"@vx/scale": "0.0.193-alpha.1", | ||
"classnames": "^2.2.5", | ||
@@ -42,3 +46,3 @@ "d3-shape": "^1.2.0", | ||
"peerDependencies": { | ||
"react": "^15.0.0-0 || ^16.0.0-0" | ||
"react": "^16.3.0-0" | ||
}, | ||
@@ -48,3 +52,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "8fb99e77e64fa9c319c0addc2a3fbf61e64885cc" | ||
"gitHead": "a26fe227eeb3b1264b8419d43ed5a7deed7a8111" | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
68229
27
1491
0
9
+ Added@types/classnames@^2.2.9
+ Added@types/d3-shape@^1.3.2
+ Added@types/react@*
+ Added@types/d3-path@1.0.11(transitive)
+ Added@types/d3-shape@1.3.12(transitive)
+ Added@vx/group@0.0.193-alpha.1(transitive)
+ Added@vx/scale@0.0.193-alpha.1(transitive)
- Removed@vx/group@0.0.193-alpha.0(transitive)
- Removed@vx/scale@0.0.193-alpha.0(transitive)
Updated@vx/group@0.0.193-alpha.1
Updated@vx/scale@0.0.193-alpha.1