d3-slice
v0.0.2
Published
slice chart for d3
Readme
d3-slice
A simple slice-swarm plot
Install
npm i d3-sliceUsage
import {slice} from 'd3-slice'Assumptions
It is assumed that the data bound to slice is an object, where key corresponds
to a "slice" in the swarm
data = {
'A': 10,
'B': 20,
...
}more complex data can be provided should utility functions such as valueExtractor
be overwritten from their default behavior:
data = {
A: {
x: { value: 1 },
y: { value: 2 },
...
},
...
}