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

265 Коммитов

Автор SHA1 Сообщение Дата
Michael Bostock aa0b9f8c3e Restructure sunburst example. 2011-03-12 22:08:17 -08:00
Michael Bostock e6b0924aa8 Merge branch 'mbostock-master'
Release 1.7.0. Adds partition & hierarchy layouts, step-{before,after}
interpolation for line & area, sorting for treemaps, and a few bug fixes for
time format. Oh, and a bunch of tests!
2011-03-12 21:52:00 -08:00
Mike Bostock a00c9a5631 Simplify interpolator slightly. 2011-03-12 21:20:41 -08:00
Mike Bostock 52bf6c978a Expose d3.layout.hierarchy.sort.
Also, add nifty transitions to the sunburst example.
2011-03-12 21:14:07 -08:00
Mike Bostock 244338925f Add tests for d3.svg.arc. 2011-03-12 20:24:17 -08:00
Mike Bostock 3fff37a56d Add tests for d3.svg.symbol. 2011-03-12 20:17:31 -08:00
Mike Bostock ff9da42269 Fix a couple bugs in d3.time.format.
First, we were using the wrong space-filling format for %d and equivalent.
Second, we weren't parsing numbers with optional leading spaces correctly.
Yay tests!
2011-03-12 17:00:55 -08:00
Mike Bostock aad495add3 Add step-{before,after} interpolation.
Also add tests for d3.svg.area and d3.svg.line.
2011-03-12 12:43:51 -08:00
Michael Bostock abae3f9263 Add hierarchy & partition layouts.
Also, expose d3.rebind to make it a bit easier to compose classes.
2011-03-12 10:27:05 -08:00
Michael Bostock 2ace7e6814 Merge branch 'master' into mbostock-master 2011-03-12 09:03:06 -08:00
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
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
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
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