xxxxxxxxxx
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.axis path,
.axis line {
fill: none;
stroke: #000;
shape-rendering: crispEdges;
}
.axis text {
fill: #000;
}
</style>
<body>
<script src="https://d3js.org/d3.v3.js"></script>
<script src="https://cdn.jsdelivr.net/gh/jgbos/math/math.min.js"></script>
<script>
var margin = {top: 20, right: 20, bottom: 30, left: 50},
width = 960 - margin.left - margin.right,
height = 500 - margin.top - margin.bottom;
var svg = d3.select("body").append("svg")
.attr("width", width + margin.left + margin.right)
.attr("height", height + margin.top + margin.bottom)
.append("g")
.attr("transform", "translate(" + margin.left + "," + margin.top + ")");
</script>
Modified http://d3js.org/d3.v3.js to a secure url
Updated missing url https://raw.github.com/jgbos/math/master/math.min.js to https://cdn.jsdelivr.net/gh/jgbos/math/math.min.js
https://d3js.org/d3.v3.js
https://raw.github.com/jgbos/math/master/math.min.js