Commit 21b6f2b4 authored by Mike Bostock's avatar Mike Bostock

4.0 release candidate 1.

parent 4703e4c3
......@@ -3,20 +3,20 @@
D3 4.0 is modular. Instead of one library, D3 is now [many small libraries](#table-of-contents) that are designed to work together. You can pick and choose which parts to use as you see fit. Each library is maintained in its own repository, allowing decentralized ownership and independent release cycles. The default bundle combines about thirty of these microlibraries.
```html
<script src="https://d3js.org/d3.v4.0.0-alpha.50.min.js"></script>
<script src="https://d3js.org/d3.v4.0.0-rc.1.min.js"></script>
```
As before, you can load optional plugins on top of the default bundle, such as [ColorBrewer scales](https://github.com/d3/d3-scale-chromatic):
```html
<script src="https://d3js.org/d3.v4.0.0-alpha.50.min.js"></script>
<script src="https://d3js.org/d3.v4.0.0-rc.1.min.js"></script>
<script src="https://d3js.org/d3-scale-chromatic.v0.3.min.js"></script>
```
You are not required to use the default bundle! If you’re just using [d3-selection](https://github.com/d3/d3-selection), use it as a standalone library. Like the default bundle, you can load D3 microlibraries using vanilla script tags or RequireJS (great for HTTP/2!):
```html
<script src="https://d3js.org/d3-selection.v0.9.min.js"></script>
<script src="https://d3js.org/d3-selection.v1.min.js"></script>
```
You can also `cat` D3 microlibraries into a custom bundle, or use tools such as [Webpack](https://webpack.github.io/) and [Rollup](http://rollupjs.org/) to create [optimized bundles](https://bl.ocks.org/mbostock/bb09af4c39c79cffcde4). Custom bundles are great for applications that use a subset of D3’s features; for example, a React chart library might use D3 for scales and shapes, and React to manipulate the DOM. The D3 microlibraries are written as [ES6 modules](http://www.2ality.com/2014/09/es6-modules-final.html), and Rollup lets you pick at the symbol level to produce smaller bundles.
......
......@@ -17,13 +17,13 @@
If you use NPM, `npm install d3@next`. Otherwise, download the [latest release](https://npmcdn.com/d3@next/build/). The released bundle supports AMD, CommonJS, and vanilla environments. Create a [custom bundle using Rollup](http://bl.ocks.org/mbostock/bb09af4c39c79cffcde4) or your preferred bundler. You can also load directly from [d3js.org](https://d3js.org):
```html
<script src="https://d3js.org/d3.v4.0.0-alpha.50.js"></script>
<script src="https://d3js.org/d3.v4.0.0-rc.1.js"></script>
```
For the minified version:
```html
<script src="https://d3js.org/d3.v4.0.0-alpha.50.min.js"></script>
<script src="https://d3js.org/d3.v4.0.0-rc.1.min.js"></script>
```
You can also use the standalone D3 microlibraries. For example, [d3-color](https://github.com/d3/d3-color):
......
......@@ -294,6 +294,7 @@ export {
format,
formatPrefix,
formatLocale,
formatDefaultLocale,
formatSpecifier,
precisionFixed,
precisionPrefix,
......@@ -307,7 +308,8 @@ export {
utcParse,
isoFormat,
isoParse,
timeFormatLocale
timeFormatLocale,
timeFormatDefaultLocale
} from "d3-time-format";
export {
......
{
"name": "d3",
"version": "4.0.0-alpha.50",
"version": "4.0.0-rc.1",
"publishConfig": {
"tag": "next"
},
......@@ -34,7 +34,7 @@
"devDependencies": {
"json2module": "0.0",
"package-preamble": "0.0",
"rollup": "0.31",
"rollup": "0.33",
"rollup-plugin-ascii": "0.0",
"rollup-plugin-node-resolve": "1",
"tape": "4",
......@@ -42,18 +42,18 @@
},
"dependencies": {
"d3-array": "1.0.0",
"d3-axis": "0.4.1",
"d3-brush": "0.2.3",
"d3-axis": "1.0.0",
"d3-brush": "1.0.0",
"d3-collection": "1.0.0",
"d3-color": "1.0.0",
"d3-dispatch": "1.0.0",
"d3-drag": "0.3.1",
"d3-drag": "1.0.0",
"d3-dsv": "1.0.0",
"d3-ease": "1.0.0",
"d3-force": "0.7.1",
"d3-format": "0.6.0",
"d3-geo": "0.0.3",
"d3-hierarchy": "0.3.0",
"d3-force": "1.0.0",
"d3-format": "1.0.0",
"d3-geo": "1.0.0",
"d3-hierarchy": "1.0.0",
"d3-interpolate": "1.0.0",
"d3-path": "1.0.0",
"d3-polygon": "1.0.0",
......@@ -61,14 +61,14 @@
"d3-queue": "3.0.1",
"d3-random": "1.0.0",
"d3-request": "1.0.0",
"d3-scale": "0.9.3",
"d3-selection": "0.9.0",
"d3-shape": "0.7.1",
"d3-scale": "1.0.0",
"d3-selection": "1.0.0",
"d3-shape": "1.0.0",
"d3-time": "1.0.0",
"d3-time-format": "1.0.0",
"d3-time-format": "2.0.0",
"d3-timer": "1.0.0",
"d3-transition": "0.3.1",
"d3-transition": "1.0.0",
"d3-voronoi": "1.0.0",
"d3-zoom": "0.3.1"
"d3-zoom": "1.0.0"
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment