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

1065 Коммитов

Автор SHA1 Сообщение Дата
Mitsutoshi Aoe dce7571381 Handle division by zero in partition 2011-08-08 11:50:47 +09:00
Mike Bostock 3be57161b1 Add population example. 2011-08-01 14:58:30 -07:00
Mike Bostock 5ba1c2a066 Merge branch 'ordinal' 2011-08-01 11:25:42 -07:00
Mike Bostock 9cd6a46019 Fix #236 - scale.pow accepts negative values. 2011-08-01 11:23:26 -07:00
Mike Bostock 7590713270 Fix #66 - setting domain recomputes range. 2011-08-01 11:16:38 -07:00
Mike Bostock 2c52c37b8c Merge branch 'time' 2011-07-31 17:31:24 -07:00
Mike Bostock ac03adf0c5 Time range methods now allow steps.
Now you can say d3.time.seconds(start, stop, step), which will return every
step'th second after start (inclusive) and before stop (exclusive). In addition,
you can now pass a range method to the time scale's ticks method, which makes it
easier to generate ticks. For example, x.ticks(d3.time.seconds, 15) will return
15-second ticks, rather than using the automatic default.
2011-07-31 17:28:04 -07:00
Mike Bostock 65d6d9005a Separate targets for testing. 2011-07-31 17:11:34 -07:00
Mike Bostock 62c7399e06 Remove padding. 2011-07-31 16:14:21 -07:00
Mike Bostock e2346ad471 Merge branch 'release' 2011-07-31 16:11:35 -07:00
Mike Bostock 94f4ed23be Simplify check for zero-area treemap cells. 2011-07-31 16:09:13 -07:00
Jason Davies 7c3adbd771 Fix handling of zero-sized nodes.
Previously, negative or zero sizes were short-circuiting the worst()
function by always returning Infinity, instead of being ignored for the
score computation.

Fixes #233.
2011-07-27 18:22:00 +01:00
Mike Bostock 6a9eda0b57 Merge branch 'release' 2011-07-20 16:15:57 -07:00
Mike Bostock a8558d9d40 Merge branch 'time' into release 2011-07-20 15:24:27 -07:00
Mike Bostock 9af66f9acd Fix a bug in histogram.frequency.
The logic was inverted. Oops! But now there are tests. Yay!
2011-07-20 15:21:09 -07:00
Mike Bostock 6ff9103ef1 Handle padding overflow in treemap layout. 2011-07-20 15:11:07 -07:00
Mike Bostock 4aae4f7560 Add d3.time.scale.utc.
Also fix a bug in d3.time.hour in regards to daylight savings.
Also fix a number of tests that weren't testing the desired functionality.
2011-07-20 13:56:44 -07:00
Mike Bostock f32995e844 Rename a few private symbols. 2011-07-20 12:50:06 -07:00
Jason Davies d4459481b2 Add SVG-based treemap example. 2011-07-20 09:07:14 +01:00
Jason Davies 3c2cb84b95 Fix typo and add padding tests. 2011-07-20 08:07:44 +01:00
Mike Bostock e2187aab37 Add d3.time.scale. 2011-07-19 18:44:04 -07:00
Jason Davies 8e13b182df Rename nodeRect to pad, and add missing semicolon. 2011-07-19 23:47:00 +01:00
Jason Davies 8ed5d42955 Don't add padding to root node.
Also, optimise internal scale() function slightly.
2011-07-19 23:45:15 +01:00
Jason Davies de9d623169 Add some tests for 0, negative or NaN values. 2011-07-19 23:07:05 +01:00
Jason Davies 55b24ff985 Be smart about padding. Thanks, @mbostock. :) 2011-07-19 22:45:57 +01:00
Jason Davies 4b5cd90c1d Improvements to padding, thanks to @mbostock. 2011-07-19 21:58:44 +01:00
Jason Davies 62bcec0998 Add support for padding to treemap layout.
The new "padding" property is an array of [top, right, bottom, left], or a
function that returns such an array for a given node.
2011-07-19 21:35:19 +01:00
Mike Bostock e37031a38c Organize tests into modules. 2011-07-18 18:08:06 -07:00
Mike Bostock ee74c4608a Add various time iteration utilities. 2011-07-18 17:56:30 -07:00
Mike Bostock a40876cb55 Merge branch 'release' 2011-07-16 20:45:11 -07:00
Mike Bostock 0afaaa248f Update source files. 2011-07-16 20:42:49 -07:00
Mike Bostock b691732401 Merge branch 'master' of https://github.com/tmont/d3 into release 2011-07-16 20:42:18 -07:00
Mike Bostock edb8ef17d8 Merge branch 'horizon' of https://github.com/jasondavies/d3 into release 2011-07-16 20:41:26 -07:00
Mike Bostock 0deffc9597 Merge branch 'minor-opt' of https://github.com/jasondavies/d3 into release 2011-07-16 20:40:57 -07:00
Mike Bostock 3d6eba8d19 Merge branch 'force-rangeerror' of https://github.com/jasondavies/d3 into release 2011-07-16 20:40:29 -07:00
Mike Bostock c31902dd3a Merge branch 'treemap' of https://github.com/jasondavies/d3 into release 2011-07-16 20:39:09 -07:00
Mike Bostock 25aa1d4df6 Update generated files. 2011-07-16 20:37:08 -07:00
Jason Davies 475f49b6ee Fix typo. 2011-07-16 18:16:41 +01:00
Jason Davies 1a456a90c7 Minor optimisation. 2011-07-16 00:49:25 +01:00
Tommy Montgomery 5d6ec6b4a7 verify that the node to remove after a transition actually has a parent node 2011-07-14 16:39:34 -07:00
Jason Davies 54a14c7c68 Prevent RangeError in Safari.
For very large force layouts, Safari was throwing "RangeError: Maximum call
stack size exceeded".  I think this is due to Safari having a smaller call stack
than Chrome and FireFox.  In any case, this fix replaces forEach with a while
loop, which should be faster in all browsers as well as reducing the call stack
size needed and thus fixing the Safari issue.
2011-07-14 10:02:43 +01:00
Jason Davies 45d376dbff Better protection against NaN and negative values.
Also, a more symmetric prevention of NaN in the scoring function from Mike:
"rmax is 0 if and only if s is 0, so it is equivalent".
2011-07-12 18:29:55 +01:00
Jason Davies 006bdfe9b8 Better fix for zero-area nodes.
Instead of filtering them out, we fix the root of the issue instead, which is
that the scoring function "worst" was returning NaN due to calculating 0/0,
instead of Infinity.
2011-07-12 17:32:20 +01:00
Jason Davies ae6ce3f373 Ignore negative areas in treemap layout. 2011-07-12 16:48:27 +01:00
Jason Davies da1006c501 Ignore zero-area nodes in treemap layout. 2011-07-12 16:42:12 +01:00
Caged 6b1a71fcd2 allow access of original data when computing arcs in pie layout 2011-07-11 20:53:57 -07:00
Mike Bostock 06ecb617a2 Allow multiple zoom behaviors to coexist.
Any event handlers on the window need to manage global state, as they will be
replaced when another zoom behavior is created.
2011-07-10 10:31:52 -07:00
Mike Bostock 1885dd55c8 Merge branch 'release' 2011-07-09 21:00:51 -07:00
Mike Bostock c1d7fbc172 Merge branch 'touch' into release
This includes nearly a complete rewrite of d3.behavior.zoom, more closely
modeled after the Polymaps po.drag, po.touch and po.wheel classes. This makes
the code simpler and also fixes a bug when releasing one of two fingers.
2011-07-09 20:30:14 -07:00
Mike Bostock c6c70d4730 Use d3.quantile in d3.chart.box. 2011-07-09 16:03:07 -07:00