wefra-odoo11/custom/scripts/d3js/chart/svg.js

8 lines
205 B
JavaScript
Raw Normal View History

2019-10-02 21:28:58 +00:00
SVG = {
init: function(selection, svgW, svgH){
return d3.select(selection).append("svg")
.attr("viewBox", "-20 0 "+ svgW +" "+ svgH)
.attr("perserveAspectRatio", "xMinYMid");
},
};