Interactive diagrams with layered and categorized annotations