diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2016-10-28 13:31:36 -0700 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2016-10-28 13:31:36 -0700 |
| commit | 05e761abca3ff42dbba371af0560b82707dfe7c0 (patch) | |
| tree | 268cc06b931357a0ffad684961ff6d24eeec3b4b /www/lib/vis/examples/graph2d/01_basic.html | |
| parent | 55a9e628760dc31400457099e4aaabc767beed70 (diff) | |
updated vis
Diffstat (limited to 'www/lib/vis/examples/graph2d/01_basic.html')
| -rw-r--r-- | www/lib/vis/examples/graph2d/01_basic.html | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/www/lib/vis/examples/graph2d/01_basic.html b/www/lib/vis/examples/graph2d/01_basic.html new file mode 100644 index 00000000..68ec7cbd --- /dev/null +++ b/www/lib/vis/examples/graph2d/01_basic.html @@ -0,0 +1,52 @@ +<!DOCTYPE HTML> +<html> + +<head> + <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> + <meta content="utf-8" http-equiv="encoding"> + <title>Graph2d | Basic Example</title> + + <style type="text/css"> + body, html { + font-family: sans-serif; + } + </style> + + <script src="../../dist/vis.js"></script> + <link href="../../dist/vis.css" rel="stylesheet" type="text/css" /> +<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-61231638-1', 'auto');ga('send', 'pageview');</script></head> +<body> +<h2>Graph2d | Basic Example</h2> +<div style="width:700px; font-size:14px; text-align: justify;"> + This example shows the most basic functionality of the vis.js Graph2d module. An array or a vis.Dataset can be used as input. + In the following examples we'll explore the options Graph2d offest for customization. This example uses all default settings. + There are 10 predefined styles that will be cycled through automatically when you add different groups. Alternatively you can + create your own styling. + <br /><br /> + Graph2d is built upon the framework of the newly refactored timeline. A lot of the timeline options will also apply to Graph2d. + In these examples however, we will focus on what's new in Graph2d! +</div> +<br /> +<div id="visualization"></div> + +<script type="text/javascript"> + + var container = document.getElementById('visualization'); + var items = [ + {x: '2014-06-11', y: 10}, + {x: '2014-06-12', y: 25}, + {x: '2014-06-13', y: 30}, + {x: '2014-06-14', y: 10}, + {x: '2014-06-15', y: 15}, + {x: '2014-06-16', y: 30} + ]; + + var dataset = new vis.DataSet(items); + var options = { + start: '2014-06-10', + end: '2014-06-18' + }; + var graph2d = new vis.Graph2d(container, dataset, options); +</script> +</body> +</html>
\ No newline at end of file |
