Update README.
This commit is contained in:
Родитель
2d5a1eeafd
Коммит
5506719c33
12
README.md
12
README.md
|
@ -43,3 +43,15 @@ Or import everything into a namespace (here, `d3`):
|
|||
```js
|
||||
import * as d3 from "d3";
|
||||
```
|
||||
|
||||
In Node:
|
||||
|
||||
```js
|
||||
var d3 = require("d3");
|
||||
```
|
||||
|
||||
You can also require individual modules and combine them into a `d3` object using [Object.assign](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign):
|
||||
|
||||
```js
|
||||
var d3 = Object.assign({}, require("d3-format"), require("d3-geo"), require("d3-geo-projection"));
|
||||
```
|
||||
|
|
Загрузка…
Ссылка в новой задаче