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

22 Коммитов

Автор SHA1 Сообщение Дата
Kristofer Monisit 30ad8bcc55 Bring treemap examples up-to-date 2012-04-07 12:30:46 +08:00
Mike Bostock 3081dd45ef Consolidate everything into d3.v2.js.
Rather than producing separate files for each module, the default build now
produces a single file. This should encourage better page-load performance as
the files were relatively small. Also, it's easier to deal with only one file
rather than many, especially if you're not quite sure what the dependencies are.
You may still create minimized builds, if you don't want every feature.

This commit also demotes the chart components to the examples directory, rather
than keeping them as part of the core library. As always, D3 is not a charting
library, and these were ever only intended to serve as examples.
2012-02-18 14:04:01 -08:00
Mike Bostock 7a4a8ec8fe Fix for negative-size nodes in IE9. Fixes #498. 2012-02-12 08:41:58 -08:00
Jason Davies 5a87998694 Examples: namespaces are optional as of v2.6.0. 2011-11-23 22:48:13 +00:00
Jason Davies d1d1fc7f1b Fix width/height of treemap-svg example.
In IE9, using style("width", 960) fails with "SCRIPT87: invalid
argument" because strictly speaking, non-zero CSS widths need a unit
e.g. "960px".  In SVG, we normally use width/height attributes via
attr() instead of the CSS equivalents.
2011-08-29 11:40:56 +01:00
Mike Bostock 62c7399e06 Remove padding. 2011-07-31 16:14:21 -07:00
Mike Bostock 6ff9103ef1 Handle padding overflow in treemap layout. 2011-07-20 15:11:07 -07:00
Jason Davies d4459481b2 Add SVG-based treemap example. 2011-07-20 09:07:14 +01:00
Jason Davies 62bcec0998 Add support for padding to treemap layout.
The new "padding" property is an array of [top, right, bottom, left], or a
function that returns such an array for a given node.
2011-07-19 21:35:19 +01: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 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
Michael Bostock 99c2580971 Obesity data for cartogram. 2011-03-29 14:57:01 -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 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 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
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