leaflet-segment-charts
v0.2.4
Published
leaflet experimental visualisation library based on leaflet-semi-circle
Downloads
1
Maintainers
Readme
leaflet-segment-charts
demo
dependencies
methods
- addLayer (L.geoJSON.feature)
- addLayers (L.geoJSON)
options
- maxDist (int) maximal distance of each marker,
- maxOpacity (float) opacity of the inner circle,
- opacityDecrease (float) coefficient that represents the pace of opacity decrease of outer circles/steps,
- noSteps (int) - number of innercircles,
- circleSegmentAngle (int) - angle of sequence
- propertyName (String) - name of the attribute the sequences will be build from (the value of this property has to be array)
- colors (Object) - key-value pairs of attribute values and particular segment colors
how to use
- see
./demo
how to build:
- install npm modules
npm install
- run build command
npm run build
npm start
command watches./src
folder and runsnpm run build
on changes
todo
- input control
- maxDist based on property
- better documentation
- opacity control
- better solution for sequence angles
- ...