chart = {
const svg = d3
.create('svg')
.attr('class', 'chart-test')
.call(setSize, width, 100);
const g = svg.append('g');
g.selectAll('.node')
.data(data)
.join(enterNode, updateNode, n => n.remove());
invalidation.then(() => console.log('invalidated'));
return svg.node();
}