Update status.html / responsive <svg>
Quick fix for a responsive <svg> using viewBox instead of width/height.
This commit is contained in:
parent
1738de51e7
commit
3fc33ab5ca
@ -182,8 +182,7 @@ layout: default
|
|||||||
.range(colors);
|
.range(colors);
|
||||||
|
|
||||||
var svg = d3.select("#chart").append("svg")
|
var svg = d3.select("#chart").append("svg")
|
||||||
.attr("width", width + margin.left + margin.right)
|
.attr("viewBox", "0 0 960 430")
|
||||||
.attr("height", height + margin.top + margin.bottom)
|
|
||||||
.append("g")
|
.append("g")
|
||||||
.attr("transform", "translate(" + margin.left + "," + margin.top + ")");
|
.attr("transform", "translate(" + margin.left + "," + margin.top + ")");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user