Mon 21 Jul 22:43:21 CEST 2025
This commit is contained in:
parent
5631bc4617
commit
6464378cfd
52
js/dos/ext/vis/examples/graph2d/01_basic.html
Normal file
52
js/dos/ext/vis/examples/graph2d/01_basic.html
Normal file
|
@ -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>
|
Loading…
Reference in New Issue
Block a user