Type definitions for d3.js 4.x
Install
npm install d3-selection d3-transition d3-array ... --savenpm install types.d3 --save
Install d3 modules and types.d3
module.
Add typeRoots
and types
to your tsconfig.json
.
tsc compiler will find
index.d.ts
files withtypeRoots
andtypes
it is like add/// <reference path="${typeRoots}/${types}/index.d.ts"/>
to your ts file.
;;
d3-selection
and d3-transition
d3-selection
include d3-transition
API.
If you want use Selection.transition()
. You need to import d3-transition
before use that.
; // import the d3-transition; select'a'.transition; // then you can use Selection.transition()
Work Status
- d3-array
- d3-axis
- d3-brush
- d3-chord
- d3-collection
- d3-color
- d3-dispatch
- d3-drag
- d3-ease
- d3-force
- d3-hierarchy
- d3-interpolate
- d3-path
- d3-polygon
- d3-quadtree
- d3-random
- d3-scale
- d3-selection
- d3-shape
- d3-time
- d3-time-format
- d3-timer
- d3-transition
- d3-voronoi
- d3-zoom
License
MIT