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

21 Коммитов

Автор SHA1 Сообщение Дата
Mike Bostock 1b9aa90c38 Cleanup examples. 2012-11-11 11:20:15 -08:00
Mike Bostock 84a6255236 Checkpoint example cleanup. 2012-10-11 16:34:17 -07:00
Mike Bostock d3f855ae01 Rename d3.v3.js to d3.js.
We'll still use the major-versioned name file for d3js.org, but this is simpler.
2012-10-05 18:46:05 -07:00
Kristofer Monisit 6b76d014bd Follow coding conventions 2012-04-06 18:42:22 +08:00
Kristofer Monisit 27da6c2483 Bring chord examples up-to-date 2012-04-06 12:00:55 +08: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
Jason Davies 5a87998694 Examples: namespaces are optional as of v2.6.0. 2011-11-23 22:48:13 +00:00
Mike Bostock 1104e6fd83 Move flare-imports.json to the data folder. 2011-07-04 09:41:32 -07:00
Mike Bostock e2cedca817 Better stroke colors. 2011-06-25 13:26:32 -07:00
Mike Bostock a0fd9853f5 Always use the larger value for chord sources. 2011-06-25 10:48:31 -07:00
Mike Bostock b14b441f55 Add flare dependency chord diagram. 2011-06-25 10:41:38 -07:00
Mike Bostock 98ef2d185f Prefer style over attr. 2011-05-26 21:15:28 -07:00
Michael Bostock 8a00d72850 Resize chord example. 2011-02-27 12:33:02 -08:00
Michael Bostock 6363881923 Resize a few examples. 2011-02-27 11:56:25 -08:00
Michael Bostock 8186c4b764 Restructure chord example. 2011-01-31 21:59:49 -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
Mike Bostock 6307364a45 Add layout module, with layout.chord class. 2010-11-28 13:15:07 -08:00
Mike Bostock e08ff41dad Add a little mouseover interaction. 2010-11-27 20:35:57 -08:00
Mike Bostock c86d8bc1be Allow chords to link back to themselves. 2010-11-27 18:19:30 -08:00
Mike Bostock 5ae51b2538 Simplify svg.chord API.
We now use the same property accessors (startAngle, endAngle and radius) for
two source and target objects. Note that you don't have to structure your data
hierarchically; you can define a source and target accessor that restructures
the data on the fly.
2010-11-27 14:13:02 -08:00
Mike Bostock 163a37e7cd Add svg.chord class. 2010-11-27 01:07:00 -08:00