<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>d3 and canvas - the bind and the draw</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://d3js.org/d3.v4.js"></script>
<script src="https://d3js.org/d3-scale-chromatic.v1.min.js"></script>
<style type="text/css">
body {
font-family: 'Open Sans', sans-serif;
}
canvas {
border: 1px dotted #ccc;
}
#text-explain {
display: inline-block;
font-size: 0.75em;
margin-bottom: 1em;
}
.alert {
color: tomato;
}
</style>
</head>
<body>
<h3>Coloured grids</h3>