<!DOCTYPE html>
<meta charset='utf-8'>
<script src="https://d3js.org/d3.v3.min.js"></script>
<body>
<script>

	
  // box to plot
  var color = d3.scale.category10(),
      margin = {top: 50, right: 20, bottom: 30, left: 40},
      width = 960 - margin.left - margin.right,
      height = 500 - margin.top - margin.bottom;

  // Setup width height
  var svg = d3.select('body').append('svg:svg')
    .attr('width', width + margin.left + margin.right)
    .attr('height', height + margin.top + margin.bottom);

  v