Skip to content

Instantly share code, notes, and snippets.

@devangmundhra
devangmundhra / index.html
Created May 11, 2011 00:56 — forked from mundhradevang/index.html
Branch treemap node with mouse click
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Treemap</title>
<script type="text/javascript" src="http://d3js.org/d3.v2.min.js"></script>
<link type="text/css" rel="stylesheet" href="treemap.css"/>
</head>
<body>
<div id="chart"></div>
<script type="text/javascript" src="treemap_branch_on_click.js"></script>
@devangmundhra
devangmundhra / index.html
Created June 3, 2011 18:48 — forked from mbostock/.block
Zoomable Icicle
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Partition - Icicle</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js"></script>
<style type="text/css">
rect {
@devangmundhra
devangmundhra / index.html
Created August 18, 2011 23:16 — forked from mundhradevang/index.html
Deleting cell in a treemap when clicked
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js"></script>
<style type="text/css">
rect {
fill: none;
stroke: #fff;