aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2020-03-22 16:30:35 +0100
committern-peugnet <n.peugnet@free.fr>2020-03-22 16:30:35 +0100
commit87f75ea2869629fedf893942b767765eff40c597 (patch)
treedb32952c6c15beb48ae45bb73c687d7baa60b330 /src
parentd1e35a91b70c88a888cb3a3cfb849b6ddd70bb22 (diff)
downloadwcms-87f75ea2869629fedf893942b767765eff40c597.tar.gz
wcms-87f75ea2869629fedf893942b767765eff40c597.zip
very first graph displayed using cytoscape
Diffstat (limited to 'src')
-rw-r--r--src/map.js9
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);