Diagram update