Programs that
produce diagrams should be (and are) written in a programming language. They accept input, execute, and produce output. Diagrams
themselves do not execute and have state (unless they are interactive[0]). There's a difference.
[0] https://app.ilograph.com