Selections in kubed support data joins, so you can...
# pex
b
Selections in kubed support data joins, so you can do the following:
Copy code
root.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).
e