You can edit the diagram directly or update it using the following code. Note that not all diagrams may convert to SVG; some may be rendered as images editable through code.