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

12 Коммитов

Автор SHA1 Сообщение Дата
Mike Bostock 2d660756bb Use filter for class and title. 2011-12-27 10:08:22 -08:00
Ger Hobbelt 7d298c0e8f corrected fix for the calendar example: do NOT mix UTC and Local TimeZone date operations in calculations which depend on identifying day/month transitions - default JavaScript Date object works with 'local timezone'. Fix tested in AZ/USA and Amsterdam/EUR timezones. 2011-12-27 11:24:46 +01:00
Gerard Hundman da76aa249c bugfix for D3.JS bug in calendar demo: edge around months was drawn incorrectly; this was apparent at each December month. 2011-12-20 23:22:01 +01:00
Jason Davies 5a87998694 Examples: namespaces are optional as of v2.6.0. 2011-11-23 22:48:13 +00:00
Mike Bostock 95a4dce023 Tiny simplification. 2011-10-28 16:47:31 -07:00
Johan Sundström 31d00a993f Prettify tooltips on non-data calendar dates. 2011-10-28 16:43:00 -07:00
Mike Bostock 4731d2cbb2 Calendar example improvements. 2011-10-12 17:55:08 -07:00
Mike Bostock 42237509de Display calendar immediately; color on data. 2011-03-10 11:55:26 -08:00
Michael Bostock 85de0bed70 Fix vertical offset in calendar example. 2011-02-27 12:36:11 -08:00
Michael Bostock 6363881923 Resize a few examples. 2011-02-27 11:56:25 -08:00
Michael Bostock f8ae20da9d Simplify data join. Add insert & empty.
The data join is now specified as a single function of data, as with all other
properties. This allows the key to be computed on the previously-bound data,
rather than requiring the key to be serialized into the DOM (say, as an
attribute). In the case that there is no previously-bound data, it is still
possible to access the associated node as the `this` context.

The `enter` operator no longer performs an append. For symmetry with the `exit`
operator, you must call `append` after obtaining the entering selection. This
requires a tiny bit more code, but should make the code more clear. Also, it
provides an opportunity to use a different instantiation operator, such as the
new `insert` operator. This takes a second argument, which is a selector for the
insert-before reference element. For example, the selector ":first-child" will
prepend nodes.

The `empty` operator allows you to query whether a selection is empty (i.e.,
contains zero matching nodes).
2011-01-31 11:00:35 -08:00
Michael Bostock 44e67e29c0 Restructure calendar example. 2011-01-30 22:01:15 -08:00