# d3v4

> Data-Driven Documents

Latest version **4.2.2** (published 2016-09-04) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install d3v4
pnpm add d3v4
yarn add d3v4
bun add d3v4
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: esm support; no vulnerabilities; popular repo; extremely popular.

Warnings: low downloads; no types.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 4.2.2 |
| Published | 2016-09-04 |
| First published | 2016-09-04 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 30 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 113764 |
| Author | Mike Bostock |
| Maintainers | joncursi |
| Keywords | dom, visualization, svg, animation, canvas |

## Links

- npm: https://www.npmjs.com/package/d3v4
- Repository: https://github.com/d3/d3
- Homepage: https://d3js.org
- Issues: https://github.com/d3/d3/issues
- npm.io page: https://npm.io/package/d3v4

## Dependencies (30)

- [d3-dsv](https://npm.io/package/d3-dsv.md) 1.0.1
- [d3-geo](https://npm.io/package/d3-geo.md) 1.2.3
- [d3-axis](https://npm.io/package/d3-axis.md) 1.0.3
- [d3-drag](https://npm.io/package/d3-drag.md) 1.0.1
- [d3-ease](https://npm.io/package/d3-ease.md) 1.0.1
- [d3-path](https://npm.io/package/d3-path.md) 1.0.1
- [d3-time](https://npm.io/package/d3-time.md) 1.0.2
- [d3-zoom](https://npm.io/package/d3-zoom.md) 1.0.3
- [d3-array](https://npm.io/package/d3-array.md) 1.0.1
- [d3-brush](https://npm.io/package/d3-brush.md) 1.0.2
- [d3-chord](https://npm.io/package/d3-chord.md) 1.0.2
- [d3-color](https://npm.io/package/d3-color.md) 1.0.1
- [d3-force](https://npm.io/package/d3-force.md) 1.0.2
- [d3-queue](https://npm.io/package/d3-queue.md) 3.0.2
- [d3-scale](https://npm.io/package/d3-scale.md) 1.0.3
- [d3-shape](https://npm.io/package/d3-shape.md) 1.0.2
- [d3-timer](https://npm.io/package/d3-timer.md) 1.0.2
- [d3-format](https://npm.io/package/d3-format.md) 1.0.2
- [d3-random](https://npm.io/package/d3-random.md) 1.0.1
- [d3-polygon](https://npm.io/package/d3-polygon.md) 1.0.1
- [d3-request](https://npm.io/package/d3-request.md) 1.0.2
- [d3-voronoi](https://npm.io/package/d3-voronoi.md) 1.0.2
- [d3-dispatch](https://npm.io/package/d3-dispatch.md) 1.0.1
- [d3-quadtree](https://npm.io/package/d3-quadtree.md) 1.0.1
- [d3-hierarchy](https://npm.io/package/d3-hierarchy.md) 1.0.2
- [d3-selection](https://npm.io/package/d3-selection.md) 1.0.2
- [d3-collection](https://npm.io/package/d3-collection.md) 1.0.1
- [d3-transition](https://npm.io/package/d3-transition.md) 1.0.1
- [d3-interpolate](https://npm.io/package/d3-interpolate.md) 1.1.1
- [d3-time-format](https://npm.io/package/d3-time-format.md) 2.0.2

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 4.2.2 (latest) — 2016-09-04

## README

# D3: Data-Driven Documents

<a href="https://d3js.org"><img src="https://d3js.org/logo.svg" align="left" hspace="10" vspace="6"></a>

**D3** (or **D3.js**) is a JavaScript library for visualizing data using web standards. D3 helps you bring data to life using SVG, Canvas and HTML. D3 combines powerful visualization and interaction techniques with a data-driven approach to DOM manipulation, giving you the full capabilities of modern browsers and the freedom to design the right visual interface for your data.

## Resources

* [API Reference](https://github.com/d3/d3/blob/master/API.md)
* [Release Notes](https://github.com/d3/d3/releases)
* [Gallery](https://github.com/d3/d3/wiki/Gallery)
* [Examples](http://bl.ocks.org/mbostock)
* [Wiki](https://github.com/d3/d3/wiki)

## Installing

If you use NPM, `npm install d3`. Otherwise, download the [latest release](https://github.com/d3/d3/releases/latest). The released bundle supports anonymous AMD, CommonJS, and vanilla environments. You can load directly from [d3js.org](https://d3js.org), [CDNJS](https://cdnjs.com/libraries/d3), or [npmcdn](https://npmcdn.com/d3/). For example:

```html
<script src="https://d3js.org/d3.v4.js"></script>
```

For the minified version:

```html
<script src="https://d3js.org/d3.v4.min.js"></script>
```

You can also use the standalone D3 microlibraries. For example, [d3-selection](https://github.com/d3/d3-selection):

```html
<script src="https://d3js.org/d3-selection.v1.js"></script>
```

D3 is written using [ES2015 modules](http://www.2ality.com/2014/09/es6-modules-final.html). Create a [custom bundle using Rollup](http://bl.ocks.org/mbostock/bb09af4c39c79cffcde4), Webpack, or your preferred bundler. To import D3 into an ES2015 application, either import specific symbols from specific D3 modules:

```js
import {scaleLinear} from "d3-scale";
```

Or import everything into a namespace (here, `d3`):

```js
import * as d3 from "d3";
```

---
_Source: https://npm.io/package/d3v4 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
