An example of multiple pie (donut) charts created with D3. The data is represented as a tabular array of objects; each row in the table is mapped to an arc, and rows are grouped into pie charts using d3.nest
.
xxxxxxxxxx
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Page load time histograms</title>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/d3@2.4.2/d3.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/d3@2.4.2/d3.csv.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/d3@2.4.2/d3.layout.js"></script>
<style type="text/css">
body {
text-align: center;
padding: 0.5em;
margin: 0;
}
svg {
font: 10px sans-serif;
}
</style>
</head>
<body>
<script src="vis.js"></script>
</body>
</html>
Modified http://mbostock.github.com/d3/d3.js?2.4.5 to a secure url
Modified http://mbostock.github.com/d3/d3.csv.js?2.4.5 to a secure url
Modified http://mbostock.github.com/d3/d3.layout.js?2.4.5 to a secure url
https://mbostock.github.com/d3/d3.js?2.4.5
https://mbostock.github.com/d3/d3.csv.js?2.4.5
https://mbostock.github.com/d3/d3.layout.js?2.4.5