Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

turf-jenks

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-jenks - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

6

package.json
{
"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 ]
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc