summaryrefslogtreecommitdiff
path: root/www/lib/vis/examples/timeline/dataHandling/dataSerialization.html
diff options
context:
space:
mode:
Diffstat (limited to 'www/lib/vis/examples/timeline/dataHandling/dataSerialization.html')
-rw-r--r--www/lib/vis/examples/timeline/dataHandling/dataSerialization.html21
1 files changed, 11 insertions, 10 deletions
diff --git a/www/lib/vis/examples/timeline/dataHandling/dataSerialization.html b/www/lib/vis/examples/timeline/dataHandling/dataSerialization.html
index 1b3fcfa7..79b6aebf 100644
--- a/www/lib/vis/examples/timeline/dataHandling/dataSerialization.html
+++ b/www/lib/vis/examples/timeline/dataHandling/dataSerialization.html
@@ -24,7 +24,7 @@
</style>
<script src="../../../dist/vis.js"></script>
- <link href="../../../dist/vis.css" rel="stylesheet" type="text/css" />
+ <link href="../../../dist/vis-timeline-graph2d.min.css" rel="stylesheet" type="text/css" />
<script src="../../googleAnalytics.js"></script>
</head>
<body>
@@ -35,12 +35,12 @@
<textarea id="data">
[
- {"id": 1, "content": "item 1<br>start", "start": "2014-01-23"},
- {"id": 2, "content": "item 2", "start": "2014-01-18"},
- {"id": 3, "content": "item 3", "start": "2014-01-21"},
- {"id": 4, "content": "item 4", "start": "2014-01-19", "end": "2014-01-24"},
- {"id": 5, "content": "item 5", "start": "2014-01-28", "type": "point"},
- {"id": 6, "content": "item 6", "start": "2014-01-26"}
+ {"id": 1, "content": "item 1", "start": "2014-01-01 01:00:00"},
+ {"id": 2, "content": "item 2", "start": "2014-01-01 02:00:00"},
+ {"id": 3, "content": "item 3", "start": "2014-01-01 03:00:00"},
+ {"id": 4, "content": "item 4", "start": "2014-01-01 04:00:00", "end": "2014-01-01 04:30:00"},
+ {"id": 5, "content": "item 5", "start": "2014-01-01 05:00:00", "type": "point"},
+ {"id": 6, "content": "item 6", "start": "2014-01-01 06:00:00"}
]
</textarea>
@@ -89,9 +89,10 @@
function saveData() {
// get the data from the DataSet
+ //
// Note that we specify the output type of the fields start and end
- // as ISODate, which is safely serializable. Other serializable types
- // are Number (unix timestamp) or ASPDate.
+ // as "ISODate", which is safely serializable. Other serializable types
+ // are "Number" (unix timestamp), "ASPDate" or "String" (without timezone!).
//
// Alternatively, it is possible to configure the DataSet to convert
// the output automatically to ISODates like:
@@ -118,4 +119,4 @@
loadData();
</script>
</body>
-</html> \ No newline at end of file
+</html>