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

27 Коммитов

Автор SHA1 Сообщение Дата
Mike Bostock 0eb59e7c98 Merge branch 'horizon' into release 2011-05-27 14:58:06 -07:00
Mike Bostock 98ef2d185f Prefer style over attr. 2011-05-26 21:15:28 -07:00
Mike Bostock c75ebe10a9 Transitions for horizon bands! 2011-05-26 00:10:14 -07: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
Michael Bostock 7c7be4b17c Use linear gradient rather than image. 2011-03-11 11:39:11 -08:00
Mike Bostock 99b4f2ec30 Turn off shape-rendering: crispEdges. 2011-02-27 18:34:47 -08:00
Michael Bostock b8cc4c9708 Restructure stack and stream examples. 2011-02-27 13:03:00 -08:00
Michael Bostock 8da80dcc99 Support for Sizzle.
D3 now supports Sizzle, preferring Sizzle to the native Selectors API if Sizzle
is available. Sizzle internally uses the native Selectors API and thus this
should have minimal performance implications; also, it allows you to use Sizzle
proprietary extensions such as ":first".

This commit also restricts the definition of the enter selection so that only
append and insert operations are defined. The other operations were generally
unsupported anyway, and it cleans up the code to have separate implementations
for insert and append. (I might enable additional operations in the future, such
as `filter`, `sort` and `each`, but this seems like a reasonable first pass.)
2011-02-17 11:56:13 -08:00
Michael Bostock d215acef78 Add d3.behavior module.
Includes, as the first behavior, a pan & zoom behavior. The canvas can be panned
by dragging the mouse, and zoomed using the mousewheel (or by double-click). By
listening to redraw events, users can decide whether to implement geometric
zooming (such as by setting the "transform" attribute on an `svg:g` element) or
semantic zooming (by changing the domain of a scale object and repositioning
elements).

This commit also includes two bug fixes. The `d3.format` class now properly
groups thousands of negative numbers, and supports the sign specifier. The
unicode minus symbol \u2212 is used for negative values. The `d3.scale.pow`
class now properly handles negative numbers, as well.
2011-02-11 13:00:41 -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 65307730a3 Add d3.layout.stack, d3.min, d3.max. 2011-01-17 12:27:29 -08:00
Michael Bostock d16d680412 Use d3.svg.area for streamgraph example. 2010-11-26 18:01:21 -08:00
Michael Bostock 5b43420991 Fix delay in stack transition. 2010-11-10 22:43:02 -08:00
Michael Bostock 7f7ce5cc09 Another fix for concurrent transitions.
Don't run older transitions after newer transitions complete.
2010-11-09 17:54:52 -08:00
Michael Bostock caab7aabd7 Cancel concurrent transitions. 2010-11-08 22:49:31 -08:00
Michael Bostock 05a255ca9a Break d3 into {core,scale,svg} modules.
Also enable ADVANCED_OPTIMIZATIONS for the Google compiler.
2010-10-30 15:42:11 -07:00
Michael Bostock e25acce124 Consolidate concurrent setIntervals. 2010-10-24 15:27:04 -07:00
Michael Bostock 27dbb5a0fa Custom easing. Public d3.dispatch. 2010-10-24 12:40:26 -07:00
Michael Bostock c117dbe527 Move `max` and `range` to separate files. 2010-10-14 10:29:17 -07:00
Mike Bostock 018b79577a Rename add -> append. 2010-10-02 11:00:31 -07:00
Mike Bostock ff98c89c9d Rescale when grouped. 2010-09-29 12:58:50 -07:00
Mike Bostock 661ff7fe82 Redesign of tweens. 2010-09-28 23:18:51 -07:00
Mike Bostock 373ae84c83 Tweak button margin in stacked bar chart example. 2010-09-28 18:34:45 -07:00
Mike Bostock bca36356ec Add group <-> stack bidrectional animation. 2010-09-28 18:04:58 -07:00
Mike Bostock 7aaadad542 Fix bug in stack -> group animation. 2010-09-28 13:00:28 -07:00
Mike Bostock 370818e799 Add stack -> group animation example. 2010-09-28 12:55:33 -07:00
Mike Bostock ae0d06f209 Checkpoint examples. 2010-09-28 11:34:52 -07:00