Docs ▸ Getting started
You can get the package from npm or bower.
It depends on d3-selection and d3-dispatch from D3.js v4.
npm install d3 d3kit --save
# or to be more specific
npm install d3-selection d3-dispatch d3kit --savebower install d3 d3kit --saved3Kit was packaged as UMD (Universal Module Definition). You can use it via:
<script src="path/to/d3.min.js"></script>
<script src="path/to/d3kit.min.js"></script>d3Kit will be available as d3Kit.
import { SvgChart, CanvasChart } from 'd3kit';require.config({
paths: {
d3: 'path/to/d3',
d3Kit: 'path/to/d3Kit'
}
});
require(['d3', 'd3Kit'], function(d3, d3Kit) {
// do something
});var d3Kit = require('d3kit');