Hello,
I know that jester can be used to connect to a server with Nim and it works great for me (I've only used/seen the Hello World example though).
I am interested in knowing how/if it's possible to do a 2D plot or a Graph structure (with nodes and edges and vertexes and all), save it in an image and display that image on a browser?
I've only seen that support for Cairo is available but idk how it works...
Thanks in advance.
PS: even better would be for the graph/plot to be "dynamic" on the server side, but, Ill leave it for later :D
I would consider just using a dynamic server side approach if you do not really need an image. Thats probably much easier and even "better" for users.
http://www.flotcharts.org/ or even https://plot.ly/javascript/open-source-announcement/
Thank you very much!! I'll definitely look into it!
And about generating/drawing plots offline only, with Nim?
Maybe https://github.com/nim-lang/graphics/blob/master/graphics.nim ...
nimble search graphics gives some more packages.
There is also: https://github.com/dvolk/gnuplot.nim
And about generating/drawing plots offline only, with Nim?
When using my cairo wrapper you can simple follow the cairo C examples. Of course you may uses the cairo wrapper bundled with Nim too if you really prefer that one. My is only tested for Linux.
I know that for Python someone tries to offer a really high level cairo wrapper with his own examples, see cairo mailing list. Maybe at some time I will see if something similar is suited for Nim too.
I think the gnuplot one is closest to what I was looking for with the offline plotting thing :D
About a more... interactive/professional solution well...I'll keep exploring :D