Create diagram