Граф коммитов

4 Коммитов

Автор SHA1 Сообщение Дата
Mike Bostock c3635192d8 Remove backwards-compatibility for d3.xhr. 2012-10-05 17:05:59 -07:00
Mike Bostock 1c32d23fa4 More flexible XHR framework.
This is backwards-compatible, yet adds numerous features to d3.xhr. You can now:

  * Use standard node-style callbacks (fixes #473).
  * Abort in-flight requests.
  * Listen for progress events.
  * Listen for load, error and abort events separately.
  * Make POST requests (or any other method), including data.
  * Set arbitrary request headers.
  * Have multiple listeners on requests.
2012-09-18 15:49:03 -07:00
Mike Bostock 3081dd45ef Consolidate everything into d3.v2.js.
Rather than producing separate files for each module, the default build now
produces a single file. This should encourage better page-load performance as
the files were relatively small. Also, it's easier to deal with only one file
rather than many, especially if you're not quite sure what the dependencies are.
You may still create minimized builds, if you don't want every feature.

This commit also demotes the chart components to the examples directory, rather
than keeping them as part of the core library. As always, D3 is not a charting
library, and these were ever only intended to serve as examples.
2012-02-18 14:04:01 -08:00
Mike Bostock 746ec74663 Add tests for xhr and friends. 2011-08-16 22:28:15 -07:00