javascript - vis.js graph is not showing in the internet explore -
i new javascript , html, , question might simplistic.
i have html code automatically generated package sketch graph in webpage
<html> <head> <script type="text/javascript" src="../../dist/vis.min.js"></script> <link href="../lib/vis/dist/vis.css" rel="stylesheet" type="text/css"> </head> <body> <div id="9e4f02f9-8a3b-4541-adf6-c8386872d6fd"></div> <script type="text/javascript"> var nodes = [{"title": "{u'page_category': u'refrigerators'}", "group": "page", "id": 451, "label": ""}, {"title": "{u'initial_domain': u'www.google.com', u'type': u'page viewed', u'time': u'2017-01-01 00:00:05'}", "group": "event", "id": 450, "label": ""}, {"title": "{u'country': u'us', u'region': u'tennessee', u'distinct_id': u'1595865a7d0124-0564d659f30e1b8-685c2a14-2c600-1595865a7d18d', u'city': u'columbia'}", "group": "user", "id": 449, "label": ""}]; var edges = [{"to": 451, "from": 450, "label": "see"}, {"to": 450, "from": 449, "label": "do"}]; var container = document.getelementbyid("9e4f02f9-8a3b-4541-adf6-c8386872d6fd"); var data = { nodes: nodes, edges: edges }; var options = { nodes: { shape: 'dot', size: 25, font: { size: 14 } }, edges: { font: { size: 14, align: 'middle' }, color: 'gray', arrows: { to: {enabled: true, scalefactor: 0.5} }, smooth: {enabled: false} }, physics: { enabled: false } }; var network = new vis.network(container, data, options); </script> </body> </html>
but when save code test.html, not show graph. there file must add folder?
Comments
Post a Comment