Skip to content

v1.0.0

Compare
Choose a tag to compare
@mbostock mbostock released this 15 Jun 17:58
· 23 commits to master since this release
  • First stable release.

Changes since D3 3.x

The d3.xhr method has been renamed to d3.request. Basic authentication is now supported using request.user and request.password. You can now configure a timeout using request.timeout.

If an error occurs, the corresponding ProgressEvent of type “error” is now passed to the error listener, rather than the XMLHttpRequest. Likewise, the ProgressEvent is passed to progress event listeners, rather than using d3.event. If d3.xml encounters an error parsing XML, this error is now reported to error listeners rather than returning a null response.

The d3.request, d3.text and d3.xml methods no longer take an optional mime type as the second argument; use request.mimeType instead. For example:

d3.xml("file.svg").mimeType("image/svg+xml").get(function(error, svg) {
  
});

With the exception of d3.html and d3.xml, Node is now supported via node-XMLHttpRequest.

See CHANGES for all D3 changes since 3.x.