diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2016-11-07 15:43:13 -0500 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2016-11-07 15:43:13 -0500 |
| commit | 77faead4e948f901fa6ca9951f085bbe045bae68 (patch) | |
| tree | 3f059e5e76ec5c037c7b2c76e53895a8a337fa3e /www/lib/vis/examples/timeline/dataHandling/dataSerialization.html | |
| parent | 5b80d3916cd91d630a0142f76a87b4863b714203 (diff) | |
Updated vis library to 4.17 and also linked to only graph2d-timeline CSS and JS
Diffstat (limited to 'www/lib/vis/examples/timeline/dataHandling/dataSerialization.html')
| -rw-r--r-- | www/lib/vis/examples/timeline/dataHandling/dataSerialization.html | 21 |
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> |
