Averages lines
Remove dagre
Add legend