vugu / vugu

Vugu: A modern UI library for Go+WebAssembly (experimental)
https://www.vugu.org
MIT License
4.8k stars 175 forks source link

Using javascript libaries with Vugu #230

Open owenwaller opened 2 years ago

owenwaller commented 2 years ago

Is your feature request related to a problem? Please describe.

We are considering using Vugu to write our UI in, as the project is entirely Go based at the minute.

A quick trial shows that we can do most of what we need - basic tabular data, buttons and forms. It also shows that we have the potential for a lot of code reuse in the browser. The process has been both quick and relatively pain free for the simple trials we've done so far.

But, our pain point is visualization. We have a lot of charts to generate, and those charts need to be interactive so the rendering has to be done in the browser.

We are looking at using a Vega + d3.js combination ATM. https://vega.github.io/vega/ https://d3js.org/

Vega essentially let's you describe a chart as json, and then uses d3.js to do the rendering.

Describe the solution you'd like What we would like to do is:

Have a vugu file that references the necessary javascript and css files. In the same file, we need to add some inline Githubissues.

  • Githubissues is a development platform for aggregating issues.