PHP Classes

File: demos/020.php

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


Class file image Download
include_once "../";
?><!DOCTYPE html>
<meta charset="utf-8">
body {
  font: 10px sans-serif;

.axis path,
.axis line {
  fill: none;
  stroke: #000;
  shape-rendering: crispEdges;

.bar {
  fill: steelblue;

.x.axis path {
  display: none;

<?php echo d3::script();?>
= new d3StackedBarChart();