Open LazarenkoA opened 2 years ago
Webcola is able to run in the browser, this is not really to do with this library just how the web platform works.
If you want to load json in a browser, then you need to either put the file in a place where the web page is able to access it (in the public folder that index.html is in, usually) or put the data into the source code (just copy and paste it in and assign it to a variable).
In this example, I want to load json from a file or from a string, is it possible? https://github.com/tgdwyer/WebCola/blob/master/website/examples/smallworldwithgroups.html