Create a diagram