diff options
author | n-peugnet <n.peugnet@free.fr> | 2020-03-22 16:30:35 +0100 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2020-03-22 16:30:35 +0100 |
commit | 87f75ea2869629fedf893942b767765eff40c597 (patch) | |
tree | db32952c6c15beb48ae45bb73c687d7baa60b330 /src/map.js | |
parent | d1e35a91b70c88a888cb3a3cfb849b6ddd70bb22 (diff) | |
download | wcms-87f75ea2869629fedf893942b767765eff40c597.tar.gz wcms-87f75ea2869629fedf893942b767765eff40c597.zip |
very first graph displayed using cytoscape
Diffstat (limited to 'src/map.js')
-rw-r--r-- | src/map.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/map.js b/src/map.js new file mode 100644 index 0000000..5561250 --- /dev/null +++ b/src/map.js @@ -0,0 +1,9 @@ +import cytoscape from 'cytoscape'; + +let options = { + container: document.getElementById('graph'), +}; + +Object.assign(options, data); + +let cy = cytoscape(options); |