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

7 Коммитов

Автор SHA1 Сообщение Дата
Mike Bostock 0cf999b08f Query data via selection.data(). Fixes #525.
This method returns the array of data for the first group in the selection. Note
that the data method cannot be used to clear data bindings, since it computes a
data join; use datum(null) to clear bound data.
2012-02-21 13:31:20 -08:00
Jason Davies 2dbe80fd34 Fix another edge case for data binding. 2012-02-20 04:43:44 +00:00
Jason Davies 1e63be0cdd Handle keys that are in the default object's prototype chain.
This may seem a bit improbable at first, but I ran into this when
testing something unrelated in Firefox, which turns out to have:

  "watch" in {} === true
2012-02-20 03:18:10 +00: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 a62bd527ca Fix a bug in enter selection's empty.
Due to the ordering in which the prototypes are defined, it was still undefined!
Also, the empty method depends on the node method being defined. Added a test.
2011-10-19 20:57:53 -04:00
Mike Bostock 5f5d8a227e Test selection operator return values. 2011-08-13 18:40:38 -07:00
Mike Bostock 354765c309 Add test for selection.data. 2011-08-13 18:05:02 -07:00