Browse Source

updated dist, examples

gh-pages
Alex de Mulder 10 years ago
parent
commit
1409b77206
27 changed files with 2525 additions and 2098 deletions
  1. +1
    -2
      dist/vis.css
  2. +2280
    -2078
      dist/vis.js
  3. +1
    -1
      dist/vis.map
  4. +1
    -1
      dist/vis.min.css
  5. +13
    -13
      dist/vis.min.js
  6. +2
    -2
      docs/network.html
  7. +61
    -0
      docs/timeline.html
  8. +103
    -0
      examples/network/34_circular_images.html
  9. BIN
      examples/network/img/indonesia/1.png
  10. BIN
      examples/network/img/indonesia/10.png
  11. BIN
      examples/network/img/indonesia/11.png
  12. BIN
      examples/network/img/indonesia/12.png
  13. BIN
      examples/network/img/indonesia/13.png
  14. BIN
      examples/network/img/indonesia/14.png
  15. BIN
      examples/network/img/indonesia/2.png
  16. BIN
      examples/network/img/indonesia/3.png
  17. BIN
      examples/network/img/indonesia/4.png
  18. BIN
      examples/network/img/indonesia/5.png
  19. BIN
      examples/network/img/indonesia/6.png
  20. BIN
      examples/network/img/indonesia/7.png
  21. BIN
      examples/network/img/indonesia/8.png
  22. BIN
      examples/network/img/indonesia/9.png
  23. +1
    -0
      examples/network/index.html
  24. +53
    -0
      examples/timeline/32_grid_styling.html
  25. +1
    -0
      examples/timeline/index.html
  26. +1
    -1
      network_examples.html
  27. +7
    -0
      timeline_examples.html

+ 1
- 2
dist/vis.css View File

@ -320,8 +320,7 @@
.vis.timeline .timeaxis .grid.vertical {
position: absolute;
width: 0;
border-right: 1px solid;
border-left: 1px solid;
}
.vis.timeline .timeaxis .grid.minor {

+ 2280
- 2078
dist/vis.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/vis.map
File diff suppressed because it is too large
View File


+ 1
- 1
dist/vis.min.css
File diff suppressed because it is too large
View File


+ 13
- 13
dist/vis.min.js
File diff suppressed because it is too large
View File


+ 2
- 2
docs/network.html View File

@ -940,11 +940,11 @@ All options defined per-node override these global settings.
<td>Define the shape for the node.
Choose from
<code>ellipse</code> (default), <code>circle</code>, <code>box</code>,
<code>database</code>, <code>image</code>, <code>label</code>, <code>dot</code>,
<code>database</code>, <code>image</code>, <code>circularImage</code>, <code>label</code>, <code>dot</code>,
<code>star</code>, <code>triangle</code>, <code>triangleDown</code>, and <code>square</code>.
<br><br>
In case of <code>image</code>, a property with name <code>image</code> must
In case of <code>image</code> and <code>circularImage</code>, a property with name <code>image</code> must
be provided, containing image urls.
<br><br>

+ 61
- 0
docs/timeline.html View File

@ -1326,6 +1326,67 @@ To load a locale into the Timeline not supported by default, one can add a new l
&lt;/style&gt;
</pre>
<h3 id="Grid_Backgrounds">Grid Backgrounds</h3>
<p>
The background grid of the time axis can be styled, for example to highlight
weekends or to create grids with an alternating white/lightgray background.
</p>
<p>
Depending on the zoom level, the grids get certain css classes attached.
The following classes are available:
</p>
<table>
<tr>
<th>Description</th><th>values</th>
</tr>
<tr>
<td>Alternating columns</td><td><code>even</code>, <code>odd</code></td>
</tr>
<tr>
<td>Current date</td><td><code>today</code>, <code>tomorrow</code>, <code>yesterday</code>, <code>current-week</code>, <code>current-month</code>, <code>current-year</code></td>
</tr>
<tr>
<td>Hours</td><td><code>0h</code>, <code>1h</code>, ..., <code>23h</code></td>
</tr>
<tr>
<td>Grouped hours</td><td><code>0-4h</code> to <code>20-24h</code></td>
</tr>
<tr>
<td>Weekday</td><td><code>monday</code>, <code>tuesday</code>, <code>wednesday</code>, <code>thursday</code>, <code>friday</code>, <code>saturday</code>, <code>sunday</code></td>
</tr>
<tr>
<td>Days</td><td><code>date1</code>, <code>date2</code>, ..., <code>date31</code></td>
</tr>
<tr>
<td>Months</td><td><code>januari</code>, <code>februari</code>, <code>march</code>, <code>april</code>, <code>may</code>, <code>june</code>, <code>july</code>, <code>august</code>, <code>september</code>, <code>october</code>, <code>november</code>, <code>december</code></td>
</tr>
<tr>
<td>Years</td><td><code>year2014</code>, <code>year2015</code>, ...</td>
</tr>
</table>
<p>Examples:</p>
<pre class="prettyprint lang-html">&lt;style&gt;
/* alternating column backgrounds */
.vis.timeline .timeaxis .grid.odd {
background: #f5f5f5;
}
/* gray background in weekends, white text color */
.vis.timeline .timeaxis .grid.saturday,
.vis.timeline .timeaxis .grid.sunday {
background: gray;
}
.vis.timeline .timeaxis .text.saturday,
.vis.timeline .timeaxis .text.sunday {
color: white;
}
&lt;/style&gt;
</pre>
<h2 id="Data_Policy">Data Policy</h2>
<p>
All code and data is processed and rendered in the browser.

+ 103
- 0
examples/network/34_circular_images.html View File

@ -0,0 +1,103 @@
<!doctype html>
<html>
<head>
<title>Network | Scalable images</title>
<style type="text/css">
body {
font: 10pt arial;
}
#mynetwork {
width: 800px;
height: 800px;
border: 1px solid lightgray;
background-color:#333333;
}
</style>
<script type="text/javascript" src="../../dist/vis.js"></script>
<link href="../../dist/vis.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
var DIR = 'img/soft-scraps-icons/';
var nodes = null;
var edges = null;
var network = null;
// Called when the Visualization API is loaded.
function draw() {
// create people.
// value corresponds with the age of the person
var DIR = 'img/indonesia/';
nodes = [
{id: 1, shape: 'circularImage', image: DIR + '1.png'},
{id: 2, shape: 'circularImage', image: DIR + '2.png'},
{id: 3, shape: 'circularImage', image: DIR + '3.png'},
{id: 4, label:"pictures by this guy!", shape: 'circularImage', image: DIR + '4.png'},
{id: 5, shape: 'circularImage', image: DIR + '5.png'},
{id: 6, shape: 'circularImage', image: DIR + '6.png'},
{id: 7, shape: 'circularImage', image: DIR + '7.png'},
{id: 8, shape: 'circularImage', image: DIR + '8.png'},
{id: 9, shape: 'circularImage', image: DIR + '9.png'},
{id: 10, shape: 'circularImage', image: DIR + '10.png'},
{id: 11, shape: 'circularImage', image: DIR + '11.png'},
{id: 12, shape: 'circularImage', image: DIR + '12.png'},
{id: 13, shape: 'circularImage', image: DIR + '13.png'},
{id: 14, shape: 'circularImage', image: DIR + '14.png'}
];
// create connetions between people
// value corresponds with the amount of contact between two people
edges = [
{from: 1, to: 2},
{from: 2, to: 3},
{from: 2, to: 4},
{from: 4, to: 5},
{from: 4, to: 10},
{from: 4, to: 6},
{from: 6, to: 7},
{from: 7, to: 8},
{from: 8, to: 9},
{from: 8, to: 10},
{from: 10, to: 11},
{from: 11, to: 12},
{from: 12, to: 13},
{from: 13, to: 14},
];
// create a network
var container = document.getElementById('mynetwork');
var data = {
nodes: nodes,
edges: edges
};
var options = {
nodes: {
shape: 'circle',
borderWidth:4,
color: {
border: '#222222',
background: '#ffffff',
highlight: {
border: '#428eff',
background: '#ffffff'
}
},
fontColor:'#eeeeee'
},
edges: {
color: 'lightgray'
}
};
network = new vis.Network(container, data, options);
}
</script>
</head>
<body onload="draw()">
<div id="mynetwork"></div>
<div id="info"></div>
</body>
</html>

BIN
examples/network/img/indonesia/1.png View File

Before After
Width: 64  |  Height: 64  |  Size: 30 KiB

BIN
examples/network/img/indonesia/10.png View File

Before After
Width: 64  |  Height: 64  |  Size: 28 KiB

BIN
examples/network/img/indonesia/11.png View File

Before After
Width: 64  |  Height: 64  |  Size: 28 KiB

BIN
examples/network/img/indonesia/12.png View File

Before After
Width: 64  |  Height: 64  |  Size: 29 KiB

BIN
examples/network/img/indonesia/13.png View File

Before After
Width: 64  |  Height: 57  |  Size: 30 KiB

BIN
examples/network/img/indonesia/14.png View File

Before After
Width: 64  |  Height: 64  |  Size: 30 KiB

BIN
examples/network/img/indonesia/2.png View File

Before After
Width: 64  |  Height: 64  |  Size: 31 KiB

BIN
examples/network/img/indonesia/3.png View File

Before After
Width: 64  |  Height: 64  |  Size: 31 KiB

BIN
examples/network/img/indonesia/4.png View File

Before After
Width: 64  |  Height: 64  |  Size: 31 KiB

BIN
examples/network/img/indonesia/5.png View File

Before After
Width: 64  |  Height: 64  |  Size: 31 KiB

BIN
examples/network/img/indonesia/6.png View File

Before After
Width: 64  |  Height: 64  |  Size: 30 KiB

BIN
examples/network/img/indonesia/7.png View File

Before After
Width: 64  |  Height: 64  |  Size: 29 KiB

BIN
examples/network/img/indonesia/8.png View File

Before After
Width: 64  |  Height: 64  |  Size: 31 KiB

BIN
examples/network/img/indonesia/9.png View File

Before After
Width: 64  |  Height: 64  |  Size: 30 KiB

+ 1
- 0
examples/network/index.html View File

@ -45,6 +45,7 @@
<p><a href="31_localization.html">31_localization.html</a></p>
<p><a href="32_hierarchicaLayoutMethods.html">32_hierarchicaLayoutMethods.html</a></p>
<p><a href="33_animation.html">33_animation.html</a></p>
<p><a href="34_circular_images.html">34_circular_images.html</a></p>
<p><a href="graphviz/graphviz_gallery.html">graphviz_gallery.html</a></p>
</div>

+ 53
- 0
examples/timeline/32_grid_styling.html View File

@ -0,0 +1,53 @@
<!DOCTYPE HTML>
<html>
<head>
<title>Timeline | Grid styling</title>
<script src="../../dist/vis.js"></script>
<link href="../../dist/vis.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body, html {
font-family: sans-serif;
}
/* alternating column backgrounds */
.vis.timeline .timeaxis .grid.odd {
background: #f5f5f5;
}
/* gray background in weekends, white text color */
.vis.timeline .timeaxis .grid.saturday,
.vis.timeline .timeaxis .grid.sunday {
background: gray;
}
.vis.timeline .timeaxis .text.saturday,
.vis.timeline .timeaxis .text.sunday {
color: white;
}
</style>
</head>
<body>
<div id="visualization"></div>
<script type="text/javascript">
// 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([
{id: 1, content: 'custom', start: '2015-01-01'},
{id: 2, content: 'styling', start: '2016-01-01'},
{id: 3, content: 'of', start: '2017-01-01'},
{id: 4, content: 'background', start: '2018-01-01'},
{id: 5, content: 'grid', start: '2019-01-01'}
]);
// Configuration for the Timeline
var options = {};
// Create a Timeline
var timeline = new vis.Timeline(container, items, options);
</script>
</body>
</html>

+ 1
- 0
examples/timeline/index.html View File

@ -42,6 +42,7 @@
<p><a href="29_hiding_times.html">29_hiding_times.html</a></p>
<p><a href="30_subgroups.html">30_subgroups.html</a></p>
<p><a href="31_background_areas_with_groups.html">31_background_areas_with_groups.html</a></p>
<p><a href="32_grid_styling.html">32_grid_styling.html</a></p>
<p><a href="requirejs/requirejs_example.html">requirejs_example.html</a></p>

+ 1
- 1
network_examples.html View File

@ -384,7 +384,7 @@
</a>
</div>
<div class="col-lg-2 col-md-3 col-sm-6">
<a href="examples/network/graphviz/34_circularImages.html">
<a href="examples/network/graphviz/34_circular_images.html">
<img class="example img-responsive" src="./images/exampleScreenshots/network/34.png">
<div class="exampleTitle">circular images</div>
</a>

+ 7
- 0
timeline_examples.html View File

@ -341,6 +341,7 @@
<div class="exampleTitle">templates</div>
</a>
</div>
<!--there is no example 28?-->
<div class="col-lg-2 col-md-3 col-sm-6">
<a href="examples/timeline/29_hiding_times.html">
<img class="example img-responsive" src="./images/exampleScreenshots/timeline/28.png">
@ -359,6 +360,12 @@
<div class="exampleTitle">background areas with groups</div>
</a>
</div>
<div class="col-lg-2 col-md-3 col-sm-6">
<a href="examples/timeline/32_grid_styling.html">
<img class="example img-responsive" src="./images/exampleScreenshots/timeline/31.png">
<div class="exampleTitle">grid styling</div>
</a>
</div>
</div>
<br />
<br />

Loading…
Cancel
Save