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