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