Hi all, I’m having trouble with the absolute basics of D3 with Observable. I have a bunch of D3 experience, but I’ve never done anything with Observable. I’m trying to do just a super simple plot with d3, but I’m getting null
as a response from the following code. Can anyone see what’s wrong?
testChart = {
const data = [{x: 5, y:6},{x: 6, y:6.3}, {x: 5.1, y:5.7}]
const svg = d3.selectAll(DOM.svg(400, 500))
svg.append("g").selectAll("circle")
.data(data)
.enter()
.append("circle")
.attr("fill", "#ff0000")
.attr("cx", function(d) { d["x"] })
.attr("cy", function(d) { d["y"] })
.attr("r", 1.5)
return svg.node()
}