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

794 Коммитов

Автор SHA1 Сообщение Дата
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
Mike Bostock 779de6e93e Merge branch 'area' into release 2011-06-23 20:50:36 -07:00
Mike Bostock eac8831208 Add d3.svg.area.radial. 2011-06-23 20:49:33 -07:00
Mike Bostock 9619d87953 Merge branch 'bundle' into area 2011-06-23 20:17:06 -07:00
Mike Bostock 906e7eefc3 Add x0 & x1 accessors to d3.svg.area.
Thanks for the inspiration, @strongh!
2011-06-23 20:03:27 -07:00
Mike Bostock b5465489e7 Merge remote-tracking branch 'jasondavies/area' into area 2011-06-23 19:53:28 -07:00
Mike Bostock 886c4db94d Use a constant for the default y0. 2011-06-23 19:52:09 -07:00
Mike Bostock 2eba032040 Refactor ticks implementation.
This commit adds a new static function for computing the extent (min and max) of
a scale's domain, simplifying the logic in the ticks functions and ensuring
standard behavior (such as repeated values). Also, the linear ticks function is
extracted for reuse by the pow scale.

I opted not to reverse the tick order for descending domains; this might be nice
but it doesn't seem required, so we might as well keep the code small.
2011-06-23 19:45:23 -07:00
Mike Bostock cb3ffebc89 Replace basis+beta with bundle+tension.
There's already a tension parameter, and it seems reasonable to overload this
parameter (originally intended for cardinal splines) to also apply to bundle
splines. The new "bundle" interpolation is identical to "basis" interpolation;
the only difference is that the tension parameter is used to straighten the
basis spline.
2011-06-23 11:28:55 -07:00
Mike Bostock b7fde1118c Update comments for clarity. 2011-06-23 10:40:39 -07:00
Mike Bostock a934fd0511 Extract duplicate code from bundle examples. 2011-06-22 17:09:31 -07:00
Mike Bostock 641ccf18c3 Rename bundle.css. 2011-06-22 16:49:01 -07:00
Mike Bostock 2069d26e1a Simplify mouseover interaction. 2011-06-22 16:42:14 -07:00
Mike Bostock 96a565e314 Add d3.svg.diagonal.radial. 2011-06-22 14:33:34 -07:00
Mike Bostock e60ac77e25 Add d3.svg.line.radial. 2011-06-22 13:17:18 -07:00
Jason Davies 9915e30d9c Listen for "mousemove" on window.
I think this gives a better experience on big monitors. :-) I've also used
d3.timer to update the paths in case there is a backlog of mousemove events.
I'm not sure this is necessary but in testing on a fast machine sometimes it
processes two mousemove events and only draws the most recent one with this
change.
2011-06-22 20:03:49 +01:00
Jason Davies 4efd99f6be Revert "Use approximate sin/cos for faster interpolation."
This reverts commit c5450fa62a.

It turns out this approximation is not that much faster than Math.{sin,cos}; I
think the perceived performance is more related to the responsiveness to the
"mousemove" event.
2011-06-22 19:54:43 +01:00
Jason Davies c5450fa62a Use approximate sin/cos for faster interpolation.
This particular approximation is taken from
<http://www.devmaster.net/forums/showthread.php?t=5784> but there may well be
better ones out there.  This seems to work nicely though!
2011-06-22 18:56:58 +01:00
Mike Bostock 5f41452ed2 Change bundle strength on mousemove. 2011-06-22 10:25:57 -07:00
Mike Bostock 0aba0702a5 Hierarchical edge bundling improvements.
The input to the layout is now an array of edges to bundle, rather than nodes.
This eliminates the need for an `outgoing` accessor, since the links are passed
to the bundle layout directly.

The svg line generator now supports a beta (straightening; bundle strength)
parameter. I haven't decided if this is the right place or the right name for
it, but it seems like a reasonable starting point. I'm not happy with the cos &
sin needed to produce radial lines (both here and for the diagonal projection in
other examples), but I don't have a good alternative yet.

This commit also tries to make the construction of the links from the layout
nodes a bit easier to follow. The previous code was used another intermediate
representation, and I think it's cleaner to construct the default format
expected by the layouts. However, there's still a good chunk of code required to
massage the JSON format into a node hierarchy and array of dependencies, so I'd
like to find a way to simplify that, too.
2011-06-22 09:46:52 -07:00
Jason Davies 65a2370526 Make d3.layout.bundle layout-independent.
I've included an example of using it with treemaps.
2011-06-22 09:11:23 +01:00
Jason Davies 209a020114 Add ticks tests for pow scale. 2011-06-18 11:19:06 +01:00