https://github.com/d3-node/d3node-voronoi
Voronoi Tessellation example
https://github.com/d3-node/d3node-voronoi
Last synced: 6 months ago
JSON representation
Voronoi Tessellation example
- Host: GitHub
- URL: https://github.com/d3-node/d3node-voronoi
- Owner: d3-node
- Created: 2017-03-12T16:37:25.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-28T18:31:00.000Z (over 8 years ago)
- Last Synced: 2025-07-08T07:15:41.741Z (7 months ago)
- Language: HTML
- Size: 408 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Voronoi
Voronoi Tessellation generator in Node.js
## Install
```bash
npm install d3node-voronoi
```
## Usage
```js
const d3n = require('d3node-voronoi');
const voronoi = d3n(data, selector, container, style)
```
Check out the [example](./example) for usage.
##### Output the visualization result to a image
```
npm start
```
## Output Preview (png):

## API
### voronoi(data[, selector, container, style])
### options
#### data (required)
- Type: `Array`
Data from file or web processed by d3 library.
##### selector
- Type: `String`
- Default: `'#chart'`
DOM selector in container.
##### container
- Type: `String`
- Default: `
Voronoi
`
DOM contain the visualization result.
##### style
- Type: `String`
- Default:
```html
.polygons {
stroke: #000;
}
```
PieChart style.
## Contributing
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D
### LICENSE
[MIT](LICENSE) © [d3-node](https://github.com/d3-node)