PHP Classes

File: demos/006.php

Recommend this page to a friend!
  Classes of Tom Schaefer   d3   demos/006.php   Download  
File: demos/006.php
Role: Example script
Content type: text/plain
Description: Reingold-Tilford-Tree Example
Class: d3
Output charts using D3.js JavaScript library
Author: By
Last change:
Date: 10 years ago
Size: 681 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;

.node circle {
  fill: #fff;
  stroke: steelblue;
  stroke-width: 1.5px;

.node {
  font: 10px sans-serif;

.link {
  fill: none;
  stroke: #ccc;
  stroke-width: 1.5px;

<?php echo d3::script();?>
= new d3ReingoldTilfordTree(array("width"=>960));