Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "turf-jenks", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "turf jenks module", | ||
@@ -27,7 +27,7 @@ "main": "index.js", | ||
"devDependencies": { | ||
"tape": "^2.12.3" | ||
"tape": "^2.13.4" | ||
}, | ||
"dependencies": { | ||
"simple-statistics": "^0.8.0" | ||
"simple-statistics": "^0.8.1" | ||
} | ||
} |
@@ -7,7 +7,29 @@ turf-jenks | ||
```javascript | ||
###Install | ||
```sh | ||
npm install turf-jenks | ||
``` | ||
###Parameters | ||
|name|description| | ||
|---|---| | ||
|fc|points to classify| | ||
|z|z field| | ||
|num|number of breaks| | ||
###Usage | ||
```js | ||
jenks(fc, z, num) | ||
``` | ||
###Example | ||
```js | ||
var jenks = require('turf-jenks') | ||
var fs = require('fs') | ||
var propertyName = 'elevation' | ||
var z = 'elevation' | ||
var num = 10 | ||
@@ -17,5 +39,5 @@ | ||
var jenked = jenks(pts, 'elevation', num, function(err, breaks){ | ||
var jenked = jenks(pts, z, num) | ||
console.log(jenked) // [ 11, 12, 18, 25, 29, 41, 50, 55, 76, 90, 143 ] | ||
``` |
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
7912
41
Updatedsimple-statistics@^0.8.1