Add a graph editor based on d3