blue-leather-89370
09/27/2018, 6:38 PMroot.selectAll<Circle>()
.data(listOf(100.0, 200.0, 300.0))
.enter()
.append { d, _, _ -> Circle(d, d, 10.0) }
root
is initially an empty Group
. The enter subselection contains place holders for each new datum bound to the selection, append replaces those placeholders with nodes (in this case Circle
instances).enough-analyst-54434
09/27/2018, 6:38 PM