diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2017-09-27 12:42:48 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2017-09-27 12:42:48 -0400 |
| commit | 210e8feae2fb4842bfb2de38666e6c41671fef3c (patch) | |
| tree | cbdafa34b1a6260bb20236d7e9de9eb1b690a1c5 /www/lib/vis/examples/timeline/dataHandling/loadExternalData.html | |
| parent | e7e7baeaad90229ccb3e0f45f4ebd77be7d79b14 (diff) | |
removed lib
Diffstat (limited to 'www/lib/vis/examples/timeline/dataHandling/loadExternalData.html')
| -rw-r--r-- | www/lib/vis/examples/timeline/dataHandling/loadExternalData.html | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/www/lib/vis/examples/timeline/dataHandling/loadExternalData.html b/www/lib/vis/examples/timeline/dataHandling/loadExternalData.html deleted file mode 100644 index f594d2aa..00000000 --- a/www/lib/vis/examples/timeline/dataHandling/loadExternalData.html +++ /dev/null @@ -1,58 +0,0 @@ -<!DOCTYPE HTML> -<html> -<head> - <title>Timeline | External data</title> - - <style type="text/css"> - body, html { - font-family: sans-serif; - } - </style> - - <!-- Load jquery for ajax support --> - <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> - - <script src="../../../dist/vis.js"></script> - <link href="../../../dist/vis-timeline-graph2d.min.css" rel="stylesheet" type="text/css" /> - <script src="../../googleAnalytics.js"></script> -</head> -<body> -<p> - This demo shows how to load external data via an ajax call. -</p> -<div id="visualization"></div> -<div id="loading">loading...</div> - -<script type="text/javascript"> - // load data via an ajax request. When the data is in, load the timeline - $.ajax({ - url: '../resources/data/basic.json', - success: function (data) { - // hide the "loading..." message - document.getElementById('loading').style.display = 'none'; - - // DOM element where the Timeline will be attached - var container = document.getElementById('visualization'); - - // Create a DataSet (allows two way data-binding) - var items = new vis.DataSet(data); - - // Configuration for the Timeline - var options = {}; - - // Create a Timeline - var timeline = new vis.Timeline(container, items, options); - }, - error: function (err) { - console.log('Error', err); - if (err.status === 0) { - alert('Failed to load data/basic.json.\nPlease run this example on a server.'); - } - else { - alert('Failed to load data/basic.json.'); - } - } - }); -</script> -</body> -</html>
\ No newline at end of file |
