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

381 Коммитов

Автор SHA1 Сообщение Дата
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
Jason Davies 87adc077b9 Merge branch 'master' of http://github.com/mbostock/d3 2011-03-04 23:55:42 +00:00
Michael Bostock 31c47f8f99 Tiny simplification. 2011-03-03 16:01:18 -08:00
Michael Bostock 36e935a8c8 Add force & treemap to d3.layout. 2011-03-03 15:43:57 -08:00
Michael Bostock 3cfb007d9d Add proper rounding to treemap layout! 2011-03-03 14:20:18 -08:00
Jason Davies 92ad7c065c Add polar stereographic projection 2011-03-02 21:10:32 +00:00
Michael Bostock 125ea93b63 Make force-directed graphs draggable. 2011-02-28 17:02:58 -08:00
Michael Bostock 32c06207a2 Merge branch 'master' of github.com:mbostock/d3 2011-02-28 15:05:37 -08:00
Michael Bostock 6b8839eab6 Add treemap example.
Still a work in progress. Need to decide on the appropriate API for representing
tree structures; not sure I want to go the heavyweight pv.dom route. May also
need rounding to exact pixel values.
2011-02-28 15:04:20 -08:00
Mike Bostock 07fe0f5d90 Restructure cartogram example. 2011-02-28 10:12:25 -08:00
Mike Bostock 99b4f2ec30 Turn off shape-rendering: crispEdges. 2011-02-27 18:34:47 -08:00
Mike Bostock ced7b7242b Better force-directed layout.
Use the Floyd-Warshall algorithm to compute the shortest path between nodes, and
use that graph theoretic distance as the distance constraint for the Gauss-
Seidel relaxation. In addition, have the constraint alpha decay over time, as in
Simulated Annealing.
2011-02-27 18:22:23 -08:00
Michael Bostock 62ef98e817 Restructure voronoi example. 2011-02-27 13:05:55 -08:00
Michael Bostock b8cc4c9708 Restructure stack and stream examples. 2011-02-27 13:03:00 -08:00
Michael Bostock 85de0bed70 Fix vertical offset in calendar example. 2011-02-27 12:36:11 -08:00
Michael Bostock 8a00d72850 Resize chord example. 2011-02-27 12:33:02 -08:00
Michael Bostock 127ecdea25 Restructure splom example. 2011-02-27 12:21:11 -08:00
Michael Bostock 7b1df15bfe Restructure force example. 2011-02-27 12:09:27 -08:00
Michael Bostock 6363881923 Resize a few examples. 2011-02-27 11:56:25 -08:00
Michael Bostock aa69f20936 Restructure choropleth example. 2011-02-25 20:51:05 -08:00
Michael Bostock a29c802a77 Sort for layout, but don't reorder.
This fixes a bug in the pie layout sorting where we want the sort order to
affect the layout, but not the order in which arcs are rendered—and furthermore
we want the order of arcs to always match the order of data. (If you want to
sort the data, do that before it is passed to the layout.)
2011-02-24 14:36:57 -08:00
Michael Bostock ade083dd56 More convenient pies.
This adds d3.layout.pie, which can be used to compute the start and end angles
for arcs given an arbitrary array of data. In addition, d3.svg.arc now has a
`centroid` method that computes the center of the arc, useful for labeling.
Together these changes greatly simplify the donut & pie examples.

This commit also includes a `map` method for selections, which is similar to the
`filter` method. This allows you to map the data bound to the current selection.
I'm not currently using it, but it seems like a useful feature for those cases
where you want to rebind the current selection to different (but related) data.
2011-02-24 14:13:05 -08:00
Michael Bostock 23dc44e585 Oops, include sqrt transform. 2011-02-23 13:04:18 -08:00
Michael Bostock 3ecb7534ef Non-contiguous cartogram example.
Also includes new d3.geom.polygon.centroid method. Props to Zachary Johnson for
the inspiration!
2011-02-23 12:33:18 -08:00
Michael Bostock 8da80dcc99 Support for Sizzle.
D3 now supports Sizzle, preferring Sizzle to the native Selectors API if Sizzle
is available. Sizzle internally uses the native Selectors API and thus this
should have minimal performance implications; also, it allows you to use Sizzle
proprietary extensions such as ":first".

This commit also restricts the definition of the enter selection so that only
append and insert operations are defined. The other operations were generally
unsupported anyway, and it cleans up the code to have separate implementations
for insert and append. (I might enable additional operations in the future, such
as `filter`, `sort` and `each`, but this seems like a reasonable first pass.)
2011-02-17 11:56:13 -08:00
Michael Bostock 77a061f26d Add d3.svg.symbol.
The `symbol` class can be used to generate dot symbols for scatterplots. This
commit also fixes a couple bugs with negative-domain log and pow scales, as well
as tick generation.
2011-02-13 23:20:10 -08:00
Mike Bostock 0e1c1fad17 Add d3.geo.bounds.
This method can be used for computing the bounding box of arbitrary GeoJSON
objects. This commit also fixes a bug in d3.geo.path, such that it will accept
any GeoJSON object, rather than requiring GeoJSON feature objects.
2011-02-11 19:42:52 -08:00
Mike Bostock c34cd15077 Add color-by-area with zoom example.
This uses d3.geo.path to compute the projected area (in square pixels) of each
county in the choropleth. It also usees d3.behavior.zoom to add geometric pan
and zoom.
2011-02-11 17:35:21 -08:00
Michael Bostock 12eb5c13fe Add geometric zooming example. 2011-02-11 13:44:56 -08:00
Michael Bostock d215acef78 Add d3.behavior module.
Includes, as the first behavior, a pan & zoom behavior. The canvas can be panned
by dragging the mouse, and zoomed using the mousewheel (or by double-click). By
listening to redraw events, users can decide whether to implement geometric
zooming (such as by setting the "transform" attribute on an `svg:g` element) or
semantic zooming (by changing the domain of a scale object and repositioning
elements).

This commit also includes two bug fixes. The `d3.format` class now properly
groups thousands of negative numbers, and supports the sign specifier. The
unicode minus symbol \u2212 is used for negative values. The `d3.scale.pow`
class now properly handles negative numbers, as well.
2011-02-11 13:00:41 -08:00
Michael Bostock b4231227e1 Fix two bugs in transitions.
First, always coerce the tween target value (the value of the style or attribute
at the end of the transition) to a string. This guarantees that the correct
interpolator is chosen, and avoids a null dereference.

Second, default color channels to zero rather than undefined, so as to avoid NaN
channel values if there is an error parsing the color. This can occur, say, if
the background color of a div is unset and defaults to "rgba(0, 0, 0, 0)".
2011-02-08 15:59:03 -08:00
Michael Bostock e4935b1bb5 Add brushing & linking to splom. 2011-02-07 09:56:05 -08:00
Michael Bostock 8186c4b764 Restructure chord example. 2011-01-31 21:59:49 -08:00
Michael Bostock f8ae20da9d Simplify data join. Add insert & empty.
The data join is now specified as a single function of data, as with all other
properties. This allows the key to be computed on the previously-bound data,
rather than requiring the key to be serialized into the DOM (say, as an
attribute). In the case that there is no previously-bound data, it is still
possible to access the associated node as the `this` context.

The `enter` operator no longer performs an append. For symmetry with the `exit`
operator, you must call `append` after obtaining the entering selection. This
requires a tiny bit more code, but should make the code more clear. Also, it
provides an opportunity to use a different instantiation operator, such as the
new `insert` operator. This takes a second argument, which is a selector for the
insert-before reference element. For example, the selector ":first-child" will
prepend nodes.

The `empty` operator allows you to query whether a selection is empty (i.e.,
contains zero matching nodes).
2011-01-31 11:00:35 -08:00
Michael Bostock 44e67e29c0 Restructure calendar example. 2011-01-30 22:01:15 -08:00
Jason Davies 80366082e8 Use `d3.event` to reference current event. 2011-01-27 23:13:56 +00:00
Jason Davies bf4c410a29 Fix for lack of global `event` e.g. in FF 3.6. 2011-01-27 22:58:29 +00:00
Michael Bostock 5748994854 Add d3.scale.quantize.
A quantize scale is much like a linear scale, but it returns a discrete value
from a set range (similar to quantile and ordinal scales).
2011-01-25 11:31:54 -08:00
Michael Bostock 41c91fd037 Merge branch 'force' 2011-01-21 11:59:14 -08:00
Michael Bostock 1a6163cb1a Add d3.geom.quadtree. 2011-01-21 11:59:05 -08:00
Michael Bostock 9ae67c7851 Add ISO-3166 country codes. 2011-01-20 10:25:03 -08:00
Michael Bostock ca2e207573 Fix initial opacity. 2011-01-17 14:16:53 -08:00
Michael Bostock c678ecb447 Remove cruft. 2011-01-17 12:34:02 -08:00
Michael Bostock 870bc20ea6 Remove cruft. 2011-01-17 12:32:19 -08:00
Michael Bostock 65307730a3 Add d3.layout.stack, d3.min, d3.max. 2011-01-17 12:27:29 -08:00
Jason Davies 473ee4fa0b Update examples index. 2011-01-12 00:45:29 +00:00
Michael Bostock 487037e1af Merge branch 'jheer-master'
Adds support for contours (d3.geom.contour) and cardinal spline interpolation.
I've extended cardinal spline interpolation to d3.svg.area, and added closed
basis spline interpolation. The spline tension is now set using a named
method, and closed splines can be generated using basis-closed and
cardinal-closed, respectively.

This commit also includes Jeff's nifty clustered force-directed graph example!
2011-01-10 16:05:58 -08:00
Michael Bostock 373ddee706 Add nest, keys, values & entries operators. 2011-01-08 15:18:38 -08:00
Michael Bostock bdcb648849 Turn off the compiler's "advanced" optimizations.
The renaming of attributes is totally not worth the hassle of maintaining an
externs file (or using the awkward `foo["bar"]` syntax). The file size
reduction from the advanced optimizations was negligible, besides!
2011-01-05 11:35:39 -08:00
Michael Bostock 19d478f3e0 Add quantile scale. 2011-01-03 10:30:36 -08:00
Jeffrey Heer 5067f0a35d Move cardinal splines to svg/line.js 2010-12-15 22:06:24 -08:00
Jeffrey Heer 633a931f5b Add cardinal splines and clustered graph example 2010-12-15 09:32:29 -08:00
Jeffrey Heer b9ad0a4af1 Minor tweaks and beautification 2010-12-06 20:48:11 -08:00
Jeffrey Heer ecf796c04a Added contour by marching squares 2010-12-06 20:27:25 -08:00
Mike Bostock 6307364a45 Add layout module, with layout.chord class. 2010-11-28 13:15:07 -08:00
Mike Bostock e08ff41dad Add a little mouseover interaction. 2010-11-27 20:35:57 -08:00
Mike Bostock c86d8bc1be Allow chords to link back to themselves. 2010-11-27 18:19:30 -08:00
Mike Bostock 5ae51b2538 Simplify svg.chord API.
We now use the same property accessors (startAngle, endAngle and radius) for
two source and target objects. Note that you don't have to structure your data
hierarchically; you can define a source and target accessor that restructures
the data on the fly.
2010-11-27 14:13:02 -08:00
Mike Bostock ed9321d107 Update examples index. 2010-11-27 14:10:07 -08:00
Mike Bostock 163a37e7cd Add svg.chord class. 2010-11-27 01:07:00 -08:00
Michael Bostock d16d680412 Use d3.svg.area for streamgraph example. 2010-11-26 18:01:21 -08:00
Michael Bostock 1855ca2df6 Add moire pattern example. 2010-11-26 15:12:36 -08:00
Michael Bostock 46b5d541bd Minor beautification. 2010-11-22 23:58:27 -08:00
Jeffrey Heer bbe029fa7f Added convex hull at d3.geom.hull 2010-11-22 16:21:46 -08:00
Michael Bostock 5b43420991 Fix delay in stack transition. 2010-11-10 22:43:02 -08:00
Michael Bostock 7f7ce5cc09 Another fix for concurrent transitions.
Don't run older transitions after newer transitions complete.
2010-11-09 17:54:52 -08:00
Michael Bostock 138fd92978 Add Mercator projection. 2010-11-09 14:45:31 -08:00
Michael Bostock caab7aabd7 Cancel concurrent transitions. 2010-11-08 22:49:31 -08:00
Michael Bostock 156ff68f16 Move Voronoi & Delaunay code into geom module. 2010-11-07 21:09:59 -08:00
Michael Bostock bcf37e4a66 Generate Delaunay from Voronoi. 2010-11-07 20:57:25 -08:00
Michael Bostock ee580489b1 Make Voronoi implementation compile with Closure. 2010-11-07 15:59:40 -08:00
Michael Bostock 57059e32a3 Replace previous optimization with filter.
It's probably best to assume that if the attr is being set, it's changing, and
therefore we shouldn't check the original value. The caller can now use the
filter operator to optimize, if needed.
2010-11-07 08:53:34 -08:00
Michael Bostock cfe47b5ad5 Add mouseover interaction to Voronoi example.
Also, change svg.mouse so that it returns an array [x, y] rather than {x, y};
this makes it easier to convert to a string, e.g., for SVG's transform
attribute. Also, optimize selection.attr so that it checks the attribute value
before setting the attribute. (I thought it would be slower to check, but
surprisingly it's not!)
2010-11-07 00:12:45 -07:00
Michael Bostock 56ef531a79 Return closed polygons for Voronoi, rather than edges. 2010-11-06 19:10:50 -07:00
Michael Bostock c73ebe2052 Simplify Delaunay triangulation example. 2010-11-06 17:24:24 -07:00
Michael Bostock 603408aa52 Add Voronoi tesselation example. 2010-11-06 17:23:49 -07:00
Michael Bostock ba23f28fef Interactive Delaunay triangulation. 2010-11-06 14:41:04 -07:00
Michael Bostock 46b80565c9 Almost complete strptime & strftime. 2010-11-05 16:23:53 -07:00
Michael Bostock 6494412aee Don't include geo in the default build. 2010-11-05 00:25:24 -07:00
Michael Bostock e1b23445d1 Fix date parsing bug. 2010-11-05 00:19:38 -07:00
Michael Bostock cd645ec925 Fix a bug in scale.invert. Add svg.mouse. 2010-11-05 00:11:34 -07:00
Michael Bostock 16617a2d51 First pass at zoom example. 2010-11-04 23:10:23 -07:00
Michael Bostock b2a3262338 d3.csv is now a function, like d3.json. 2010-11-04 22:33:43 -07:00
Michael Bostock 3727826d7e Add a cheesy enter transition. 2010-11-04 20:04:13 -07:00
Michael Bostock e793ce8800 Scatterplot matrix example. 2010-11-04 19:54:24 -07:00
Michael Bostock fe073855a4 Load force-directed graph data asynchronously. 2010-11-04 19:09:21 -07:00
Michael Bostock 9f51f46f6f A simple web server for Chrome.
Alas, Chrome is very strict about XHR to local files, even within the same
directory. This commit includes a tiny web server (built on Tornado) so that
Chrome users can easily run the examples out of their local file system.
2010-11-04 19:06:31 -07:00
Michael Bostock 7d2c407d9a Load choropleth data asynchronously. 2010-11-04 17:56:04 -07:00
Michael Bostock 1d395684f0 Latitude range is [-90, +90]. 2010-11-04 17:15:51 -07:00
Michael Bostock 9900d446e5 Add horizon graph example. 2010-11-04 17:13:47 -07:00
Mike Bostock a54574bcf9 Add interactive Albers projection explorer. 2010-11-03 11:19:20 -07:00
Mike Bostock 4c1fd11e74 Delete d3.geo.circle.
We can use the transform attribute, and it's more obvious.
2010-11-02 23:25:09 -07:00
Mike Bostock 2eda4baf36 Add symbol map, composite Albers projection. 2010-11-02 23:06:32 -07:00
Michael Bostock 657f02ee0a Tweak color scale to match Nathan's original. 2010-11-02 17:07:51 -07:00
Michael Bostock 758b69ba19 State outlines; breakout AK, HI & PR.
I changed the albers API slightly to reduce the number of square brackets.
2010-11-02 16:54:18 -07:00
Michael Bostock a95efee580 Add rudimentary GeoJSON support (with Albers). 2010-11-02 15:27:45 -07:00
Michael Bostock 5c72d2c1c6 Add sort operator. 2010-11-01 23:28:27 -07:00
Michael Bostock 05a255ca9a Break d3 into {core,scale,svg} modules.
Also enable ADVANCED_OPTIMIZATIONS for the Google compiler.
2010-10-30 15:42:11 -07:00
Michael Bostock 30482ba3be Fade-in force-directed graph. 2010-10-24 17:24:06 -07:00
Michael Bostock d16d06ef36 First pass at some shape utilities. 2010-10-24 17:05:59 -07:00
Michael Bostock a0f2a670b2 Add categorial color palettes. 2010-10-24 16:15:43 -07:00
Michael Bostock e25acce124 Consolidate concurrent setIntervals. 2010-10-24 15:27:04 -07:00
Michael Bostock 99d1840275 Fix propagation of parentNode & parentData. 2010-10-24 14:03:12 -07:00
Michael Bostock 27dbb5a0fa Custom easing. Public d3.dispatch. 2010-10-24 12:40:26 -07:00
Michael Bostock 18a6e2941a Restore previous enter behavior.
It's a lot more predictable if we always use selectAll to determine the parent
node for a given group, rather than trying to infer parent nodes per node
during select.
2010-10-24 12:13:15 -07:00
Michael Bostock 7897cdddd0 Better tracking of enter parents. 2010-10-24 11:43:32 -07:00
Michael Bostock 9a28acdc62 Add "key" to join attributes. Event support. 2010-10-24 10:56:29 -07:00
Michael Bostock b6abd7dfdd Allow custom interpolators. 2010-10-24 10:39:34 -07:00
Michael Bostock be2c57f9b5 Futzing with force layout. 2010-10-23 20:48:51 -07:00
Michael Bostock 5705107036 Fix a bug with redundant interpolators. 2010-10-23 20:46:17 -07:00
Michael Bostock 3cfeb7c664 Checkpoint immediate-mode implementation. 2010-10-23 20:32:16 -07:00
Michael Bostock 5e381ba73e Export a tickFormat function.
The tick format function doesn't have to be used with ticks, though. It's also
for convenient for determining an appropriate precision for any value label.
2010-10-22 13:51:36 -07:00
Michael Bostock d7bc33eafd First pass at ticks for linear scale. 2010-10-22 12:55:50 -07:00
Michael Bostock a5089b8918 Add `bind` action. 2010-10-21 12:53:56 -07:00
Michael Bostock 291a732042 Use scales for area chart example. 2010-10-20 15:42:15 -07:00
Michael Bostock 78bca67502 Add ordinal scale, range. 2010-10-20 15:22:22 -07:00
Michael Bostock 92d15a4472 First pass at scale functions.
This includes only the quantitative scale functions, which is primarily the
linear scale. Also included are `log` and `pow` scales, which are simple
transforms of linear scales. All the scale functions use the existing
interpolator logic, so you can specify an output range of numbers, colors,
fonts, paths... pretty much anything.
2010-10-20 11:07:42 -07:00
Michael Bostock c117dbe527 Move `max` and `range` to separate files. 2010-10-14 10:29:17 -07:00
Michael Bostock 7e0e19106e Remove values/entries/keys.
These data-processing methods are useful, but they should live in a separate library.
2010-10-14 10:21:07 -07:00
Michael Bostock a16adb1a39 Add d3.{entries,keys,values}.
Also rename calendar/dow example to calendar/dji.
2010-10-05 11:57:27 -07:00
Michael Bostock bacf6762fa Add VIX calendar example. 2010-10-05 11:37:14 -07:00
Michael Bostock af68d6b2ef Quantile color scale. 2010-10-04 20:57:56 -07:00
Mike Bostock 5f47187f7d Update calendar example to use DOW data. 2010-10-04 17:28:01 -07:00
Mike Bostock 544e88d0b8 Add calendar layout example. 2010-10-04 13:01:56 -07:00
Mike Bostock 018b79577a Rename add -> append. 2010-10-02 11:00:31 -07:00
Mike Bostock ff98c89c9d Rescale when grouped. 2010-09-29 12:58:50 -07:00
Mike Bostock 661ff7fe82 Redesign of tweens. 2010-09-28 23:18:51 -07:00
Mike Bostock 373ae84c83 Tweak button margin in stacked bar chart example. 2010-09-28 18:34:45 -07:00
Mike Bostock bca36356ec Add group <-> stack bidrectional animation. 2010-09-28 18:04:58 -07:00
Mike Bostock 7aaadad542 Fix bug in stack -> group animation. 2010-09-28 13:00:28 -07:00
Mike Bostock 370818e799 Add stack -> group animation example. 2010-09-28 12:55:33 -07:00
Mike Bostock ae0d06f209 Checkpoint examples. 2010-09-28 11:34:52 -07:00