Skip to content
Permalink
Browse files
Update CHANGES.
  • Loading branch information
mbostock committed Mar 22, 2018
1 parent 9bd8e37 commit 2b8ba30cab97c5b539943d290334f1eec4a5cd6d
Showing 1 changed file with 1 addition and 1 deletion.
@@ -4,7 +4,7 @@

D3 5.0 introduces only a few non-backwards-compatible changes.

D3 now uses [Promises](https://developer.mozilla.org/docs/Web/JavaScript/Guide/Using_promises) instead of asynchronous callbacks. Promises simplify the structure of asynchronous code, especially in modern browsers that support [async and await](https://javascript.info/async-await). For example, to load a CSV file in v4, you might say:
D3 now uses [Promises](https://developer.mozilla.org/docs/Web/JavaScript/Guide/Using_promises) instead of asynchronous callbacks. Promises simplify the structure of asynchronous code, especially in modern browsers that support [async and await](https://javascript.info/async-await). (See this [introduction to promises](https://beta.observablehq.com/@mbostock/introduction-to-promises) on [Observable](https://beta.observablehq.com).) For example, to load a CSV file in v4, you might say:

```js
d3.csv("file.csv", function(error, data) {

0 comments on commit 2b8ba30

Please sign in to comment.