Loading the diagram