Commit 3b641b63 authored by Mike Bostock's avatar Mike Bostock
Browse files

Remove partition-icicle example.

Replaced by <http://bl.ocks.org/4347473>.
parent 29f7adef
<!DOCTYPE html>
<meta charset="utf-8">
<title>Partition - Icicle</title>
<style>
rect {
stroke: #fff;
}
</style>
<body>
<script src="../../d3.js"></script>
<script>
var width = 960,
height = 250,
color = d3.scale.category20c();
var svg = d3.select("body").append("svg")
.attr("width", width)
.attr("height", height);
var partition = d3.layout.partition()
.size([width, height])
.value(function(d) { return d.size; });
d3.json("../data/flare.json", function(error, json) {
svg.data([json]).selectAll("rect")
.data(partition.nodes)
.enter().append("rect")
.attr("x", function(d) { return d.x; })
.attr("y", function(d) { return d.y; })
.attr("width", function(d) { return d.dx; })
.attr("height", function(d) { return d.dy; })
.style("fill", function(d) { return color((d.children ? d : d.parent).name); });
});
</script>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment