307016e | Mike Bostock | 11 October 2011, 23:46:47 UTC | Fix a rounding bug in SI-prefix format. Also, expose d3.formatPrefix so that it's easier for callers to create a formatter for a specific prefix (such as using the "G" prefix for all ticks). | 11 October 2011, 23:46:47 UTC |
4adfae7 | Mike Bostock | 11 October 2011, 04:40:52 UTC | Add DOM-to-Canvas example. | 11 October 2011, 04:40:52 UTC |
672b331 | Mike Bostock | 11 October 2011, 04:40:10 UTC | Merge branch 'release' | 11 October 2011, 04:40:10 UTC |
92524e9 | Mike Bostock | 11 October 2011, 04:39:00 UTC | Merge branch 'si-format' into release | 11 October 2011, 04:39:00 UTC |
1f20609 | Mike Bostock | 11 October 2011, 04:38:26 UTC | Merge branch 'centroid' into release | 11 October 2011, 04:38:26 UTC |
32d871c | Mike Bostock | 11 October 2011, 04:37:56 UTC | Merge branch 'mean' into release | 11 October 2011, 04:37:56 UTC |
b5dc45a | Mike Bostock | 11 October 2011, 04:13:25 UTC | Better rounding of significant digits. This simplifies the implementation and fixes a few bugs. The si prefix format ("s") now supports variable precision; in fact, you are strongly recommended to specify a precision, such as ".3s". | 11 October 2011, 04:13:25 UTC |
fe83f16 | Mike Bostock | 11 October 2011, 00:54:46 UTC | Merge branch 'add-si-prefix-format' of https://github.com/pjjw/d3 into si-format | 11 October 2011, 00:54:46 UTC |
9d9a3f7 | Mike Bostock | 11 October 2011, 00:50:17 UTC | Merge branch 'geom-centroid' of https://github.com/jasondavies/d3 into centroid | 11 October 2011, 00:50:17 UTC |
31cb66f | Mike Bostock | 11 October 2011, 00:49:53 UTC | Add d3.median. | 11 October 2011, 00:49:53 UTC |
9523c4d | Mike Bostock | 11 October 2011, 00:41:52 UTC | Merge branch 'mean' of https://github.com/jasondavies/d3 into mean | 11 October 2011, 00:41:52 UTC |
d2ba3b2 | Mike Bostock | 10 October 2011, 23:45:08 UTC | Minor fixes for the axis component. You can now change the orientation and the axis will redraw correctly. When an axis is applied by a transition, the subtransitions will properly inherit the transition id, allowing transitions on reselected elements to continue. | 10 October 2011, 23:45:08 UTC |
f9148ed | Jason Davies | 08 October 2011, 17:19:01 UTC | Rearrange polygon tests. This arranges them first by the type of polygon we're testing, then the operations. I've added tests for clockwise polygons too, for good measure. | 08 October 2011, 17:19:01 UTC |
3740741 | Jason Davies | 08 October 2011, 16:30:17 UTC | Add tests for d3.geom.polygon and fix centroid bug. d3.geom.polygon(…).area() assumes screen pixel coordinates with (0, 0) at the top left, and y increasing going downwards. This results in a positive area for counterclockwise coordinates. Howver, the default centroid calculation was assuming "usual" Cartesian coordinates with y increasing going upwards, hence the centroid coordinates were incorrectly multiplied by -1. This fix won't affect d3.geo.path(…).centroid() as it passes a constant to d3.geom.centroid. | 08 October 2011, 17:01:53 UTC |
50ecefd | Mike Bostock | 08 October 2011, 16:45:47 UTC | Merge pull request #335 from jasondavies/test Fix tests in Linux. | 08 October 2011, 16:45:47 UTC |
7a8460e | Jason Davies | 08 October 2011, 12:58:41 UTC | Remove dangling __data__ from other tests. This occurs on Linux, where the directory listing order is different from OS X and so other tests leave data bound to the "body" element. This data is then propagated when new elements are appended, and thus mess up some of the tests! | 08 October 2011, 13:01:35 UTC |
bf73f5c | Jason Davies | 08 October 2011, 11:42:45 UTC | Fix another couple of race conditions in tests. | 08 October 2011, 11:42:45 UTC |
b9db058 | Jason Davies | 07 October 2011, 23:09:59 UTC | Fix some potential race conditions in tests. Unless .html("") is called on d3.select("body"), elements appended by another test could interfere with data binding. See #329. | 07 October 2011, 23:09:59 UTC |
0e0ba08 | Mike Bostock | 07 October 2011, 22:37:51 UTC | Fix a centroid bug with CCW polygons. | 07 October 2011, 22:37:51 UTC |
da18966 | Jason Davies | 07 October 2011, 20:57:59 UTC | Add d3.mean. Uses Welford's algorithm to avoid overflow. See #245. | 07 October 2011, 21:00:44 UTC |
9edd4bc | Mike Bostock | 07 October 2011, 19:23:55 UTC | Merge branch 'release' | 07 October 2011, 19:33:08 UTC |
05e9a39 | Mike Bostock | 07 October 2011, 19:19:30 UTC | Fix spaces. | 07 October 2011, 19:22:56 UTC |
9e30351 | Mike Bostock | 07 October 2011, 19:18:33 UTC | Merge branch 'classed' of https://github.com/jasondavies/d3 into release | 07 October 2011, 19:18:33 UTC |
440d961 | Mike Bostock | 07 October 2011, 19:17:17 UTC | Merge branch 'transition-null' of https://github.com/jasondavies/d3 into release Conflicts: test/core/transition-test-attr.js | 07 October 2011, 19:17:17 UTC |
87c1f83 | Mike Bostock | 07 October 2011, 19:16:15 UTC | Merge branch 'area-step-interpolate' into release | 07 October 2011, 19:16:15 UTC |
0b852dd | Mike Bostock | 07 October 2011, 19:10:10 UTC | Copy constructors for d3.rgb and d3.hsl. Previously, these would work by coercing the input color to a string and then parsing it. This is slow, but more importantly, this is a lossy process for HSL colors due to the conversion to hexadecimal RGB format. This commit detects instances of d3_Rgb and d3_Hsl on input and copies them efficiently. | 07 October 2011, 19:10:10 UTC |
4d1de5e | Mike Bostock | 07 October 2011, 18:32:06 UTC | Fix a bug in area step interpolation. When computing the reversed baseline, we need to switch between step-before and step-after, since the points are in reverse order. Otherwise, we're effectively filling the gap between step-before and step-after. | 07 October 2011, 18:32:06 UTC |
cc0ae76 | Jason Davies | 07 October 2011, 16:40:58 UTC | Make toString return #RRGGBB for all colours. This breaks a test case that ensures d3.hsl(x) == d3.hsl(d3.hsl(x)). Fixes #333. | 07 October 2011, 16:58:58 UTC |
6b83af4 | Jason Davies | 06 October 2011, 19:34:06 UTC | Use ternary ? happy : unhappy. Using the comma operator isn't so bad, and I added it to removeAttribute for good measure in case there's an implementation out there that returns something. | 06 October 2011, 19:34:06 UTC |
037493c | Jason Davies | 06 October 2011, 19:06:14 UTC | Fix bug when transitioning namespaced attributes. Also, simplify handling of nulls. | 06 October 2011, 19:06:14 UTC |
f70ab33 | Mike Bostock | 06 October 2011, 15:45:49 UTC | Merge pull request #328 from larskotthoff/maketarget make Makefile GNU make v3.82 compatible | 06 October 2011, 15:45:49 UTC |
8f8c710 | Jason Davies | 06 October 2011, 08:56:34 UTC | Small optimisation. | 06 October 2011, 08:56:34 UTC |
57a3b0d | Jason Davies | 06 October 2011, 08:54:07 UTC | More efficient removal of transition properties. Thanks, @mbostock! | 06 October 2011, 08:54:07 UTC |
db65a38 | Jason Davies | 05 October 2011, 22:05:42 UTC | Use removeAttribute when transitioning to null. | 05 October 2011, 22:05:42 UTC |
f5c60ec | Jason Davies | 05 October 2011, 21:38:30 UTC | Fix null check in style transition. | 05 October 2011, 21:38:30 UTC |
878d1c1 | Jason Davies | 05 October 2011, 21:35:19 UTC | Fix transitioning styles to null (removal). | 05 October 2011, 21:35:19 UTC |
f3b8c0e | Lars Kotthoff | 04 October 2011, 18:34:16 UTC | remove duplicate rule and tweak "all" target (mbostock) | 04 October 2011, 18:34:16 UTC |
1bd3a25 | Lars Kotthoff | 03 October 2011, 20:07:38 UTC | make Makefile GNU make v3.82 compatible Quote from NEWS file: In previous versions of make it was acceptable to list one or more explicit targets followed by one or more pattern targets in the same rule and it worked "as expected". However, this was not documented as acceptable and if you listed any explicit targets AFTER the pattern targets, the entire rule would be mis-parsed. This release removes this ability completely: make will generate an error message if you mix explicit and pattern targets in the same rule. | 03 October 2011, 20:07:38 UTC |
fe61281 | Mike Bostock | 01 October 2011, 01:00:42 UTC | Merge branch 'showreel' | 01 October 2011, 01:00:42 UTC |
ad066cd | Mike Bostock | 30 September 2011, 16:01:24 UTC | Add show reel example. | 01 October 2011, 00:59:54 UTC |
bbb126f | Mike Bostock | 30 September 2011, 16:02:11 UTC | Merge pull request #324 from jasondavies/tree-test Another test for empty children arrays. | 30 September 2011, 16:02:11 UTC |
ace525c | Mike Bostock | 30 September 2011, 16:00:55 UTC | Merge pull request #325 from jasondavies/transition-test Add test for transition.selectAll and NodeLists. | 30 September 2011, 16:00:55 UTC |
68f555b | Jason Davies | 30 September 2011, 15:55:30 UTC | Add test for transition.selectAll and NodeLists. This tests the fix in cd3d236015cc2206186b359227f54c4fc761a648. | 30 September 2011, 15:55:30 UTC |
c7f5846 | Jason Davies | 30 September 2011, 07:48:28 UTC | Simplify. | 30 September 2011, 07:48:28 UTC |
886b659 | Jason Davies | 30 September 2011, 07:43:22 UTC | Another test for empty children arrays. This tests for the issue fixed in 6804a60fe4899fa83586bad51b45ad94ef215203. | 30 September 2011, 07:43:22 UTC |
cf88250 | Jason Davies | 30 September 2011, 06:51:33 UTC | Simplify. Thanks again, @mbostock! | 30 September 2011, 06:51:33 UTC |
6804a60 | Mike Bostock | 30 September 2011, 04:53:22 UTC | Fix a bug with empty children arrays. | 30 September 2011, 04:53:22 UTC |
cd3d236 | Mike Bostock | 29 September 2011, 21:59:56 UTC | Fix a NodeList bug in transition.selectAll. | 29 September 2011, 22:00:51 UTC |
adec0a6 | Jason Davies | 29 September 2011, 15:33:34 UTC | Short-circuit for speed. Thanks, @mbostock! | 29 September 2011, 15:33:34 UTC |
927426f | Jason Davies | 28 September 2011, 20:10:59 UTC | Support multiple classes in classed operator. Fixes #320. | 29 September 2011, 10:30:20 UTC |
caefcaa | Mike Bostock | 28 September 2011, 22:28:36 UTC | Add node-canvas example. Demonstrates how to render geographic shapes to a canvas and save to PNG. | 28 September 2011, 22:37:50 UTC |
9e16bee | Mike Bostock | 27 September 2011, 22:00:27 UTC | Merge branch 'release' | 27 September 2011, 22:00:27 UTC |
bbcaa27 | Mike Bostock | 27 September 2011, 21:58:39 UTC | Fix for Bonne projection at 0° parallel. | 27 September 2011, 21:58:39 UTC |
6a65451 | Mike Bostock | 27 September 2011, 20:57:56 UTC | Merge branch 'bonne' of https://github.com/jasondavies/d3 into release | 27 September 2011, 20:57:56 UTC |
a70975b | Mike Bostock | 27 September 2011, 20:56:18 UTC | Merge branch 'gnomonic' into release | 27 September 2011, 20:56:18 UTC |
fd0759f | Mike Bostock | 27 September 2011, 20:56:07 UTC | Merge branch 'fix-format-zero-sigfig' into release | 27 September 2011, 20:56:07 UTC |
4c179d9 | Mike Bostock | 27 September 2011, 20:55:35 UTC | Merge branch 'scale-log-ticks' into release | 27 September 2011, 20:55:35 UTC |
dcb4a4b | Mike Bostock | 27 September 2011, 20:54:58 UTC | Merge branch 'force-charge-zero' into release | 27 September 2011, 20:54:58 UTC |
886f6b8 | Mike Bostock | 27 September 2011, 20:54:36 UTC | Merge branch 'behavior-click' of https://github.com/jasondavies/d3 into release | 27 September 2011, 20:54:36 UTC |
7d93964 | Mike Bostock | 27 September 2011, 20:45:34 UTC | Add install rule to Makefile. | 27 September 2011, 20:53:46 UTC |
115caa6 | Mike Bostock | 27 September 2011, 20:53:17 UTC | Merge branch 'master' of https://github.com/johan/d3 into release | 27 September 2011, 20:53:17 UTC |
c9b8384 | Mike Bostock | 27 September 2011, 20:53:05 UTC | Merge branch 'force-example' of https://github.com/jasondavies/d3 into release | 27 September 2011, 20:53:05 UTC |
9e91339 | Mike Bostock | 27 September 2011, 19:27:17 UTC | Add simple great-arc example. | 27 September 2011, 19:36:06 UTC |
a81faec | Mike Bostock | 27 September 2011, 19:14:06 UTC | Add clipping for Point and MultiPoint. | 27 September 2011, 19:14:06 UTC |
1b611a2 | Mike Bostock | 27 September 2011, 19:13:40 UTC | Cleanup us-state-centroids.json. There was trailing whitespace in the state names. | 27 September 2011, 19:13:40 UTC |
839442d | Mike Bostock | 27 September 2011, 19:06:48 UTC | Use almost 90 degrees rathern than 89. | 27 September 2011, 19:06:48 UTC |
f473cc2 | Mike Bostock | 27 September 2011, 19:06:23 UTC | Use administrative name rather than sovereignty. | 27 September 2011, 19:06:23 UTC |
254a8e3 | Mike Bostock | 27 September 2011, 18:55:47 UTC | Better world-countries.json. This was generated using the Natural Earth data set, which has nicer simplification than my previous approach using MapShaper. Also, this includes some updated boundaries, such as the split between Sudan and South Sudan. And, counties now have ISO 3166-1 alpha-3 codes. | 27 September 2011, 18:59:42 UTC |
bd585e2 | Mike Bostock | 27 September 2011, 15:58:52 UTC | Add d3.geo.circle. There is also a greatCircle as an alias, whose angle defaults to 90 degrees. (Or should, but some projections cannot handle 90 degrees so we use 89 instead.) | 27 September 2011, 16:00:23 UTC |
151d09d | Mike Bostock | 27 September 2011, 15:47:14 UTC | Merge branch 'release' | 27 September 2011, 15:47:14 UTC |
80fafd5 | Mike Bostock | 27 September 2011, 15:45:06 UTC | Add back d3_array for IE9. This also tweaks the array conversion slightly so that it is called by selection.selectAll rather than d3_selectAll; this guarantees that the selection groups are always arrays, even when a function selector is used. | 27 September 2011, 15:45:06 UTC |
5d0dbe2 | Mike Bostock | 27 September 2011, 15:26:41 UTC | Merge branch 'sort' of https://github.com/jasondavies/d3 into release | 27 September 2011, 15:26:41 UTC |
b552513 | Mike Bostock | 27 September 2011, 07:51:00 UTC | Don't need to default to empty string. | 27 September 2011, 07:51:00 UTC |
14dcdea | Mike Bostock | 27 September 2011, 07:34:22 UTC | Add d3.geo.greatArc. The greatArc class is the new name for greatCircle, which actually represents great arcs. Meanwhile, a new greatCircle class is for great circles. The new greatCircle class replaces the old clip class, providing clipping and resampling functionality (using greatArc internally). This isn't backwards-compatible, but I may forgo the major version number bump in light of the fact that greatCircle was just added, and not used in any (official) examples or documented. | 27 September 2011, 07:34:22 UTC |
46b358b | Mike Bostock | 27 September 2011, 07:31:22 UTC | Fix a bug in Antarctica. It's a MultiPolygon, not a Polygon. Those are islands, not holes! | 27 September 2011, 07:31:22 UTC |
b678e08 | Mike Bostock | 26 September 2011, 23:36:46 UTC | Merge branch 'gnomonic' of https://github.com/jasondavies/d3 into gnomonic | 26 September 2011, 23:36:46 UTC |
f1c6adc | Jason Davies | 26 September 2011, 12:20:04 UTC | Minor cleanup of force-cluster example. We don't need to reselect now that appending nodes to the entering selection are automatically added to the updating selection. | 26 September 2011, 12:20:04 UTC |
11c1104 | Jason Davies | 26 September 2011, 01:37:51 UTC | Rename standardParallel to parallel. And add missing file! | 26 September 2011, 01:37:51 UTC |
a6eb928 | Jason Davies | 25 September 2011, 22:40:28 UTC | Add Bonne geographic projection. Note that the Werner projection is a special case with standard parallel at 90°N, and the Sinusoidal projection is also a special case with standard parallel at 0°N. | 25 September 2011, 23:58:59 UTC |
46891e9 | Johan Sundström | 24 September 2011, 22:47:06 UTC | Make "make test" work even if npm installs pkgs elsewhere. | 24 September 2011, 22:47:06 UTC |
a7c318b | Jason Davies | 22 September 2011, 22:50:30 UTC | Restore drag click handler to its rightful place. | 22 September 2011, 22:50:30 UTC |
4e0edeb | Jason Davies | 22 September 2011, 22:22:08 UTC | Less zealous click cancelling. The click event is prevented from propagating when a drag has occurred i.e. the mouse has moved between mousedown and mouseup. This is because a click event will be triggered after a mousedown and mouseup have occurred on the same element. However, we were cancelling the next click event *anywhere*, regardless of whether mousedown and mouseup occurred on the same element or not. As a sanity check, we also check that the click event was triggered on the same element that mousedown *and* mouseup occurred on, before cancelling it. Just in case! | 22 September 2011, 22:47:35 UTC |
7895afb | Mike Bostock | 21 September 2011, 22:32:19 UTC | Better log ticks. This adds support for filtering the log ticks, such that fewer ticks can be generated to fit in a small space. This can be used in conjunction with a custom tick format as well. This commit also changes the default log tick format to be exponential rather than precision, for consistency. | 21 September 2011, 22:32:19 UTC |
c974d3a | Mike Bostock | 21 September 2011, 17:10:47 UTC | Merge branch 'master' of github.com:mbostock/d3 | 21 September 2011, 17:10:47 UTC |
fdcf307 | Mike Bostock | 21 September 2011, 17:08:39 UTC | Fix a bug in collapsible force layout example. We were registering multiple tick listeners, rather than replacing it. Oops! In the future, we'll probably change the behavior of force.on to match selection.on, and require a namespace for registering multiple listeners. | 21 September 2011, 17:08:39 UTC |
8914a38 | Peter Woodman | 21 September 2011, 01:14:00 UTC | expand si representation range to abs(x) < 10^27 | 21 September 2011, 01:14:00 UTC |
4918c83 | Peter Woodman | 21 September 2011, 00:23:55 UTC | separate variable for dropping post-decimal zeros, possibly useful for other formats. | 21 September 2011, 00:23:55 UTC |
af05f52 | Peter Woodman | 21 September 2011, 00:10:42 UTC | remove mod arg to getExponent function; i've not tested it (and it doesn't work for) the general case so why pretend. | 21 September 2011, 00:10:42 UTC |
dbd7383 | Mike Bostock | 20 September 2011, 23:38:52 UTC | Slight optimization for previous fix. | 20 September 2011, 23:38:52 UTC |
0ca32a8 | Peter Woodman | 20 September 2011, 23:20:06 UTC | add SI prefix formatting to d3.format | 20 September 2011, 23:20:06 UTC |
6ca72c4 | Peter Woodman | 20 September 2011, 10:05:09 UTC | fix significant figures formatting ('r') when specifying a precision for input 0. | 20 September 2011, 22:08:51 UTC |
612d237 | Mike Bostock | 20 September 2011, 19:19:04 UTC | Fix a bug when charge forces are zero. This was causing a divide by zero in the center-of-charge calculation. | 20 September 2011, 19:19:04 UTC |
b4c0860 | Jason Davies | 19 September 2011, 08:18:35 UTC | Fix sort due to lack of NodeList.prototype.sort. NodeList doesn't support .sort() directly, so we need to convert to a real Array first. I've done this in selectAll for efficiency i.e. this avoids a new Array being created every time the same selection is sorted. However, it may be slightly more efficient to create the Array only when sorting, to avoid unnecessary Array creation when sorting isn't used, which is probably the common case. Unfortunately it's difficult to test this because JSDOM uses a real Array instead of a NodeList! | 19 September 2011, 08:26:25 UTC |
9a8b383 | Jason Davies | 18 September 2011, 12:43:24 UTC | Add test for coincident circles. | 18 September 2011, 12:43:24 UTC |
016ed70 | Jason Davies | 18 September 2011, 09:46:32 UTC | Make residual floating point test clearer. This test makes sure NaN doesn't creep in due to Math.acos being called on numbers like +/- 1.000000000004, so it's more descriptive to check isNaN rather than the exact numerical results. | 18 September 2011, 09:47:03 UTC |
fb38f19 | Mike Bostock | 18 September 2011, 03:35:40 UTC | Merge branch 'release' | 18 September 2011, 03:35:40 UTC |
0a7af55 | Mike Bostock | 18 September 2011, 03:32:04 UTC | Fix variable charges for force layout. | 18 September 2011, 03:32:04 UTC |
8a58b52 | Mike Bostock | 18 September 2011, 03:09:00 UTC | Merge branch 'patch-1' of https://github.com/yasirs/d3 into release | 18 September 2011, 03:09:00 UTC |
f8ce523 | Mike Bostock | 18 September 2011, 03:07:56 UTC | Merge branch 'package' of https://github.com/jasondavies/d3 into release | 18 September 2011, 03:07:56 UTC |
ee10316 | Mike Bostock | 18 September 2011, 03:05:09 UTC | Merge branch 'pack' of https://github.com/jasondavies/d3 into release | 18 September 2011, 03:05:09 UTC |