JSFiddle - React, Tailwind, and code Playground
by A B Jones
JavaScript
d3.selection.prototype.appendCircle = function(data, x,y,r,fill) {
return this
.data(data)
.enter()
.append('circle')
.attr('cx', x)
.attr('cy', y)
.attr('r', r)
.style('fill', fill);
}
var svg = d3.select('body').append('svg');
var circles = svg.selectAll('circle')
.appendCircle([1],100,100,15,'red')