Diagram prepare