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

172 Коммитов

Автор SHA1 Сообщение Дата
Jason Davies 728fff5ba5 Add d3.sum and d3.stats.median. 2011-05-11 08:35:12 +01:00
Mike Bostock df2e3c2a81 Avoid RegExp bug in FF 3.6. 2011-05-01 12:31:34 -07:00
Mike Bostock 603d86ac1a 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.
2011-05-01 09:58:46 -07:00
Mike Bostock f76e5159b5 Merge branch 'jasondavies-qq'
* jasondavies-qq:
  Improvements to qq chart.
  Add x- and y-scales to Q-Q plot.
  Add Q-Q plot.
2011-04-30 21:18:52 -07:00
Mike Bostock 0679598328 Better jittering for coincident nodes. 2011-04-28 11:43:26 -07:00
Mike Bostock 51b8e023c1 Simplify force calculations.
We don't actually need the separate `fx` and `fy` attributes on each node;
instead we can modify the `x` and `y` attributes directly, since we're using
position Verlet! This commit also adds the layout's `alpha` parameter to the
tick event, such that normalized external forces can be applied.
2011-04-28 10:25:23 -07:00
Mike Bostock ee30e29332 Simplify force layout's gravity computation. 2011-04-27 15:46:49 -07:00
Mike Bostock 229a59cb3f Also prevent clicks from propagating on drag. 2011-04-27 10:23:54 -07:00
Square 9d80ac2d46 Merge branch 'force' 2011-04-26 17:26:21 -07:00
Square 7e5fc72202 Allow `on` to be used with event capturing. 2011-04-26 15:03:10 -07:00
Mike Bostock 020aaa53e1 Update version to 1.12.0. 2011-04-24 22:35:59 -07:00
Mike Bostock 13aafededd Merge branch 'force' 2011-04-24 22:33:56 -07:00
Mike Bostock 420fed15d3 Use default priority of "" rather than null.
Maybe this'll make IE9 happy?
2011-04-24 22:29:36 -07:00
Mike Bostock b15a273327 Merge remote branch 'Caged/master' 2011-04-24 22:09:48 -07:00
Caged 62f0364470 update diagonals, use d3.functor instead of the removed d3_functor function 2011-04-24 12:13:40 -07:00
Mike Bostock 48537d9d42 Don't postpone immediate timers.
Previously, rescheduling an immediate timer would cause it to be postponed again
by a minimum of 24ms. This is undesirable if the timer is being scheduled in
response to user events, such as mousemoves, that can occur very frequently. Now
we schedule an early callback once, and don't touch it if it's rescheduled. In
addition, the timer loop is now smarter about switching between short and long
callbacks. If there's a short delay (< 24ms) until the next timer fires, the
timer will use requestAnimationFrame. For longer delays, setTimeout is used.
2011-04-19 17:50:09 -07:00
Mike Bostock 47f9ced9aa Merge branch 'release' 2011-04-13 23:54:47 -07:00
Mike Bostock 2eb4573f42 Merge branch 'box' into release 2011-04-13 23:53:59 -07:00
Mike Bostock 39dea0102f Merge branch 'cluster' into release 2011-04-13 23:51:29 -07:00
Mike Bostock 7f31d333ad Rename private variable `clamp`. 2011-04-13 23:44:25 -07:00
Mike Bostock 126e625d21 Add d3.svg.diagonal.
This is a utility for creating a Bézier curve between opposite corners of a
rectangle. This is commonly used to draw smooth curves connecting parent and
child nodes in a hierarchical node-link diagram. A projection may be specified
which allows the curve to be transformed from polar coordinates.

This commit also changes the semantics of the recently-added `links` method,
such that the objects have `source` and `target` properties that match the
default diagonal format.
2011-04-13 23:13:06 -07:00
Mike Bostock 222629a7a7 Text transitions.
You can now use the `text` operator on transitions, which has the same effect as
setting the text value at the start of the transition. This is nice if you have
a delayed transition, and avoids a common gotcha.

This commit also simplifies the implementation of the `text` operator using the
standard `textContent` property. This isn't supported on IE8-, but we could
potentially add support in the future using `innerText`.
2011-04-13 18:50:26 -07:00
Mike Bostock dd5b21a363 Fix a bug in d3.interpolateString.
The regular expression wasn't being reset, so we weren't always finding numbers!
2011-04-13 17:16:51 -07:00
Jason Davies b6b39af267 Expose `d3_functor` as `d3.functor`.
This is so it can be used in other modules such as the charts module.
2011-04-13 20:34:13 +01:00
Nelson Minar c7c9e7fad4 rename clamped() method to clamp() 2011-04-12 02:09:19 +00:00
Nelson Minar 2548d4fa32 Merge branch 'master' of https://github.com/mbostock/d3
Conflicts:
	d3.min.js
2011-04-12 02:02:48 +00:00
Mike Bostock 9f71e4e211 Fix a bug in cardinal-closed interpolation. 2011-04-10 23:26:35 -07:00
Mike Bostock 915be32ef7 Merge branch 'tree' 2011-04-10 18:44:45 -07:00
Nelson Minar 26030821a9 shorter clamp implementation suggested by mbostock 2011-04-10 23:16:13 +00:00
Nelson Minar a5055b4755 add clamped() to numeric scales 2011-04-10 21:42:25 +00:00
Mike Bostock bf180dc9af Fix a transition bug in bullet chart.
We were computing the tick join based on the (new) format function, but doesn't
produce the desired effect: the new format is applied on the old data. Thus, the
wrong join occurs if, say, the value 0.5 with the new format results in "0". The
correct join compares the old text content to the new format value.
2011-04-09 13:56:28 -07:00
Mike Bostock 57f2ecf2c1 Merge branch 'bullet' 2011-04-09 11:27:30 -07:00
Mike Bostock dab913575c Remove unused variable. Thanks, @fponticelli! 2011-04-09 10:55:33 -07:00
Mike Bostock a8d4f77fe9 Remove `parentData`.
It's equivalent to `parentNode.__data__`, so it's not needed. Technically, this
is not backwards-compatible, but these two fields on the group object are not
part of the public API (despite being technically accessible).
2011-04-09 10:35:04 -07:00
Michael Bostock bb5a6d06cc Fix bugs in remove & data.
The remove operator was completely broken in 1.8.6. I will add some tests to
make sure that doesn't happen again. Also, the data operator was broken if you
had duplicate keys in your join function; in this case, the duplicate elements
would not always be removed.
2011-04-08 15:33:01 -07:00
Michael Bostock a0a42f54dc Don't reselect on remove.
The previous behavior of selecting the parent node was extremely confusing
because it could result in the parent node being selected multiple times (when
removing siblings). Even worse, the child data would override the parent data!
This changes the `remove` operator so that it matches the behavior of the W3C
API (removeChild), returning the removed nodes.
2011-04-07 14:59:36 -07:00
Mike Bostock 213057576f Merge branch 'jasondavies-uglifyjs' 2011-04-05 10:34:21 -07:00
Mike Bostock 96f6374f72 Merge branch 'uglifyjs' of https://github.com/jasondavies/d3 into jasondavies-uglifyjs 2011-04-05 10:22:51 -07:00
Michael Bostock 29efd2a6d5 Fix a bug in d3.scale.log ticks. 2011-03-30 09:18:14 -07:00
Jason Davies 1dfd3350dc Replace Google's closure compiler with UglifyJS.
UglifyJS requires Node.js to run, but it's a lot faster than Google's
compiler and produces smaller gzipped sizes.  Some of the non-gzipped
sizes are a bit larger than Google's but I think the gzipped size is
more important.  Faster runtime is also good when we start testing the
minified versions too.
2011-03-25 10:28:41 +00:00
Michael Bostock 39a32e17d1 Merge branch 'jasondavies-csv_newlines' 2011-03-17 17:52:55 -07:00
Michael Bostock 4fcff607ab Allow `ease` to pass additional arguments. 2011-03-17 10:24:02 -07:00
Michael Bostock 937529eff3 Merge branch 'jasondavies-ie9_xhr' 2011-03-15 09:24:45 -07:00
Michael Bostock bb6f3c6ca0 Merge branch 'mbostock-master' 2011-03-14 23:43:45 -07:00
Michael Bostock 723a531874 Fix a type-coercion bug with scale domains. 2011-03-13 11:38:10 -07:00
Michael Bostock e6b0924aa8 Merge branch 'mbostock-master'
Release 1.7.0. Adds partition & hierarchy layouts, step-{before,after}
interpolation for line & area, sorting for treemaps, and a few bug fixes for
time format. Oh, and a bunch of tests!
2011-03-12 21:52:00 -08: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
Mike Bostock aad495add3 Add step-{before,after} interpolation.
Also add tests for d3.svg.area and d3.svg.line.
2011-03-12 12:43:51 -08:00
Michael Bostock abae3f9263 Add hierarchy & partition layouts.
Also, expose d3.rebind to make it a bit easier to compose classes.
2011-03-12 10:27:05 -08:00
Mike Bostock 26662dec2a Merge branch 'mbostock-master' 2011-03-12 08:29:26 -08:00