chart = {
let plot = Plot.plot({
axis: null,
inset: 10,
insetLeft: 10,
insetRight: 160,
width: 1152,
marks: [
Plot.tree(data, { path: "name", delimiter: "." })
]
})
d3.select(plot).selectAll('circle').on('click', (d, n) => { console.log('CLICKED A CIRCLE', d, n) })
return plot
}