https://github.com/d3/d3

sort by:
Revision Author Date Message Commit Date
15d7569 Merge branch 'release' 30 May 2011, 16:26:23 UTC
f73cd15 Merge branch 'mousewheel' into release 30 May 2011, 16:23:45 UTC
c7c2af6 Merge branch 'minmax' into release 30 May 2011, 16:23:39 UTC
6c5a1a3 Rewrite mousewheel hack using D3. Also, make sure that the div is positioned absolutely off-screen. 30 May 2011, 16:22:28 UTC
d8c8b5d Ignore null and undefined in d3.{min,max}. Fixes #161. 30 May 2011, 16:10:13 UTC
a59683e Better mousewheel precision. Copy Mike's new mousewheel hack from Polymaps. Fixes #156. 30 May 2011, 09:09:53 UTC
25e77c4 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. 30 May 2011, 08:45:27 UTC
7e08dc1 d3.min & d3.max: pass index and array to accessor. Fixes #162. 30 May 2011, 08:38:17 UTC
a08625d Merge branch 'treemap' into release 28 May 2011, 05:26:29 UTC
92a0ea1 Modify target aspect ratio implementation. 27 May 2011, 22:48:54 UTC
0eb59e7 Merge branch 'horizon' into release 27 May 2011, 21:58:06 UTC
8f54652 Merge branch 'zip' into release 27 May 2011, 21:54:56 UTC
16c40a1 Merge remote-tracking branch 'jasondavies/new-parens' into release 27 May 2011, 21:54:15 UTC
909b165 Gratuitious micro-optimizations. 27 May 2011, 21:46:59 UTC
1baf57b Fix bugs in d3.zip. * The returned array should be truncated to the length of the shortest argument. * With no arguments it should return an empty array. I've updated the unit tests to be more verbose to detect the array of single-element arrays returned for a single argument. 27 May 2011, 19:50:27 UTC
2403293 Add d3.zip. Analagous to Python's built-in zip(): <http://docs.python.org/library/functions.html#zip> Fixes #145. 27 May 2011, 08:36:36 UTC
98ef2d1 Prefer style over attr. 27 May 2011, 04:15:28 UTC
c75ebe1 Transitions for horizon bands! 26 May 2011, 07:10:14 UTC
a151653 Horizon chart improvements. Use width and height attributes instead of size, for consistency with other chart templates. (Though, note that chart templates are inconsistent with layouts in this regard, which use a size property. But let's remain locally consistent for now.) Default x and y properties to [0] and [1] to match the defaults of d3.svg.area. Add support for mode and interpolate properties. The mode can be either "offset" or "mirror", with the default being "offset". The interpolate property is the same as that used by d3.svg.area, and defaults to "linear". The horizon chart now properly clips the horizon layers, such that if a horizon chart is use within a larger SVG element, it will not extend the chart bounds. In addition, this commit fixes a bug in how unique IDs are assigned to the clip and area paths; it's a shame that SVG does not support a way to refer to paths locally. Note that because negative values are offset or mirrored, the horizon chart will render twice as many paths (use elements) as the requested number of bands. For example, if the default bands of 1 is used, there will be one negative band and one positive band. In the data has no negative values, then the negative band will be empty. Keep this in mind as it affects the layer's class attribute (such as "q0-3" and "q2-3" for the default single-band horizon). 22 May 2011, 18:26:46 UTC
3941be1 Remove extraneous parentheses from `new` operator. Parentheses are optional if there are no arguments. 22 May 2011, 09:22:28 UTC
7126428 Merge branch 'release' 22 May 2011, 00:29:05 UTC
5bf17da Merge branch 'format' into release 22 May 2011, 00:26:29 UTC
392aa11 Simplify new format types. I removed the `F`, `G` and `E` types, since these are redundant and we don't have to be slavishly-compatible with Python. Also, I simplified the implementation of `g`, `e` and `f` so that they use JavaScript's built-in `toPrecision`, `toExponential` and `toFixed`, respectively. The existing implementations weren't exactly compatible with Python, anyway, so we might as well default to using JavaScript's built-ins. 22 May 2011, 00:19:31 UTC
ce52261 Default bins using Sturges' formula. 21 May 2011, 23:56:12 UTC
08a5aa3 Histogram improvements. Rename `ticks` to `bins` to match numpy, matplotlib, and Protovis. Also allow the bins to be specified simply as a count, in which case the range is divided uniformly into the specified number of bins. The histogram layout now also takes a `range` property, which specifies the minimum and maximum value of the histogram rather than implicitly computing it from the values, which is nice if you expect values to fall in a specific range, such as [0,1]. 21 May 2011, 23:38:29 UTC
a462483 More sensible defaults for d3.chart.horizon.{x,y}. 21 May 2011, 20:29:43 UTC
0e75d27 Slightly shorter. 21 May 2011, 20:08:52 UTC
6ba3097 Add d3.bisect. This is similar to pv.search, but more closely modeled after Python's bisect methods to provide the desired flexibility in searching slices of arrays. This includes good tests for bisect, and better tests for polylinear and quantile scales (both of which now use bisect). 21 May 2011, 19:56:06 UTC
5e60672 Add reusable horizon chart. Still to do: support negative values (offset or mirror modes). Fixes #152. 21 May 2011, 09:24:23 UTC
a5d4699 Merge branch 'master' into histogram 20 May 2011, 23:31:51 UTC
1c46ff8 Merge remote-tracking branch 'jasondavies/histogram' into histogram 20 May 2011, 23:09:29 UTC
85a6fee Add support for F, r and p format types. `F` is an alias for `f`. `r` is a new format type that rounds the input number, treating the precision field as the desired number of significant digits. This is similar to `g`, except it never uses exponent notation. `p` is equivalent to `r`, except it outputs a percentage, as with `%`. 20 May 2011, 22:38:09 UTC
01fdc1d Add d3.round. 20 May 2011, 21:20:17 UTC
247e58e Update unit tests. 20 May 2011, 13:46:30 UTC
e89b53c Add unit test for exponential notation. Also fix a bug in precision interpretation. 19 May 2011, 20:04:51 UTC
643efb9 Additional types for d3.format. * "e": exponent notation. * "E": same as "e", except uses "E" as a separator. * "g": precision is interpreted as signficant digits. * "G": same as "g" but uses "E" instead of "e". * "n": equivalent to ",g". * "%": percentages. Fixes #149. 19 May 2011, 19:57:42 UTC
32b02b6 Added configurable treemap layout 14 May 2011, 19:38:20 UTC
173a936 Merge branch 'release' 12 May 2011, 18:56:15 UTC
4c998ba Propagate touch identifier in d3.svg.touches. Also, add a fun little example demonstrating multi-touch. 12 May 2011, 18:54:38 UTC
f1a2f62 Simplify touches code slightly. 12 May 2011, 18:28:31 UTC
bdc7023 Merge branch 'touch' into release 12 May 2011, 18:26:09 UTC
3018f87 Rewrite stack layout for flexibility. The stack layout can now operate on arbitrary data structures, rather than requiring a specific input format. To do this, you can now specify functions to access values per series, along with x- and y-coordinates. One tricky thing is that the stack layout needs to be able to write the stacked values back into the data; this is accomplished using the customizable `out` function. This function takes three arguments: the current datum (d), the offset value (y0), and the y value. The y value is unchanged unless the "expand" offset is used. This commit also allows you to specify arbitrary functions for order and offset computation, in addition to the built-in methods supported previously. 12 May 2011, 17:56:31 UTC
25a3a50 Add d3.permute. 12 May 2011, 17:25:05 UTC
ab28a0c Revert "Remove usage of d3_array for efficiency." This reverts commit 1bb3e9b02599f92a21a5b7b7b8f7492a1ba1e011. The performance difference is negligible, and using d3_array results in smaller code. 12 May 2011, 16:20:07 UTC
1bb3e9b Remove usage of d3_array for efficiency. This avoids unnecessarily creating a new array for every touch event. 12 May 2011, 09:10:04 UTC
a5f1407 Add d3.svg.touches for multitouch support. 11 May 2011, 16:26:48 UTC
5f2e430 Add touch support to `d3.svg.mouse`. This doesn't quite seem like the right place for it, but it seems to work when using "touchstart", "touchmove" and "touchend" handlers without any adverse effects on "true" mouse event handlers. See <http://www.jasondavies.com/apollonian-gasket/> to see an example of combined touch/mouse handlers working with this change. 10 May 2011, 21:42:16 UTC
1eb0932 Simplify binary search. 09 May 2011, 08:05:44 UTC
7c518c5 Merge branch 'polylinear' 09 May 2011, 02:54:40 UTC
7ead688 Delete d3.search. Not needed for now, since I opted to create customized versions internally. 09 May 2011, 02:52:12 UTC
c99678e Rename a variable. 08 May 2011, 06:24:42 UTC
e67e7d7 Refactor polylinear scales. This commit adds a d3_uninterpolate method (private, for now), which is essentially the inverse of d3.interpolate. It's used to map a value in the domain to the unit range [0,1], which can then be passed to an interpolator. 08 May 2011, 06:20:02 UTC
5d05154 Merge branch 'release' 07 May 2011, 23:51:30 UTC
978a3ce Merge branch 'stack' into release 07 May 2011, 23:47:46 UTC
e1c6c74 Merge branch '===' into release 07 May 2011, 23:42:59 UTC
ce808da Merge branch 'immediate-transitions' into release 07 May 2011, 23:39:46 UTC
ef905bc Merge branch 'data-listeners' into release 07 May 2011, 23:35:30 UTC
b1b6b14 Merge branch 'monotone' into release 07 May 2011, 23:34:01 UTC
7367df8 Improved monotone interpolation. Mainly, I fixed a bug where the coordinates could get set to NaN if two successive points have the same x-coordinate. But I also cleaned up the implementation slightly, and compute the initial tangents using finite differences. 07 May 2011, 23:32:48 UTC
8aa986d Merge branch 'issue-78' into release 07 May 2011, 18:28:48 UTC
1c413cd Add tests for classed. 07 May 2011, 18:27:48 UTC
99e2a55 Cleverly compacted `classed` code. We can take advantage of JavaScript's invisible hoisting of variables to set them before they are defined. This simplifies the code for the various special cases in the `classed` operator, such as for SVG elements and browsers that support the tokenized class list. 07 May 2011, 18:21:59 UTC
bf53744 Merge branch 'color' into release 07 May 2011, 18:09:44 UTC
6a2c0ef Add tests for hsl. 07 May 2011, 18:08:48 UTC
59b5ba9 Reorganize some color functions. More tests. 07 May 2011, 17:59:49 UTC
316526a Revert behavior of d3.keys. We include keys inherited from the prototype. 07 May 2011, 17:32:17 UTC
09cbe4d Rename "group" to "node". 05 May 2011, 20:46:49 UTC
4024cb6 Add .hsl().brighter() and .hsl().darker(). Also fix .rgb() and .hsl(). 05 May 2011, 20:44:40 UTC
fa2f325 Fix typo. Thanks Mike! 05 May 2011, 20:25:45 UTC
9e51c6e Propagate data changes to event listeners. Event listeners are still bound to the index at the time of binding, but data changes are now visible from the event listener. Fixes #88. 05 May 2011, 17:53:52 UTC
a591160 Use prototypes for `d3.rgb()` and `d3.hsl()`. This turns out to be slightly faster than using structs (`{}`) and is bit cleaner. You can now also do: d3.rgb(r, g, b).hsl() and: d3.hsl(h, s, l).rgb() to convert between RGB and HSL. 05 May 2011, 16:27:43 UTC
8d2bc4b Simplify `classList` & `className.baseVal` logic. 05 May 2011, 15:25:49 UTC
2280d51 Revert "Use a more precise check for "baseVal" property." This reverts commit 94d0e1aa18931a52777775d078ea52038f9d1876. 05 May 2011, 15:20:54 UTC
1a83029 Polylinear scales. Fixes #61. For example: d3.scale.linear() .domain([-100, 0, 100]) .range(["red", "white", "green"]); 05 May 2011, 14:29:17 UTC
94d0e1a Use a more precise check for "baseVal" property. 05 May 2011, 12:31:24 UTC
333ddeb Use `element.classList` for classed operator. This is only used if available, and falls back to the regex-based implementation e.g. for SVG nodes. See #96. 05 May 2011, 12:30:06 UTC
668cdaa Add `brighter` and `darker` to d3.rgb(). Fixes #138. 05 May 2011, 11:38:55 UTC
01bf836 Add "expand" stack offset. 03 May 2011, 23:23:09 UTC
bf1be6f Set className to `""` instead of `null`. Retrieving it in Chrome returns `""` after setting it to `null` anyway. 03 May 2011, 16:27:02 UTC
7ab5e35 Better fix for classed operator. Fixes #78. 03 May 2011, 16:17:03 UTC
0544275 Use "Object.keys" if available. Also added "hasOwnProperty" check in the fallback to avoid enumerating properties from the prototype chain. This is the approach recommended in <https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/keys> and elsewhere. See also: #96. 03 May 2011, 12:40:27 UTC
1578595 Fix classed operator for SVG elements. Fixes #78. Specifically, removal of a class wasn't working because the `className` property for SVG elements is an SVGAnimatedString, which has no `replace` method. It would be nice to have a unit test for this, but env-js doesn't use SVGAnimatedString for this property. 03 May 2011, 11:24:51 UTC
33486bb Minor code simplification. 03 May 2011, 10:26:43 UTC
86a4f6f Merge remote-tracking branch 'jasondavies/histogram' into histogram 03 May 2011, 01:51:36 UTC
a3aebba Merge remote-tracking branch 'jasondavies/monotone' into basis 03 May 2011, 01:46:08 UTC
a0d4d0b Add cardinal-open interpolation. 03 May 2011, 01:42:39 UTC
d1c406f Add basis-open interpolation. 03 May 2011, 00:11:44 UTC
ae5123f Add monotone interpolation for lines and areas. Based on the Protovis implementation. 02 May 2011, 08:13:52 UTC
0f2846e Add doctype to all examples for consistency. 01 May 2011, 23:15:09 UTC
48a40ec Add histogram layout. 01 May 2011, 23:04:06 UTC
6827da7 Regenerate files. 01 May 2011, 22:31:25 UTC
87066fa Remove risky usages of "===". Thanks, Mike! 01 May 2011, 22:31:01 UTC
df2e3c2 Avoid RegExp bug in FF 3.6. 01 May 2011, 19:31:34 UTC
995ab7e Oops, add generated files. 01 May 2011, 17:24:38 UTC
1c70462 Remove crufty variable. 01 May 2011, 17:22:45 UTC
603d86a Compute node position relative to parent. Previously, we were computing the node position relative to the node, which is dangerous is the node is transformed. Computing it relative to the parent allows nodes to be positioned using the "transform" attribute. 01 May 2011, 16:58:46 UTC
a558672 Merge branch 'master' into jasondavies-immediate-transitions 01 May 2011, 04:53:01 UTC
1893d28 Rename `immediate` to `flush`. 01 May 2011, 04:52:14 UTC
f76e515 Merge branch 'jasondavies-qq' * jasondavies-qq: Improvements to qq chart. Add x- and y-scales to Q-Q plot. Add Q-Q plot. 01 May 2011, 04:18:52 UTC
71622b7 Improvements to qq chart. 01 May 2011, 04:16:58 UTC
back to top