File: demos/004.php

Recommend this page to a friend!
  Classes of Tom Schaefer  >  d3  >  demos/004.php  >  Download  
File: demos/004.php
Role: Example script
Content type: text/plain
Description: treemap example
Class: d3
Output charts using D3.js JavaScript library
Author: By
Last change:
Date: 8 years ago
Size: 865 bytes


Class file image Download
include_once "../";
?><!DOCTYPE html>
<meta charset="utf-8">

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: auto;
  position: relative;
  width: 960px;

form {
  position: absolute;
  right: 10px;
  top: 10px;

.node {
  border: solid 1px white;
  font: 10px sans-serif;
  line-height: 12px;
  overflow: hidden;
  position: absolute;
  text-indent: 2px;

<script src=""></script>
  <label><input type="radio" name="mode" value="size" checked> Size</label>
  <label><input type="radio" name="mode" value="count"> Count</label>
= new d3TreeMap(array());

For more information send a message to info at phpclasses dot org.