wefra/lib/d3-v6-oop/svg.js

8 lines
203 B
JavaScript
Raw Normal View History

SVG = {
init: function(selection, svgW, svgH){
return d3.select(selection).append("svg")
.attr("viewBox", "0 0 "+ svgW +" "+ svgH)
.attr("perserveAspectRatio", "xMinYMid");
},
};