made an svg of the diagram