turf-jenks
turf jenks module
turf.jenks(input, field, numberOfBreaks)
Given a FeatureCollection, return the Jenks Natural breaks of a given property
Parameters
parameter | type | description |
---|---|---|
input |
FeatureCollection | a FeatureCollection of any type |
field |
string | the property in input on which to calculate Jenks natural breaks |
numberOfBreaks |
number | number of classes in which to group the data |
Example
var points = turf;var breaks = turf;//=breaks
Installation
Requires nodejs.
$ npm install turf-jenks
Tests
$ npm test