render diagram