The idea is to create a separate route for generating Gadfly plots through a client app. A user enters a Julia expression that uses Gadfly to draw a plot, and this expression is then POSTed to this new route, which then runs the Julia parser, to execute the code. The plot itself is rendered to an SVGJS file, which can then be posted back to the client and displayed inside an <img> element.
The idea is to create a separate route for generating Gadfly plots through a client app. A user enters a Julia expression that uses Gadfly to draw a plot, and this expression is then POSTed to this new route, which then runs the Julia parser, to execute the code. The plot itself is rendered to an SVGJS file, which can then be posted back to the client and displayed inside an
<img>
element.