wefra-odoo11/custom/scripts/d3js/chart/circle.js
2019-10-02 23:28:58 +02:00

15 lines
390 B
JavaScript

Circle = {
init: function(svg, values, cxAccessor, cyAccessor){
return svg.selectAll("circle")
.data(values)
.enter()
.append("circle")
.attr("cx", cxAccessor)
.attr("cy", cyAccessor)
.attr("r", "5px")
.style("fill", "pink")
.attr("stroke", "blue")
.attr("stroke-width", "2px");
}
};