Diagram generator tool