PHP Classes

File: demos/005.php

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

Contents

Class file image Download
<?php
include_once "../d3.classes.inc.php";
include_once
"../wrappers/clusterdendrogram.php";
?><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>

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;
}

</style>
<script src="http://d3js.org/d3.v3.min.js"></script>
</head>
<body>
<script>
<?php
$chart
= new d3ClusterDendrogram();
echo
$chart->render();
?>
</script>
</body>
</html>