brucemcpherson / desktopliberation

hosting for desktop liberation google plus community
30 stars 1 forks source link

Create GraphML markups from Apps Script #150

Open brucemcpherson opened 1 year ago

brucemcpherson commented 1 year ago

A recent social network analysis project meant I had to find a way to convert Google Form data for visualization in NodeXL. Normally I’d use D3 for this kind of thing (you’ll find plenty of d3 stuff on this site), but I needed a way to feed NodeXL instead. GraphML is a lightweight XML-based file format for graphs supported by a wide range of graph visualization and analysis tools, including NodeXL – so that’s what I selected to implement.

It turns out that GraphML is just a markup language like HTML, XML and so on, and since I often need to create those things from Apps Script/JavaScript I thought it would be handy to generalize it so it could be used for any of those, and as usual, share it as an Apps Script library.

https://ramblings.mcpher.com/gassnippets2/create-graphml-markups-from-apps-script/