diff options
Diffstat (limited to 'www/lib/vis/examples/timeline/styling/gridStyling.html')
| -rw-r--r-- | www/lib/vis/examples/timeline/styling/gridStyling.html | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/www/lib/vis/examples/timeline/styling/gridStyling.html b/www/lib/vis/examples/timeline/styling/gridStyling.html new file mode 100644 index 00000000..9fec28b2 --- /dev/null +++ b/www/lib/vis/examples/timeline/styling/gridStyling.html @@ -0,0 +1,54 @@ +<!DOCTYPE HTML> +<html> +<head> + <title>Timeline | Grid styling</title> + + <script src="../../../dist/vis.js"></script> + <link href="../../../dist/vis-timeline-graph2d.min.css" rel="stylesheet" type="text/css" /> + + <style type="text/css"> + body, html { + font-family: sans-serif; + } + + /* alternating column backgrounds */ + .vis-time-axis .vis-grid.vis-odd { + background: #f5f5f5; + } + + /* gray background in weekends, white text color */ + .vis-time-axis .vis-grid.vis-saturday, + .vis-time-axis .vis-grid.vis-sunday { + background: gray; + } + .vis-time-axis .vis-text.vis-saturday, + .vis-time-axis .vis-text.vis-sunday { + color: white; + } + </style> + <script src="../../googleAnalytics.js"></script> +</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>
\ No newline at end of file |
