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

19 Коммитов

Автор 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
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 489eb0cde7 Delete symlinks. 2011-07-04 09:43:37 -07:00
Jan Alonzo 598cd6a08c Update cartogram/choropleth symlink to point to examples/data.
Related: 6bdbe4b863
2011-07-04 17:05:56 +10:00
Mike Bostock 6bdbe4b863 Move data files into examples directory.
This way, we don't need symlinks (which don't work on Windows). This commit also
simplifies the structure of the flare.json file, so that we don't need to tricky
conversion of the JSON map—it can be read directly by the hierarchy layout.
2011-07-02 16:31:12 -07:00
Michael Bostock 6363881923 Resize a few examples. 2011-02-27 11:56:25 -08:00
Michael Bostock aa69f20936 Restructure choropleth example. 2011-02-25 20:51:05 -08:00
Mike Bostock 0e1c1fad17 Add d3.geo.bounds.
This method can be used for computing the bounding box of arbitrary GeoJSON
objects. This commit also fixes a bug in d3.geo.path, such that it will accept
any GeoJSON object, rather than requiring GeoJSON feature objects.
2011-02-11 19:42:52 -08:00
Mike Bostock c34cd15077 Add color-by-area with zoom example.
This uses d3.geo.path to compute the projected area (in square pixels) of each
county in the choropleth. It also usees d3.behavior.zoom to add geometric pan
and zoom.
2011-02-11 17:35:21 -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 6494412aee Don't include geo in the default build. 2010-11-05 00:25:24 -07:00
Michael Bostock 7d2c407d9a Load choropleth data asynchronously. 2010-11-04 17:56:04 -07:00
Mike Bostock 2eda4baf36 Add symbol map, composite Albers projection. 2010-11-02 23:06:32 -07:00
Michael Bostock 657f02ee0a Tweak color scale to match Nathan's original. 2010-11-02 17:07:51 -07:00
Michael Bostock 758b69ba19 State outlines; breakout AK, HI & PR.
I changed the albers API slightly to reduce the number of square brackets.
2010-11-02 16:54:18 -07:00
Michael Bostock a95efee580 Add rudimentary GeoJSON support (with Albers). 2010-11-02 15:27:45 -07:00