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

381 Коммитов

Автор SHA1 Сообщение Дата
Jason Davies 0270071984 Merge remote branch 'mbostock/boid' into boid 2011-06-12 21:13:43 +01:00
Mike Bostock 24431337d7 Add force multi-foci example. 2011-06-12 13:11:48 -07:00
Mike Bostock fe9ed1bd1d Color voronoi cells by area. 2011-06-12 12:59:02 -07:00
Jason Davies a8bc56d914 U.S. spelling for consistency. 2011-06-12 20:42:36 +01:00
Jason Davies 3d3ac3b147 Add "boid" flocking: d3.ai.boid().
Includes interactive "voroboids" example!
2011-06-12 20:09:15 +01:00
Mike Bostock 9bf55832ea Minor tweak. 2011-06-11 17:15:35 -07:00
Mike Bostock 54031e1363 Add superformula explorer. 2011-06-11 16:59:42 -07:00
Mike Bostock acdc72799e Relocate superformula dot example. 2011-06-11 13:00:28 -07:00
Mike Bostock 920d980b3b Move d3.svg.superformula into an example.
This way, people can play with superformulas if they want them, but we keep the
core library small. If we want to replace the default symbol implementation with
superformulas in the future, we can do that too. For now, be conservative.
2011-06-11 12:54:44 -07:00
Mike Bostock 852ac949d2 Merge branch 'master' into superformula 2011-06-11 12:49:22 -07:00
Mike Bostock d756caa0d8 Simplify subclassing of hierarchy layout.
The subclasses can't use the same object as the parent class, because they are
functions. But, there's no reason to duplicate the code that rebinds the methods
onto the subclass.
2011-06-11 11:31:42 -07:00
Mike Bostock 96837e4d0d Add title. 2011-06-06 22:50:10 -07:00
Mike Bostock bfa1a6e48f Add d3.svg.superformula. 2011-06-06 22:38:08 -07:00
Jason Davies e8b7177396 Extract stats code from Q-Q example. 2011-06-06 09:12:32 +01:00
Mike Bostock 953bebb17c Add zoomable icicle & sunburst. 2011-06-02 23:25:28 -07:00
Mike Bostock d68551b59b Add Marimekko chart example. 2011-06-02 12:17:41 -07:00
Mike Bostock a1cc8cbef2 Merge branch 'master' into azimuthal 2011-05-30 09:29:34 -07:00
Mike Bostock e2fc8bfe52 Merge branch 'master' into azimuthal 2011-05-28 22:57:18 -07:00
Mike Bostock b9eff658a3 Stereographic & orthographic projections!
These now have arbitrary origins, as well. Still need to clip, though.
2011-05-28 00:13:53 -07:00
Mike Bostock 0eb59e7c98 Merge branch 'horizon' into release 2011-05-27 14:58:06 -07:00
Mike Bostock 16c40a1b3e Merge remote-tracking branch 'jasondavies/new-parens' into release 2011-05-27 14:54:15 -07:00
Mike Bostock 98ef2d185f Prefer style over attr. 2011-05-26 21:15:28 -07:00
Mike Bostock c75ebe10a9 Transitions for horizon bands! 2011-05-26 00:10:14 -07:00
Jason Davies 02b478367a Dynamic force example: Safari/multi-touch support.
For some reason Safari wasn't capturing `mousemove` events on the <svg> element
unless a suitable <rect> was added.
2011-05-23 21:09:04 +01:00
Jason Davies 5f03fa2276 Merge branch 'mbostock-master' into kde
Add missing `d3.sum` source file too.

Conflicts:
	Makefile
	d3.chart.min.js
	d3.js
	d3.min.js
2011-05-23 09:45:34 +01:00
Mike Bostock a15165398d 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).
2011-05-22 11:26:46 -07:00
Jason Davies 3941be193a Remove extraneous parentheses from `new` operator.
Parentheses are optional if there are no arguments.
2011-05-22 10:22:28 +01:00
Mike Bostock ce52261abf Default bins using Sturges' formula. 2011-05-21 16:56:12 -07:00
Mike Bostock 08a5aa383f 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].
2011-05-21 16:38:29 -07:00
Mike Bostock 6ba3097766 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).
2011-05-21 12:56:06 -07:00
Jason Davies 5e606729a4 Add reusable horizon chart.
Still to do: support negative values (offset or mirror modes).

Fixes #152.
2011-05-21 10:24:23 +01:00
Mike Bostock a5d46990c6 Merge branch 'master' into histogram 2011-05-20 16:31:51 -07:00
Jason Davies 987755b01e Updates. 2011-05-14 18:58:30 +01:00
Mike Bostock 4c998ba2cc Propagate touch identifier in d3.svg.touches.
Also, add a fun little example demonstrating multi-touch.
2011-05-12 11:54:38 -07:00
Jason Davies 4898052101 Add bandwidth selectors for Gaussian kernels.
Thanks @jfirebaugh for the suggestion!  Implementation is based on that of R's
stats module:
<http://stat.ethz.ch/R-manual/R-patched/library/stats/html/bandwidth.html>

This brings a few additional operators to `d3.stats`, including a fairly
rudimentary implementation of variance, discussed at
<http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Two-pass_algorithm>.
2011-05-10 19:06:24 +01:00
Mike Bostock 5259ee9dc4 Merge branch 'histogram' into kde 2011-05-09 20:32:27 -07:00
Jason Davies 7c533d26cc Add kernel density estimation.
Kernel density estimation is provided via `d3.stats.kde` and the kernel is
configurable; several common kernels are provided in `d3.stats.kernel`.
2011-05-10 00:11:31 +01:00
Mike Bostock e1c6c74f70 Merge branch '===' into release 2011-05-07 16:42:59 -07:00
Mike Bostock b1b6b14143 Merge branch 'monotone' into release 2011-05-07 16:34:01 -07:00
Mike Bostock 86a4f6fa3d Merge remote-tracking branch 'jasondavies/histogram' into histogram 2011-05-02 18:51:36 -07:00
Mike Bostock a3aebbad56 Merge remote-tracking branch 'jasondavies/monotone' into basis 2011-05-02 18:46:08 -07:00
Mike Bostock a0d4d0bd8e Add cardinal-open interpolation. 2011-05-02 18:42:39 -07:00
Mike Bostock d1c406f43c Add basis-open interpolation. 2011-05-02 17:11:44 -07:00
Jason Davies ae5123f84b Add monotone interpolation for lines and areas.
Based on the Protovis implementation.
2011-05-02 09:13:52 +01:00
Jason Davies 0f2846ef17 Add doctype to all examples for consistency. 2011-05-02 00:15:09 +01:00
Jason Davies 48a40eccea Add histogram layout. 2011-05-02 00:04:06 +01: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 71622b7cdb Improvements to qq chart. 2011-04-30 21:16:58 -07:00
Mike Bostock 1eaff450d5 Merge branch 'jasondavies-spline-editor'
* jasondavies-spline-editor:
  Minor improvements to spline example.
  Simplify path handling.
  Bind mouse event handlers to window.
  Move spline editor to standalone directory.
  Add spline editor example.
2011-04-30 16:50:45 -07:00
Mike Bostock 5069739b0a Minor improvements to spline example. 2011-04-30 16:47:38 -07:00
Mike Bostock 7c1530fd41 Merge branch 'jasondavies-sort'
* jasondavies-sort:
  Sort example improvements.
  Add parallel option to merge sort example.
  Add animated merge sort example.
2011-04-30 15:58:56 -07:00
Mike Bostock a92535ce8b Sort example improvements.
Simplify the implementation of parallel merge-sort, so that we have one pass per
swap across chunks. Use a data join so that the elements are translated rather
than rotated, since this better conveys the underlying sort. Auto-play the
animation in parallel, and restart a few seconds after it finishes.
2011-04-30 15:56:03 -07:00
Mike Bostock 93ac0c0b14 Add pixelbreaker link. 2011-04-30 13:19:28 -07:00
Mike Bostock c293fde197 Prettify clock example. 2011-04-30 13:13:51 -07:00
Jason Davies 392bcab8f8 Add polar clock example. 2011-04-30 00:19:42 +01:00
Jason Davies f049cb0eaf Add parallel option to merge sort example.
This simply shows the merges happening in parallel.
2011-04-29 16:09:56 +01:00
Jason Davies 249c4f2f0f Add animated merge sort example.
Inspired by the phrase "reminiscent of wind gusting over tall grasses" in
<http://vis.stanford.edu/protovis/ex/sort.html>.

It seemed abominable not to animate the swaying tall grasses!
2011-04-29 15:14:55 +01:00
Jason Davies 1c2546050f Simplify path handling.
There will always be a single <path> element, so no need to handle enter, update
and exit cases.  WebKit seems to erroneously warn (in the error console) that it
can't parse `d=""`.  I can't see anything in the SVG spec disallowing an empty
`d` attribute so I think this is safe to ignore.
2011-04-29 10:14:15 +01:00
Jason Davies 3e72f75f3e Bind mouse event handlers to window.
This produces much nicer behaviour when the mouse dragged outside the <svg>'s
area.  Thanks, Mike!
2011-04-29 10:02:28 +01:00
Jason Davies de1e679cfc Move spline editor to standalone directory.
I've dropped path transitions on Mike's recommendation as D3 doesn't have smart
path interpolation at the moment so they don't work too well.

I've also fixed some issues with data joins.
2011-04-27 21:11:55 +01:00
Jason Davies beb53fe035 Add spline editor example. 2011-04-27 12:20:29 +01:00
Square 3502c5fdf5 Tweak force-dynamic example. 2011-04-26 17:19:43 -07:00
Square f9d0d423f0 Tweak parameters for force example. 2011-04-26 15:50:22 -07:00
Jason Davies 07674c286f Add x- and y-scales to Q-Q plot. 2011-04-25 12:59:11 +01:00
Jason Davies f216c18db8 Rename "stereographic" -> "azimuthal".
The aim is to support azimuthal stereographic as one possible azimuthal
projection.  Others are listed here:
http://www.progonos.com/furuti/MapProj/Dither/ProjAz/projAz.html
2011-04-25 12:14:47 +01:00
Jason Davies 82153e60b5 Add Q-Q plot. 2011-04-25 11:44:34 +01:00
Jason Davies 8e3f8104ad Merge branch 'mbostock-master'
Conflicts:
	d3.geo.min.js
2011-04-22 22:28:03 +01:00
Mike Bostock 83cb0f09f5 Fix simulation restarting.
If the simulation cools and stops, we need to restart it, rather than just
resetting the alpha parameter. So, it is useful to have both `resume` and
`start` methods on the force layout. This commit also fixes a bug where
mousedown events on draggable nodes would continue to propagate, interfering
with other events (such as clicking to add a node).
2011-04-19 18:02:19 -07:00
Mike Bostock 6804b1c86c Better force layout for dynamic graphs.
You can now register the "drag" behavior on nodes multiple times, and the
correct behavior will result. In addition, the gravitational force now handles
coincident nodes, computing a small random force to separate the nodes rather
than setting the position to NaN.

To demonstrate the new support for dynamic graphs, this commit includes a fun
example where you can click to add new nodes. Any existing nodes within a fixed
distance to the cursor on click will be linked to the new node.
2011-04-19 13:47:19 -07:00
Mike Bostock 7abebefe1e Better center gravity.
Rather than applying gravity to the entire graph, we now apply it to individual
nodes, such that disconnected nodes and subgraphs still have a tendency to drift
towards the center. In addition, rather than using a standard gravitational
force that drops quadratically with distance, we use a weak spring who force
increases with distance. This makes the gravitational effect less noticeable
near the center, and also makes the effect stronger the more the nodes drift
from the center. To balance the center "gravity" with the repulsive charge
force, we also normalize the strength of the gravity based on the number of
nodes in the graph.
2011-04-19 13:03:41 -07:00
Mike Bostock fd804ce47f Better force layout.
Use Barnes-Hut criterion (a fast multipole method) for approximating repulsive
charge forces between nodes. This replaces the previous approach using Floyd-
Warshall to compute the graph theoretic distance between all nodes, eliminating
O(n^3) initialization time. Additionally, the charge force is now O(n lg n) per
iteration rather than O(n^2).

Using the center of mass of the graph, apply gravitional attraction towards the
graph center (based on the layout size). This encourages the graph to stay near
the center rather than drifting away.
2011-04-19 12:39:37 -07:00
Mike Bostock 587b1bb494 Use x+y objects for quadtree points.
This makes the quadtree implementation more compatible with the force layout.
This change is backwards-compatible; if the points are not specified as x+y
objects, they are assumed to be tuples and converted to objects.
2011-04-19 12:19:04 -07:00
Mike Bostock 43e2ccca41 Fix fill color for iOS. 2011-04-14 16:53:33 -07:00
Jason Davies df01727c63 Add some more strict equality checks. 2011-04-14 23:23:53 +01:00
Mike Bostock f028aa00d9 Add bubble chart example. 2011-04-14 14:20:07 -07:00
Mike Bostock de3d1c1a6c Remove examples/index.html.
This is no longer needed, as Python's SimpleHTTPServer does directory listing.
2011-04-13 23:59:15 -07:00
Mike Bostock d4e571eb88 Replace flare.json's with symlinks. 2011-04-13 23:58:46 -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 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 8d7bd91080 Add `links` methods to cluster & tree.
This method can be used to generate an array of parent+child objects for a given
array of nodes. This is convenient for drawing paths from parent to child in
node-link diagrams.
2011-04-13 22:41:30 -07:00
Mike Bostock 60b6a3d2e5 Simplify cluster layout.
The `cluster` layout is now more similar to the `tree` layout, using a
separation function rather than a group property. In addition, the breadth and
depth properties are replaced with x and y, respectively, and scaled according
to the size of the layout.

I've updated the examples to make them more consistent, as well, including the
pretty Bézier curves. In a future commit I'd like to take some of the duplicate
code in the examples and move that into reusable methods.
2011-04-13 22:04:11 -07:00
Mike Bostock c29d4dc1a7 Better box chart transitions.
Preserving object constancy across transitions is tricky! For example, what
happens if we remove the whiskers in a transition? How do we join outliers? This
commit makes a few assumptions explicit:

1. The `quartiles` function must return exactly three elements. This property
must be specified as a function.

2. The `whiskers` function must return exactly 2 elements, or null if no
whiskers are to be displayed. This property must be specified as a function.

3. The `domain` function must return exactly 2 elements, or null if the default
domain should be used. This property can be specified either as a constant or as
a function.

We could generalize this chart to support more than two whiskers, but it doesn't
seem urgent, and it would complicate the transition if the number of whiskers
changes. In a related change, the `whiskers` function does not receive a third
argument containing the quartiles; instead, this is made available by the
`quartiles` property on the values array (the first argument).

The outliers are joined using the `Number` key function. The outlier data is now
stored as indices; this allows reasonable object constancy across transitions
with outliers. Similarly, the tick labels for the quartiles are whiskers are now
separated, such that the whisker labels can be added or removed without spurious
transition.
2011-04-13 17:44:20 -07:00
Jason Davies 12663738d9 Fix quartile calculation.
The outliers were being incorrectly excluded when computing the quartiles.  I've
also added a +/-1.5 IQR whiskers computation for the Morley-Michelson example,
so it replicates the R plot exactly.
2011-04-13 23:40:00 +01:00
Jason Davies f9569c5aac Minor optimisations. 2011-04-13 23:27:52 +01:00
Jason Davies a7b3c3265c Remove unused title svg:g. 2011-04-13 23:20:16 +01:00
Jason Davies 3477764db0 Fix randomize button. 2011-04-13 23:16:10 +01:00
Jason Davies 6c8cef1eef Add Michelson-Morley data for box plot example.
Source: R statistical project
Original source: A. J. Weekes (1986) A Genstat Primer. London: Edward Arnold.
2011-04-13 23:12:18 +01:00
Jason Davies 88eabf1969 Continue renaming "boxplot" to "box". 2011-04-13 22:33:15 +01:00
Jason Davies 0b8aa07ed2 Rename "boxplot" to "box". 2011-04-13 22:31:53 +01:00
Jason Davies d288e69016 Remove `outlierSymbol` property.
Circles are simpler.
2011-04-13 22:27:25 +01:00
Jason Davies 9721e6f045 Display outliers.
The symbol can be specified using the `outlierSymbol` property, which specifies
the `d` attribute for an SVG path.
2011-04-13 21:59:37 +01:00
Jason Davies 755529dba8 Add `whiskers` property to box plot.
This specifies a function that takes the sorted data array, and returns an array
of datum positions that should marked with whiskers.  The default implementation
is to return `[0, length-1]` i.e. the minimum and maximum.

Data outside of the whiskers are considered outliers, and are not included in
the quartile calculation.
2011-04-13 21:23:49 +01:00
Jason Davies 2e8cd200df Add boxplot chart. 2011-04-13 19:57:57 +01:00
Mike Bostock 776f332af6 More pretty Béziers. 2011-04-11 13:52:21 -07:00
Mike Bostock 0ca148d37e Add pretty Bézier curves. 2011-04-11 13:22:24 -07:00
Mike Bostock c5c6614d9e Simplify pack layout.
The pack layout now sorts nodes by ascending value by default. The `radius`
property is removed, as the radius is always computed from the node value. The
`spacing` property is also removed; it doesn't seem particularly useful. The
`radius` property is renamed to `r` to match `x` and `y`.

I also optimized the implementation slightly, and namespaced temporary state
under the prefix `_pack_`.
2011-04-11 12:44:17 -07:00
Jason Davies 5ef525385a Add cluster-radial to examples index. 2011-04-11 11:25:19 +01:00
Jason Davies 6ebe9e5779 Add cluster (dendogram) layout.
Based on the Protovis version.  The only difference is that I've dropped
the `orient`, `innerRadius` and `outerRadius` properties so that the D3
version is more flexible.
2011-04-11 11:19:59 +01:00
Jason Davies ccfbb06729 Add circle-packing layout.
Based on the Protovis layout.  I've kept the convention of using `size`
for the width/height and `separation` for the spacing.  The Protovis
layout had a `size` property but this was used to compute the radius.
I've left this out as I've assumed it's straightforward enough to pass
in the appropriate `radius` function instead.  Likewise, I think the
existing hierarchy `sort` property can handle situations that `order`
was intended for in the Protovis version.
2011-04-11 10:01:11 +01:00
Mike Bostock 9f71e4e211 Fix a bug in cardinal-closed interpolation. 2011-04-10 23:26:35 -07:00
Mike Bostock ca3585ec97 Move tree examples into div#chart. 2011-04-10 18:59:41 -07:00
Mike Bostock 597443b3b0 Rotate text by 180 when upside-down. 2011-04-10 18:37:23 -07:00
Mike Bostock 2c03029045 Compute wrap-around separation. 2011-04-10 13:56:34 -07:00
Mike Bostock 7151746fbe Add tree-radial example. 2011-04-10 13:29:32 -07:00
Mike Bostock 0c88813f56 Generalizing tree layout.
Rather than specifying an orientation, compute the layout in normalized space. In a future change,
I'd also like to clean up the temporary state that is stored on tree nodes, and record dx and dy
attributes per node that could be used to compute a space-filling layout.
2011-04-10 12:07:17 -07:00
Mike Bostock dfd0ad354d Render links below nodes and labels. 2011-04-10 10:45:51 -07:00
Jason Davies f208a5be09 Add Reingold-Tilford tree layout.
This is based on the Protovis layout; virtually no changes were needed
to the code aside from handling of previous and next siblings.
2011-04-10 16:20:51 +01: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 d9d85f0e03 No initial transition. 2011-04-09 13:00:38 -07:00
Mike Bostock 40be541c4c Restructure bullet chart example. 2011-04-09 12:38:48 -07:00
Jason Davies ef7b5ccb3c Push bullet chart state into ticks element data.
This means chart state (the original x-scale) is no longer bound to the
chart instance, so a single instance can be reused on multiple elements.
2011-04-09 16:41:26 +01:00
Michael Bostock e8b345d0f8 Make randomizer a bit more exciting. 2011-04-08 16:42:43 -07:00
Michael Bostock 448b72622c Rename var. 2011-04-08 16:36:16 -07:00
Michael Bostock 17259b94ff Add another bullet example.
This example shows how to preserve scales across multiples using a single chart
instance, as opposed to bullet-multiples which uses distinct chart instances to
supply separate scales. I still think it'd be better to use a single chart
instance in both cases, but then I need a different place to hide the scale
state.
2011-04-08 16:03:01 -07:00
Michael Bostock 4fda3a3ebf Use separate charts for bullet-multiples.
This way, we get separate scales for the small multiples, which makes sense
given our data. However, I'm not totally convinced this is the right way to
implement separate scales, because it's a bit awkward to create separate chart
instances that look identical. Also, it's unfortunate that the charts are
stateful; it'd be better to somehow store the scale as data on the nodes, so
that chart specifications could be more easily reused. Then, there might be a
method to fix the domain rather than computing the domain per-chart.
2011-04-08 15:46:14 -07:00
Michael Bostock 33260423a3 Extract title & subtitle from bullet chart.
It's nice, but I think it's a bit more flexible to not have it as part of the
chart specification. This way, people can define titles however they like. It
might be nice to take a similar approach with reference ticks in the future.
2011-04-08 14:40:29 -07:00
Jason Davies 598f47e1c9 Simplify bullet charts as per Mike's suggestions. 2011-04-08 18:37:59 +01:00
Jason Davies 0f82a4d047 Simplify bullet multiples example.
Thanks Mike!
2011-04-08 18:25:08 +01:00
Jason Davies 21c7ec3c26 Bullet charts: title and subtitle support. 2011-04-08 11:24:51 +01:00
Jason Davies 202205fa5e Add some missing semicolons. 2011-04-08 10:56:41 +01:00
Jason Davies 6aba18bc61 Bullet charts: support for "right" orientation. 2011-04-08 10:54:12 +01:00
Michael Bostock 1b1a9485cb Bullet chart transitions.
We now preserve object constancy for ticks across transitions. By caching a
reference to the previous x-scale, we can initialize entering objects in the
correct location, then transition them to the new scale as they fade in. Also,
we use the `map` operator to convert the data to a standard representation that
is suitable for the bullet chart, and compute derivate data needed across
multiples.
2011-04-07 16:57:33 -07:00
Jason Davies 34ffbbf1d0 Define bullet chart duration as property. 2011-04-07 22:36:25 +01:00
Jason Davies 34a055adc4 Add optional duration for bullet chart transitions. 2011-04-07 22:29:04 +01:00
Jason Davies 28c54a822f Bullet charts: support dynamic data. 2011-04-07 19:32:48 +01:00
Jason Davies 0e54ee835d Remove extraneous CSS styles from bullet example. 2011-04-07 19:05:15 +01:00
Jason Davies 73de44469b Add example and fixes for bullet multiples. 2011-04-07 18:54:31 +01:00
Jason Davies 344d7da26d Use bound data for bullet chart.
As per Mike's suggestion.
2011-04-07 18:39:35 +01:00
Jason Davies edf75a3c36 Move bullet to new `chart` module. 2011-04-07 17:54:03 +01:00
Jason Davies b08ecad5ed Replace percentages with width/height properties.
Percentages were too tricky for adding margins.
2011-04-06 20:49:15 +01:00
Jason Davies c85195b14b Use percentages for simpler flexibility. 2011-04-06 20:16:12 +01:00
Jason Davies 28fbabf768 First stab at bullet layout. 2011-04-06 19:47:55 +01:00
Michael Bostock b6ec18374b Add some color. 2011-04-01 12:08:37 -07:00
Michael Bostock b49c878e1c Delete examples/__main__.py. 2011-03-30 09:07:08 -07:00
Michael Bostock 286e3d2b06 Merge branch 'examples_index_filename' of https://github.com/jasondavies/d3 into jasondavies-examples_index_filename 2011-03-30 02:59:24 -07:00
Jason Davies 3b2a08a77a Default filename `index.html` for examples server. 2011-03-30 10:32:09 +01:00
Michael Bostock 99c2580971 Obesity data for cartogram. 2011-03-29 14:57:01 -07:00
Michael Bostock 937529eff3 Merge branch 'jasondavies-ie9_xhr' 2011-03-15 09:24:45 -07:00
Michael Bostock 5f4e950002 Sticky treemap layouts!
The treemap layout can now be set to "sticky" mode, which preserves the row
arrangements from an earlier layout. This is particularly handy for animating
treemaps, as it avoids the temporary occlusion as nodes swap positions. Thanks
to @philogb and the New York Times for the inspiration!
2011-03-14 23:39:11 -07:00
Michael Bostock aa0b9f8c3e Restructure sunburst example. 2011-03-12 22:08:17 -08:00
Mike Bostock a00c9a5631 Simplify interpolator slightly. 2011-03-12 21:20:41 -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
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
Michael Bostock 2ace7e6814 Merge branch 'master' into mbostock-master 2011-03-12 09:03:06 -08:00
Jason Davies d26d03439c Merge branch 'master' of http://github.com/mbostock/d3 2011-03-12 00:32:37 +00:00
Michael Bostock 11cea2e332 Merge branch 'master' of github.com:mbostock/d3 2011-03-11 11:40:24 -08:00
Michael Bostock 7c7be4b17c Use linear gradient rather than image. 2011-03-11 11:39:11 -08:00
Mike Bostock 42237509de Display calendar immediately; color on data. 2011-03-10 11:55:26 -08:00
Michael Bostock 4bf129f49e Use localhost rather than 0.0.0.0. 2011-03-09 09:28:21 -08:00