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

652 Коммитов

Автор SHA1 Сообщение Дата
Mike Bostock fe9ed1bd1d Color voronoi cells by area. 2011-06-12 12:59:02 -07:00
Jason Davies a8bc56d914 U.S. spelling for consistency. 2011-06-12 20:42:36 +01:00
Jason Davies 3d3ac3b147 Add "boid" flocking: d3.ai.boid().
Includes interactive "voroboids" example!
2011-06-12 20:09:15 +01:00
Mike Bostock 1dfcda4888 Better nicing for pow scales. 2011-06-11 18:11:15 -07:00
Mike Bostock 9bf55832ea Minor tweak. 2011-06-11 17:15:35 -07:00
Mike Bostock 54031e1363 Add superformula explorer. 2011-06-11 16:59:42 -07:00
Mike Bostock acdc72799e Relocate superformula dot example. 2011-06-11 13:00:28 -07:00
Mike Bostock 4964bb6362 Merge branch 'superformula' 2011-06-11 12:57:35 -07:00
Mike Bostock 920d980b3b Move d3.svg.superformula into an example.
This way, people can play with superformulas if they want them, but we keep the
core library small. If we want to replace the default symbol implementation with
superformulas in the future, we can do that too. For now, be conservative.
2011-06-11 12:54:44 -07:00
Mike Bostock 852ac949d2 Merge branch 'master' into superformula 2011-06-11 12:49:22 -07:00
Mike Bostock 7dc7fe4f53 Merge branch 'release' 2011-06-11 12:40:43 -07:00
Mike Bostock 3f6e2e2983 Remove trailing whitespace. 2011-06-11 12:38:50 -07:00
Mike Bostock afbeb4cec1 Merge branch 'interpolators' into release 2011-06-11 12:37:23 -07:00
Mike Bostock 093089fd6b Add test for registering custom interpolator. 2011-06-11 12:36:51 -07:00
Mike Bostock 40ba7913e0 Add d3.interpolators registry.
This is useful when other modules want to register interpolators for
d3.interpolate without adding an explicit dependency to d3.core.  The
interpolators are applied in reverse order, and the first one that returns
a function is used.

(This commit was authored by @jasondavies and cherry picked.)
2011-06-11 12:32:41 -07:00
Mike Bostock 54ac5e6749 Merge branch 'nice' into release 2011-06-11 12:20:57 -07:00
Mike Bostock a9b5476da7 Merge branch 'optional-tweening' into release 2011-06-11 12:20:34 -07:00
Mike Bostock 0607c580be Reduce code duplication.
I'm not totally sure about the nicing behavior for pow scales; we might want it
to behave more like nicing for log scales. But this works for now!
2011-06-11 12:17:47 -07:00
Mike Bostock d756caa0d8 Simplify subclassing of hierarchy layout.
The subclasses can't use the same object as the parent class, because they are
functions. But, there's no reason to duplicate the code that rebinds the methods
onto the subclass.
2011-06-11 11:31:42 -07:00
Mike Bostock de35e0d094 Tweens are now optional.
If the tween function returns null, then no tween will be applied for the
specified element. The default tween function now returns null if the start and
end value are the same, thus avoiding redundant interpolation.
2011-06-11 11:12:51 -07:00
Jason Davies 69324a46d5 Slightly more compact tests for nice scales.
The longer domains mess up the aligment but I'm sure Mike will figure something
out!
2011-06-07 17:46:25 +01:00
Jason Davies aeb1212f25 Add semicolons. 2011-06-07 17:32:55 +01:00
Jason Davies dc792de2ef Support for nice polylinear log scales. 2011-06-07 09:45:56 +01:00
Jason Davies 943e2d5a88 Fix nice pow scale.
We can't just rebind the internal linear scale's nice function because the
linear scale's domain is the exponentiated pow domain, so the actual pow domain
would most likely be fractional as the linear scale will round to the nearest
integer exponentiation.
2011-06-07 09:31:23 +01:00
Jason Davies ea8e8785a7 Support for "nice" polylinear scales. 2011-06-07 08:44:02 +01:00
Mike Bostock 8be719280a Merge remote-tracking branch 'biovisualize/master' into superformula 2011-06-06 22:51:16 -07:00
Mike Bostock 96837e4d0d Add title. 2011-06-06 22:50:10 -07:00
Mike Bostock bfa1a6e48f Add d3.svg.superformula. 2011-06-06 22:38:08 -07:00
chris viau b0d8d439a9 added more shapes 2011-06-07 00:59:18 -04:00
chris viau 06b0b25de0 Added shape tween 2011-06-06 22:55:18 -04:00
Jason Davies 8421fca43d Fix "nice" log scales.
Turns out we just needed to test for reversed domains.

Fixes #176.
2011-06-07 00:38:41 +01:00
Jason Davies e1daa4764c Add d3.scale.log().nice().
Based on the Protovis implementation.  Includes tests.  I'm not sure [10.9, 1.1]
should be "niced" to [10, 10] but this is also the behaviour in Protovis at the
moment.
2011-06-07 00:29:45 +01:00
Jason Davies 4a8ba2ad12 Update unit tests.
Forgot to update the .out file in the previous commit.  Also added a check for
domain [0, .49].
2011-06-06 23:40:04 +01:00
Jason Davies cdf5f2fa90 Add d3.scale.linear().nice().
Based on the Protovis implementation.  "Nices" the scale, extending the bounds
of the input domain to evenly-rounded values.
2011-06-06 23:34:16 +01:00
Mike Bostock 953bebb17c Add zoomable icicle & sunburst. 2011-06-02 23:25:28 -07:00
Mike Bostock d68551b59b Add Marimekko chart example. 2011-06-02 12:17:41 -07:00
Mike Bostock 2e560f6d6e Fix d3.min and d3.max, again.
Unlike Math.min and Math.max, it doesn't make sense to return negative or
positive infinity for d3.min and d3.max; the D3 functions return the minimum
value according to an arbitrary ordering, not by numeric value. Instead, the
minimum or maximum of an empty array, or an array that contains only degenerate
values, should always be undefined.
2011-05-30 13:43:18 -07:00
Mike Bostock 204e00efde Merge branch 'azimuthal' 2011-05-30 09:31:19 -07:00
Mike Bostock a1cc8cbef2 Merge branch 'master' into azimuthal 2011-05-30 09:29:34 -07:00
Mike Bostock 15d7569216 Merge branch 'release' 2011-05-30 09:26:23 -07:00
Mike Bostock f73cd15f17 Merge branch 'mousewheel' into release 2011-05-30 09:23:45 -07:00
Mike Bostock c7c2af625f Merge branch 'minmax' into release 2011-05-30 09:23:39 -07:00
Mike Bostock 6c5a1a3b0e Rewrite mousewheel hack using D3.
Also, make sure that the div is positioned absolutely off-screen.
2011-05-30 09:22:28 -07:00
Mike Bostock d8c8b5ddd6 Ignore null and undefined in d3.{min,max}.
Fixes #161.
2011-05-30 09:10:13 -07:00
Jason Davies a59683e325 Better mousewheel precision.
Copy Mike's new mousewheel hack from Polymaps.

Fixes #156.
2011-05-30 10:09:53 +01:00
Jason Davies 25e77c4f67 d3.min & d3.max: ignore NaN at [0].
Note: this now returns Infinity and -Infinity for zero-element arrays, whereas
previously an error would have occurred.

Fixes #161.
2011-05-30 09:45:27 +01:00
Jason Davies 7e08dc10ef d3.min & d3.max: pass index and array to accessor.
Fixes #162.
2011-05-30 09:38:17 +01:00
Mike Bostock e2fc8bfe52 Merge branch 'master' into azimuthal 2011-05-28 22:57:18 -07:00
Mike Bostock b9eff658a3 Stereographic & orthographic projections!
These now have arbitrary origins, as well. Still need to clip, though.
2011-05-28 00:13:53 -07:00
Mike Bostock a08625dabb Merge branch 'treemap' into release 2011-05-27 22:26:29 -07:00