summaryrefslogtreecommitdiff
path: root/www/lib/vis/examples/timeline/styling/gridStyling.html
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2017-09-21 12:49:18 -0400
committerPliable Pixels <pliablepixels@gmail.com>2017-09-21 12:49:18 -0400
commitb28028ac4082842143b0f528d6bc539da6ccb419 (patch)
tree1e26ea969a781ed8e323fca4e3c76345113fc694 /www/lib/vis/examples/timeline/styling/gridStyling.html
parent676270d21beed31d767a06c89522198c77d5d865 (diff)
mega changes, including updates and X
Diffstat (limited to 'www/lib/vis/examples/timeline/styling/gridStyling.html')
-rw-r--r--www/lib/vis/examples/timeline/styling/gridStyling.html54
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