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

3858 Коммитов

Автор SHA1 Сообщение Дата
Michael Bostock 3fbded484a Merge branch 'master' of github.com:mbostock/d3 2011-03-12 09:00:06 -08:00
Mike Bostock 26662dec2a Merge branch 'mbostock-master' 2011-03-12 08:29:26 -08:00
Mike Bostock a6d5b6f4de Merge branch 'jasondavies-new_closure_compiler' into mbostock-master 2011-03-12 08:27:58 -08:00
Mike Bostock 651fb56c0a Minor tweaks to d3_call and tests. 2011-03-12 08:25:49 -08:00
Mike Bostock 8ce5ec60bb Merge branch 'jasondavies-d3_call_min_bug' into jasondavies-new_closure_compiler 2011-03-12 08:16:13 -08:00
Jason Davies d2ede7ce69 Add unit test for minified d3.call(). 2011-03-12 12:09:30 +00:00
Jason Davies ae0cddd9f4 Update google-compiler to 20110119. 2011-03-12 11:32:20 +00:00
Jason Davies 673151160b Workaround for overzealous d3.call minification 2011-03-12 11:17:16 +00:00
Jason Davies d26d03439c Merge branch 'master' of http://github.com/mbostock/d3 2011-03-12 00:32:37 +00:00
Michael Bostock 11cea2e332 Merge branch 'master' of github.com:mbostock/d3 2011-03-11 11:40:24 -08:00
Michael Bostock 7c7be4b17c Use linear gradient rather than image. 2011-03-11 11:39:11 -08:00
Mike Bostock 996e21eb1b Fix typo in d3.scale.pow. Add tests. 2011-03-10 17:33:53 -08:00
Mike Bostock 42237509de Display calendar immediately; color on data. 2011-03-10 11:55:26 -08:00
Michael Bostock 4bf129f49e Use localhost rather than 0.0.0.0. 2011-03-09 09:28:21 -08:00
Michael Bostock 166f8b5868 Expose d3.timer, for requestAnimationFrame.
This allows external classes to hook into D3's timer mechanism, such as the
iterative force-directed graph layout.
2011-03-08 23:29:59 -08:00
Michael Bostock e15183c32a Ack, forgot to update d3.version. 2011-03-08 14:52:42 -08:00
Michael Bostock 871cefc0a4 Add a few tests for d3.scale.linear. 2011-03-08 14:24:23 -08:00
Michael Bostock 9857dade14 Woot, requestAnimationFrame! 2011-03-08 14:23:31 -08:00
Michael Bostock 1be121ae20 Unplug env-js' timer module.
This was breaking setTimeout and setInterval in Node, since I've already
unplugged env-js' event loop. With that out of the way, we can write tests for
transitions!
2011-03-04 16:35:16 -08:00
Michael Bostock eaed6b880b Ack, Sizzle doesn't sort by default.
The Selectors API guarantees that results are returned in document order, but
Sizzle does not, by default. So now we sort the results when using Sizzle. Yay
tests!
2011-03-04 16:05:53 -08:00
Jason Davies 87adc077b9 Merge branch 'master' of http://github.com/mbostock/d3 2011-03-04 23:55:42 +00:00
Michael Bostock 50ebc155cb Test (and fixes) for d3.format. 2011-03-04 15:25:09 -08:00
Michael Bostock 7df63b3cfe Allow env-js to be require'd.
This fixes a bug with the usage of `require` in env-js, such that env-js now
uses proper relative paths rather than unshifting "." onto `require.paths`. The
behavior of `require` is documented here:

  <http://nodejs.org/docs/v0.4.2/api/modules.html#all_Together...>

With this change in place, it's now possible to use env-js simply by require'ing
it from a script, rather than having env-js host and eval.

Also, this commit changes the initialization of env-js, such that the initial
document is immediately available when the env-js module is loaded. And, the
event loop is disabled so that env-js shuts down cleanly. This probably breaks
some parts of env-js, but it makes it much easier to use so I'm going to play
with it a bit.
2011-03-04 13:42:49 -08:00
Michael Bostock 3568ecac2c Fix env-js node 0.4.2 incompatibility.
The `console` global is read-only; it cannot be reassigned.
2011-03-04 11:48:14 -08:00
Michael Bostock 1fe1b466d9 Add lib/env-js. 2011-03-04 11:47:19 -08:00
Michael Bostock 31c47f8f99 Tiny simplification. 2011-03-03 16:01:18 -08:00
Michael Bostock 36e935a8c8 Add force & treemap to d3.layout. 2011-03-03 15:43:57 -08:00
Michael Bostock 3cfb007d9d Add proper rounding to treemap layout! 2011-03-03 14:20:18 -08:00
Jason Davies 92ad7c065c Add polar stereographic projection 2011-03-02 21:10:32 +00:00
Mike Bostock 0585616df1 Add support for sortKeys on d3.nest.
The method existed previously, but it only makes sense in conjunction with the
newly-added `entries` operator; map keys are inherently unsorted. Originally I
envisioned that key-sorting could be done externally using `d3.entries`, but
that's tedious for hierarchical structures.
2011-03-01 12:01:09 -08:00
Michael Bostock 125ea93b63 Make force-directed graphs draggable. 2011-02-28 17:02:58 -08:00
Michael Bostock 32c06207a2 Merge branch 'master' of github.com:mbostock/d3 2011-02-28 15:05:37 -08:00
Michael Bostock 6b8839eab6 Add treemap example.
Still a work in progress. Need to decide on the appropriate API for representing
tree structures; not sure I want to go the heavyweight pv.dom route. May also
need rounding to exact pixel values.
2011-02-28 15:04:20 -08:00
Mike Bostock 07fe0f5d90 Restructure cartogram example. 2011-02-28 10:12:25 -08:00
Mike Bostock 99b4f2ec30 Turn off shape-rendering: crispEdges. 2011-02-27 18:34:47 -08:00
Mike Bostock ced7b7242b Better force-directed layout.
Use the Floyd-Warshall algorithm to compute the shortest path between nodes, and
use that graph theoretic distance as the distance constraint for the Gauss-
Seidel relaxation. In addition, have the constraint alpha decay over time, as in
Simulated Annealing.
2011-02-27 18:22:23 -08:00
Michael Bostock 1d9ed5ae72 Add d3.interpolateHsl.
This allows scale interpolation in HSL space. For example:

    var fill = d3.scale.linear()
        .interpolate(d3.interpolateHsl)
        .domain([0, 100])
        .range([d3.hsl(180, .5, 1), d3.hsl(180, .5, 0)]);

You could approximate this in previous versions using d3.interpolateString, but
the new interpolation method is slightly faster and also provides backwards-
compatibility for browsers that only understand RGB.
2011-02-27 15:05:18 -08:00
Michael Bostock 62ef98e817 Restructure voronoi example. 2011-02-27 13:05:55 -08:00
Michael Bostock b8cc4c9708 Restructure stack and stream examples. 2011-02-27 13:03:00 -08:00
Michael Bostock 85de0bed70 Fix vertical offset in calendar example. 2011-02-27 12:36:11 -08:00
Michael Bostock 8a00d72850 Resize chord example. 2011-02-27 12:33:02 -08:00
Michael Bostock 127ecdea25 Restructure splom example. 2011-02-27 12:21:11 -08:00
Michael Bostock 7b1df15bfe Restructure force example. 2011-02-27 12:09:27 -08: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
Michael Bostock 198ee5f86d Tweak README. 2011-02-25 10:01:34 -08:00
Michael Bostock a29c802a77 Sort for layout, but don't reorder.
This fixes a bug in the pie layout sorting where we want the sort order to
affect the layout, but not the order in which arcs are rendered—and furthermore
we want the order of arcs to always match the order of data. (If you want to
sort the data, do that before it is passed to the layout.)
2011-02-24 14:36:57 -08:00
Michael Bostock ade083dd56 More convenient pies.
This adds d3.layout.pie, which can be used to compute the start and end angles
for arcs given an arbitrary array of data. In addition, d3.svg.arc now has a
`centroid` method that computes the center of the arc, useful for labeling.
Together these changes greatly simplify the donut & pie examples.

This commit also includes a `map` method for selections, which is similar to the
`filter` method. This allows you to map the data bound to the current selection.
I'm not currently using it, but it seems like a useful feature for those cases
where you want to rebind the current selection to different (but related) data.
2011-02-24 14:13:05 -08:00
Michael Bostock 23dc44e585 Oops, include sqrt transform. 2011-02-23 13:04:18 -08:00
Michael Bostock 77f81a01fa Merge branch 'master' of github.com:mbostock/d3
Conflicts:
	src/core/core.js
2011-02-23 12:35:41 -08:00