How do I make an svg the entire height and width of a page. The below code creates an svg with a width of 1411 and height of 150. I understand that d3 has a default height of 150. But, I am setting it in the code to 100%. How do I set it to 100% of the width and height of the page?
var svg = d3.select("body").append("svg")
.attr("width", "100%")
.attr("height", "100%");