Re: Using Plotly.js in Nim

2017-09-23 Thread sdwfrost
I know I have to wrap them; it's a matter of how to access the nested functions...

Re: Using Plotly.js in Nim

2017-09-22 Thread Tiberium
Well you would wrap this functions too? And I really think you should make it a real wrapper

Re: Using Plotly.js in Nim

2017-09-22 Thread sdwfrost
PS. One more thing; the more sophisticated examples using Plotly.d3.csv, Plotly.d3.json etc. (see [here](https://plot.ly/javascript/)). How can this nested structure be kept in Nim?

Re: Using Plotly.js in Nim

2017-09-22 Thread jlp765
This is an excellent example (YMMV). It raises a question: `Is there a guide for JS development in Nim?` I looked in the "docs", and "learn" and came across [Nim backend integration](https://nim-lang.org/docs/backends.html#nim-code-calling-the-backend-javascript-invocation-example) Should an

Using Plotly.js in Nim

2017-09-22 Thread sdwfrost
Dear All, I was playing with wrapping Javascript libraries in Nim, and I thought I would try [Plotly.js](https://plot.ly/javascript/). My first go is [here](https://github.com/sdwfrost/nim-plotly-example). I'm sure I'm breaking tons of good practices here, so any tweaks to the code would be