I wrote an app a while ago in Java using the graphics library java fx. The app generates diagrams like the following examples:
I want to port this app to run on the web. I was thinking of using Javascript to draw an svg file on the browser. How would I go about doing this?