Make d3Kit compatible with D3 v4. Key changes are due to:
d3.functor
and d3.rebind
. Implement helper functions as replacements.d3.dispatch
. Now use dispatch.call('x', ...)
instead of dispatch.x(...)
The npm package also remove d3
from dependencies
and add d3-selection
and d3-dispatch
to peerDependencies
instead.
In terms of development, switch from grunt to gulp and webpack and prepare to migrate each module to es2015.
Add an option to select tag type for LayerOrganizer
new LayerOrganizer(container); //will create layers as <g> by default
new LayerOrganizer(container, 'div'); // will create layers as <div>
Change main file to point to d3kit.min.js
instead of d3kit.js
Update D3 version in the dependencies to 3.5.16
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.