Update status.html / responsive <svg>

Quick fix for a responsive <svg> using viewBox instead of width/height.
This commit is contained in:
C. Bluoss 2016-12-25 23:47:49 +01:00 committed by GitHub
parent 1738de51e7
commit 3fc33ab5ca

View File

@ -182,8 +182,7 @@ layout: default
.range(colors);
var svg = d3.select("#chart").append("svg")
.attr("width", width + margin.left + margin.right)
.attr("height", height + margin.top + margin.bottom)
.attr("viewBox", "0 0 960 430")
.append("g")
.attr("transform", "translate(" + margin.left + "," + margin.top + ")");