Mike Bostock
c6c70d4730
Use d3.quantile in d3.chart.box.
2011-07-09 16:03:07 -07:00
Mike Bostock
aa928b6c3e
Merge branch 'jasondavies/force-touch' into release
...
I simplified the implementation to only support single-touch. I also opted not
to include touch support in the force-dynamic example (and other examples), just
because it complicates the examples too much. Touch is nice but I don't want it
to interfere with people learning the basics.
This merge also has an extra bonus fix: you can now have multiple force layouts
with dragging on the same page, and the drag behavior will do the direct the
event to the appropriate force layout.
2011-07-09 15:55:44 -07:00
Mike Bostock
075a8789a4
Add d3.quantile.
2011-07-09 15:15:14 -07:00
Mike Bostock
0bedbd739f
Merge branch 'kde' into release
2011-07-09 14:45:19 -07:00
Mike Bostock
3c8fabbd65
Merge branch 'release'
2011-07-08 22:44:41 -07:00
Mike Bostock
b788ac710f
Merge branch 'force-distance' into release
2011-07-08 22:43:05 -07:00
Mike Bostock
629b13d806
Merge @ignacioola's fix.
2011-07-08 22:42:26 -07:00
Mike Bostock
4cb00f4e92
Add force-directed map example.
2011-07-08 22:39:34 -07:00
Mike Bostock
5c0d8651da
Fix offset when dragging large nodes.
2011-07-08 22:39:08 -07:00
Jason Davies
7f8db7fd14
Remove force.gravityCenter.
...
Simpler to perform gravity calculations in a custom tick handler.
2011-07-09 00:24:17 +01:00
Jason Davies
ca8870778a
Add per-node gravity: force.gravityCenter.
...
This allows the Dorling/Demers cartograms to be slightly closer to the real
geography.
Also, fix the Dorling collision detection as self-collisions were previously
being detected. Thanks, Mike!
Lastly, I've removed the variable per-link distance as this is no longer needed.
2011-07-08 23:23:50 +01:00
Jason Davies
287b2ea59e
Add strokes to Dorling and Demers cartograms.
2011-07-08 22:55:23 +01:00
Jason Davies
9f0e6271f9
Add Demers cartogram example.
...
Like a Dorling cartogram, but with squares instead of circles.
2011-07-08 22:41:01 +01:00
Jason Davies
564418ff62
Nicer colors for Dorling cartogram.
2011-07-08 22:19:28 +01:00
Jason Davies
bb5d7873a7
Use collision detection for Dorling cartogram.
2011-07-08 22:11:49 +01:00
Jason Davies
679d816dfd
Initial version of Dorling cartogram example.
...
This version uses variable-length links, but I think collision detection
performed after initial positioning at state centroids would look better.
2011-07-08 21:55:31 +01:00
Jason Davies
71490ced64
Add missing force.linkStrength property.
...
Also update examples to use force.linkDistance instead of force.distance.
2011-07-08 21:23:41 +01:00
Jason Davies
6a40609624
Add variable link strength (alpha) to force layout.
...
Also, rename force.distance to force.linkDistance, but keep force.distance as an
alias for backwards-compatibility.
Fixes #211 .
2011-07-08 21:20:38 +01:00
Jason Davies
210fb82616
Replace "new Array" with "[]".
...
See <http://jsperf.com/new-array-vs-literal/8 >.
2011-07-08 21:11:34 +01:00
Jason Davies
d5eac02d56
Add variable link distance to force layout.
...
See: #211 .
2011-07-08 20:58:43 +01:00
Ignacio
9b52078894
zoom bug: function and var with same name
2011-07-07 12:47:36 -03:00
Jason Davies
fe11bc6493
Remove dangling d3.stats.js reference.
2011-07-06 23:19:45 +01:00
Jason Davies
2e765ae60e
Move data files and delete symlinks.
2011-07-06 20:29:48 +01:00
Jason Davies
7c461b2205
Merge branch 'master' into kde
...
Conflicts:
Makefile
d3.js
d3.min.js
src/core/sum.js
2011-07-06 19:54:58 +01:00
Jason Davies
d9b98e282c
Remove old stats test references from Makefile.
2011-07-06 19:52:32 +01:00
Jason Davies
e0a0455f7b
Move d3.stats to external lib, science.stats.js!
2011-07-06 18:57:14 +01:00
Mike Bostock
489eb0cde7
Delete symlinks.
2011-07-04 09:43:37 -07:00
Mike Bostock
1104e6fd83
Move flare-imports.json to the data folder.
2011-07-04 09:41:32 -07:00
Mike Bostock
b6983951e1
Merge branch 'master' of https://github.com/jmalonzo/d3 into jmalonzo-master
2011-07-04 09:38:25 -07:00
Jan Alonzo
598cd6a08c
Update cartogram/choropleth symlink to point to examples/data.
...
Related: 6bdbe4b863
2011-07-04 17:05:56 +10:00
Mike Bostock
1e64727eca
Prettier colors.
2011-07-03 07:59:09 -07:00
Mike Bostock
6e972732d8
Add force toggle example.
2011-07-03 07:46:07 -07:00
Mike Bostock
94e20f74f8
Merge branch 'hierarchy'
2011-07-02 17:16:57 -07:00
Mike Bostock
0696bf089f
Backwards-compatibility for inlining.
...
There's now a new API for invoking the hierarchy layout (hierarchy.nodes) rather
than calling the layout function directly. Calling the new API enables inlining,
which is disabled by default for backwards-compatibility.
2011-07-02 17:14:34 -07:00
Mike Bostock
4bf829f46f
Add expandable tree.
2011-07-02 16:38:00 -07:00
Mike Bostock
70b9f51ba4
Fix interrupted transitions.
2011-07-02 16:36:59 -07:00
Mike Bostock
6bdbe4b863
Move data files into examples directory.
...
This way, we don't need symlinks (which don't work on Windows). This commit also
simplifies the structure of the flare.json file, so that we don't need to tricky
conversion of the JSON map—it can be read directly by the hierarchy layout.
2011-07-02 16:31:12 -07:00
Mike Bostock
bd505a22a9
Remove `inline` property, making it the default.
2011-07-02 15:59:19 -07:00
Mike Bostock
2773cd9f27
Adopt inline(true) for all hierarchy examples.
...
The ones with transitions were a bit trickier, because they depended on the
layout creating new copy of the nodes when the layout runs.
2011-07-02 15:49:50 -07:00
Mike Bostock
7f5fa42adc
Add `inline` property to hierarchy layout.
...
This allows you to disable the default behavior which wraps the input data. I am
investigating whether we can disable automatic wrapping, which causes confusion
between "data" and "nodes".
2011-07-02 14:49:31 -07:00
Mike Bostock
a42e4e14ad
Merge branch 'vtstarin-master'
2011-07-02 08:49:05 -07:00
Mike Bostock
8dcbe9e2dc
Merge branch 'master' of https://github.com/vtstarin/d3 into vtstarin-master
2011-07-02 08:48:16 -07:00
Mike Bostock
96710b4aa8
Add d3.first and d3.last.
...
These are like d3.min and d3.max, but a bit more flexible for determing the
lowest or highest element in a given array.
2011-06-29 18:50:42 -07:00
Mike Bostock
35fb91d16f
Allow quadtree to be built dynamically.
...
You can now specify the domain of the quadtree upon construction, such that you
can add points to the quadtree dynamically later. The quadtree example now also
shows how to do a quick rectangular search using the quadtree.
2011-06-28 13:27:03 -07:00
vtstarin
6b9d0337a5
removing trailing commas inside object
2011-06-28 08:36:59 +09:30
Nathan Vander Wilt
f74ccb9243
make `make` work
2011-06-25 17:31:02 -07:00
Mike Bostock
e2cedca817
Better stroke colors.
2011-06-25 13:26:32 -07:00
Mike Bostock
a0fd9853f5
Always use the larger value for chord sources.
2011-06-25 10:48:31 -07:00
Mike Bostock
b14b441f55
Add flare dependency chord diagram.
2011-06-25 10:41:38 -07:00
Mike Bostock
7927a5739a
Merge branch 'release'
2011-06-23 20:52:17 -07:00