vis.js is a dynamic, browser-based visualization library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

845 lines
21 KiB

  1. <!doctype html>
  2. <html>
  3. <head>
  4. <title>vis.js | DataSet documentation</title>
  5. <link href="css/prettify.css" type="text/css" rel="stylesheet" />
  6. <link href='css/style.css' type='text/css' rel='stylesheet'>
  7. <script type="text/javascript" src="lib/prettify/prettify.js"></script>
  8. </head>
  9. <body onload="prettyPrint();">
  10. <div id="container">
  11. <h1>DataSet documentation</h1>
  12. <h2 id="Contents">Contents</h2>
  13. <ul>
  14. <li><a href="#Overview">Overview</a></li>
  15. <li><a href="#Example">Example</a></li>
  16. <li><a href="#Construction">Construction</a></li>
  17. <li><a href="#Methods">Methods</a></li>
  18. <li><a href="#Subscriptions">Subscriptions</a></li>
  19. <li><a href="#Data_Manipulation">Data Manipulation</a></li>
  20. <li><a href="#Data_Selection">Data Selection</a></li>
  21. <li><a href="#Data_Policy">Data Policy</a></li>
  22. </ul>
  23. <h2 id="Overview">Overview</h2>
  24. <p>
  25. Vis.js comes with a flexible DataSet, which can be used to hold and
  26. manipulate unstructured data and listen for changes in the data.
  27. The DataSet is key/value based. Data items can be added, updated and
  28. removed from the DatSet, and one can subscribe to changes in the DataSet.
  29. The data in the DataSet can be filtered and ordered, and fields (like
  30. dates) can be converted to a specific type. Data can be normalized when
  31. appending it to the DataSet as well.
  32. </p>
  33. <h2 id="Example">Example</h2>
  34. <p>
  35. The following example shows how to use a DataSet.
  36. </p>
  37. <pre class="prettyprint lang-js">
  38. // create a DataSet
  39. var options = {};
  40. var data = new vis.DataSet(options);
  41. // add items
  42. // note that the data items can contain different properties and data formats
  43. data.add([
  44. {id: 1, text: 'item 1', date: new Date(2013, 6, 20), group: 1, first: true},
  45. {id: 2, text: 'item 2', date: '2013-06-23', group: 2},
  46. {id: 3, text: 'item 3', date: '2013-06-25', group: 2},
  47. {id: 4, text: 'item 4'}
  48. ]);
  49. // subscribe to any change in the DataSet
  50. data.on('*', function (event, properties, senderId) {
  51. console.log('event', event, properties);
  52. });
  53. // update an existing item
  54. data.update({id: 2, group: 1});
  55. // remove an item
  56. data.remove(4);
  57. // get all ids
  58. var ids = data.getIds();
  59. console.log('ids', ids);
  60. // get a specific item
  61. var item1 = data.get(1);
  62. console.log('item1', item1);
  63. // retrieve a filtered subset of the data
  64. var items = data.get({
  65. filter: function (item) {
  66. return item.group == 1;
  67. }
  68. });
  69. console.log('filtered items', items);
  70. // retrieve formatted items
  71. var items = data.get({
  72. fields: ['id', 'date'],
  73. convert: {
  74. date: 'ISODate'
  75. }
  76. });
  77. console.log('formatted items', items);
  78. </pre>
  79. <h2 id="Construction">Construction</h2>
  80. <p>
  81. A DataSet can be constructed as:
  82. </p>
  83. <pre class="prettyprint lang-js">
  84. var data = new vis.DataSet([data] [, options])
  85. </pre>
  86. <p>
  87. After construction, data can be added to the DataSet using the methods
  88. <code>add</code> and <code>update</code>, as described in section
  89. <a href="#Data_Manipulation">Data Manipulation</a>.
  90. </p>
  91. <p>
  92. The parameter <code>data</code>code> is optional and can be an Array or
  93. Google DataTable with items.
  94. </p>
  95. <p>
  96. The parameter <code>options</code> is optional and is an object which can
  97. contain the following properties:
  98. </p>
  99. <table>
  100. <tr>
  101. <th>Name</th>
  102. <th>Type</th>
  103. <th>Default value</th>
  104. <th>Description</th>
  105. </tr>
  106. <tr>
  107. <td>fieldId</td>
  108. <td>String</td>
  109. <td>"id"</td>
  110. <td>
  111. The name of the field containing the id of the items.
  112. When data is fetched from a server which uses some specific
  113. field to identify items, this field name can be specified
  114. in the DataSet using the option <code>fieldId</code>.
  115. For example <a href="http://couchdb.apache.org/"
  116. target="_blank">CouchDB</a> uses the field
  117. <code>"_id"</code> to identify documents.
  118. </td>
  119. </tr>
  120. <tr>
  121. <td>convert</td>
  122. <td>Object.&lt;String,&nbsp;String&gt;</td>
  123. <td>none</td>
  124. <td>
  125. An object containing field names as key, and data types as
  126. value. By default, the type of the properties of items are left
  127. unchanged. Item properties can be normalized by specifying a
  128. field type. This is useful for example to automatically convert
  129. stringified dates coming from a server into JavaScript Date
  130. objects. The available data types are listed in section
  131. <a href="#Data_Types">Data Types</a>.
  132. </td>
  133. </tr>
  134. </table>
  135. <h2 id="Methods">Methods</h2>
  136. <p>DataSet contains the following methods.</p>
  137. <table>
  138. <colgroup>
  139. <col width="200">
  140. </colgroup>
  141. <tr>
  142. <th>Method</th>
  143. <th>Return Type</th>
  144. <th>Description</th>
  145. </tr>
  146. <tr>
  147. <td>add(data [, senderId])</td>
  148. <td>Number[]</td>
  149. <td>Add data to the DataSet. Adding an item will fail when there already is an item with the same id. The function returns an array with the ids of the added items. See section <a href="#Data_Manipulation">Data Manipulation</a>.</td>
  150. </tr>
  151. <tr>
  152. <td>clear([senderId])</td>
  153. <td>Number[]</td>
  154. <td>Clear all data from the DataSet. The function returns an array with the ids of the removed items.</td>
  155. </tr>
  156. <tr>
  157. <td>distinct(field)</td>
  158. <td>Array</td>
  159. <td>Find all distinct values of a specified field. Returns an unordered array containing all distinct values. If data items do not contain the specified field are ignored.</td>
  160. </tr>
  161. <tr>
  162. <td>forEach(callback [, options])</td>
  163. <td>none</td>
  164. <td>
  165. Execute a callback function for every item in the dataset.
  166. The available options are described in section <a href="#Data_Selection">Data Selection</a>.
  167. </td>
  168. </tr>
  169. <tr>
  170. <td>
  171. get([options] [, data])<br>
  172. get(id [,options] [, data])<br>
  173. get(ids [, options] [, data])
  174. </td>
  175. <td>Object | Array | DataTable</td>
  176. <td>
  177. Get a single item, multiple items, or all items from the DataSet.
  178. Usage examples can be found in section <a href="#Getting_Data">Getting Data</a>, and the available <code>options</code> are described in section <a href="#Data_Selection">Data Selection</a>. If parameter <code>data</code> isprovided, items will be appended to this array or table, which is required in case of Google DataTable.
  179. </td>
  180. </tr>
  181. <tr>
  182. <td>
  183. getIds([options])
  184. </td>
  185. <td>Number[]</td>
  186. <td>
  187. Get ids of all items or of a filtered set of items.
  188. Available <code>options</code> are described in section <a href="#Data_Selection">Data Selection</a>, except that options <code>fields</code> and <code>convert</code> are not applicable in case of <code>getIds</code>.
  189. </td>
  190. </tr>
  191. <tr>
  192. <td>map(callback [, options])</td>
  193. <td>Array</td>
  194. <td>
  195. Map every item in the DataSet.
  196. The available options are described in section <a href="#Data_Selection">Data Selection</a>.
  197. </td>
  198. </tr>
  199. <tr>
  200. <td>max(field)</td>
  201. <td>Object | null</td>
  202. <td>
  203. Find the item with maximum value of specified field. Returns <code>null</code> if no item is found.
  204. </td>
  205. </tr>
  206. <tr>
  207. <td>min(field)</td>
  208. <td>Object | null</td>
  209. <td>
  210. Find the item with minimum value of specified field. Returns <code>null</code> if no item is found.
  211. </td>
  212. </tr>
  213. <tr>
  214. <td>off(event, callback)</td>
  215. <td>none</td>
  216. <td>
  217. Unsubscribe from an event, remove an event listener. See section <a href="#Subscriptions">Subscriptions</a>.
  218. </td>
  219. </tr>
  220. <tr>
  221. <td>on(event, callback)</td>
  222. <td>none</td>
  223. <td>
  224. Subscribe to an event, add an event listener. See section <a href="#Subscriptions">Subscriptions</a>.
  225. </td>
  226. </tr>
  227. <tr>
  228. <td>
  229. remove(id [, senderId])<br>
  230. remove(ids [, senderId])
  231. </td>
  232. <td>Number[]</td>
  233. <td>
  234. Remove on ore multiple items by id or by the items themselves. Returns an array with the ids of the removed items. See section <a href="#Data_Manipulation">Data Manipulation</a>.
  235. </td>
  236. </tr>
  237. <tr>
  238. <td>
  239. update(id [, senderId])<br>
  240. update(ids [, senderId])
  241. </td>
  242. <td>Number[]</td>
  243. <td>
  244. Update on ore existing items. When an item doesn't exist, it will be created. Returns an array with the ids of the removed items. See section <a href="#Data_Manipulation">Data Manipulation</a>.
  245. </td>
  246. </tr>
  247. </table>
  248. <h2 id="Subscriptions">Subscriptions</h2>
  249. <p>
  250. One can subscribe on changes in a DataSet.
  251. A subscription can be created using the method <code>on</code>,
  252. and removed with <code>off</code>.
  253. </p>
  254. <pre class="prettyprint lang-js">
  255. // create a DataSet
  256. var data = new vis.DataSet();
  257. // subscribe to any change in the DataSet
  258. data.on('*', function (event, properties, senderId) {
  259. console.log('event:', event, 'properties:', properties, 'senderId:', senderId);
  260. });
  261. // add an item
  262. data.add({id: 1, text: 'item 1'}); // triggers an 'add' event
  263. data.update({id: 1, text: 'item 1 (updated)'}); // triggers an 'update' event
  264. data.remove(1); // triggers an 'remove' event
  265. </pre>
  266. <h3 id="On">On</h3>
  267. <p>
  268. Subscribe to an event.
  269. </p>
  270. Syntax:
  271. <pre class="prettyprint lang-js">DataSet.on(event, callback)</pre>
  272. Where:
  273. <ul>
  274. <li>
  275. <code>event</code> is a String containing any of the events listed
  276. in section <a href="#Events">Events</a>.
  277. </li>
  278. <li>
  279. <code>callback</code> is a callback function which will be called
  280. each time the event occurs. The callback function is described in
  281. section <a href="#Callback">Callback</a>.
  282. </li>
  283. </ul>
  284. <h3 id="Off">Off</h3>
  285. <p>
  286. Unsubscribe from an event.
  287. </p>
  288. Syntax:
  289. <pre class="prettyprint lang-js">DataSet.off(event, callback)</pre>
  290. Where <code>event</code> and <code>callback</code> correspond with the
  291. parameters used to <a href="#On">subscribe</a> to the event.
  292. <h3 id="Events">Events</h3>
  293. <p>
  294. The following events are available for subscription:
  295. </p>
  296. <table>
  297. <tr>
  298. <th>Event</th>
  299. <th>Description</th>
  300. </tr>
  301. <tr>
  302. <td>add</td>
  303. <td>
  304. The <code>add</code> event is triggered when an item
  305. or a set of items is added, or when an item is updated while
  306. not yet existing.
  307. </td>
  308. </tr>
  309. <tr>
  310. <td>update</td>
  311. <td>
  312. The <code>update</code> event is triggered when an existing item
  313. or a set of existing items is updated.
  314. </td>
  315. </tr>
  316. <tr>
  317. <td>remove</td>
  318. <td>
  319. The <code>remove</code> event is triggered when an item
  320. or a set of items is removed.
  321. </td>
  322. </tr>
  323. <tr>
  324. <td>*</td>
  325. <td>
  326. The <code>*</code> event is triggered when any of the events
  327. <code>add</code>, <code>update</code>, and <code>remove</code>
  328. occurs.
  329. </td>
  330. </tr>
  331. </table>
  332. <h3 id="Callback">Callback</h3>
  333. <p>
  334. The callback functions of subscribers are called with the following
  335. parameters:
  336. </p>
  337. <pre class="prettyprint lang-js">
  338. function (event, properties, senderId) {
  339. // handle the event
  340. });
  341. </pre>
  342. <p>
  343. where the parameters are defined as
  344. </p>
  345. <table>
  346. <tr>
  347. <th>Parameter</th>
  348. <th>Type</th>
  349. <th>Description</th>
  350. </tr>
  351. <tr>
  352. <td>event</td>
  353. <td>String</td>
  354. <td>
  355. Any of the available events: <code>add</code>,
  356. <code>update</code>, or <code>remove</code>.
  357. </td>
  358. </tr>
  359. <tr>
  360. <td>properties</td>
  361. <td>Object&nbsp;|&nbsp;null</td>
  362. <td>
  363. Optional properties providing more information on the event.
  364. In case of the events <code>add</code>,
  365. <code>update</code>, and <code>remove</code>,
  366. <code>properties</code> is always an object containing a property
  367. items, which contains an array with the ids of the affected
  368. items.
  369. </td>
  370. </tr>
  371. <tr>
  372. <td>senderId</td>
  373. <td>String&nbsp;|&nbsp;Number</td>
  374. <td>
  375. An senderId, optionally provided by the application code
  376. which triggered the event. If senderId is not provided, the
  377. argument will be <code>null</code>.
  378. </td>
  379. </tr>
  380. </table>
  381. <h2 id="Data_Manipulation">Data Manipulation</h2>
  382. <p>
  383. The data in a DataSet can be manipulated using the methods
  384. <a href="#Add"><code>add</code></a>,
  385. <a href="#Update"><code>update</code></a>,
  386. and <a href="#Remove"><code>remove</code></a>.
  387. The DataSet can be emptied using the method
  388. <a href="#Clear"><code>clear</code></a>.
  389. </p>
  390. <pre class="prettyprint lang-js">
  391. // create a DataSet
  392. var data = new vis.DataSet();
  393. // add items
  394. data.add([
  395. {id: 1, text: 'item 1'},
  396. {id: 2, text: 'item 2'},
  397. {id: 3, text: 'item 3'}
  398. ]);
  399. // update an item
  400. data.update({id: 2, text: 'item 2 (updated)'});
  401. // remove an item
  402. data.remove(3);
  403. </pre>
  404. <h3 id="Add">Add</h3>
  405. <p>
  406. Add a data item or an array with items.
  407. </p>
  408. Syntax:
  409. <pre class="prettyprint lang-js">var addedIds = DataSet.add(data [, senderId])</pre>
  410. The argument <code>data</code> can contain:
  411. <ul>
  412. <li>
  413. An <code>Object</code> containing a single item to be
  414. added. The item must contain an id.
  415. </li>
  416. <li>
  417. An <code>Array</code> or
  418. <code>google.visualization.DataTable</code> containing
  419. a list with items to be added. Each item must contain
  420. an id.
  421. </li>
  422. </ul>
  423. <p>
  424. After the items are added to the DataSet, the DataSet will
  425. trigger an event <code>add</code>. When a <code>senderId</code>
  426. is provided, this id will be passed with the triggered
  427. event to all subscribers.
  428. </p>
  429. <p>
  430. The method will throw an Error when an item with the same id
  431. as any of the added items already exists.
  432. </p>
  433. <h3 id="Update">Update</h3>
  434. <p>
  435. Update a data item or an array with items.
  436. </p>
  437. Syntax:
  438. <pre class="prettyprint lang-js">var updatedIds = DataSet.update(data [, senderId])</pre>
  439. The argument <code>data</code> can contain:
  440. <ul>
  441. <li>
  442. An <code>Object</code> containing a single item to be
  443. updated. The item must contain an id.
  444. </li>
  445. <li>
  446. An <code>Array</code> or
  447. <code>google.visualization.DataTable</code> containing
  448. a list with items to be updated. Each item must contain
  449. an id.
  450. </li>
  451. </ul>
  452. <p>
  453. The provided properties will be merged in the existing item.
  454. When an item does not exist, it will be created.
  455. </p>
  456. <p>
  457. After the items are updated, the DataSet will
  458. trigger an event <code>add</code> for the added items, and
  459. an event <code>update</code>. When a <code>senderId</code>
  460. is provided, this id will be passed with the triggered
  461. event to all subscribers.
  462. </p>
  463. <h3 id="Remove">Remove</h3>
  464. <p>
  465. Remove a data item or an array with items.
  466. </p>
  467. Syntax:
  468. <pre class="prettyprint lang-js">var removedIds = DataSet.remove(id [, senderId])</pre>
  469. <p>
  470. The argument <code>id</code> can be:
  471. </p>
  472. <ul>
  473. <li>
  474. A <code>Number</code> or <code>String</code> containing the id
  475. of a single item to be removed.
  476. </li>
  477. <li>
  478. An <code>Object</code> containing the item to be deleted.
  479. The item will be deleted by its id.
  480. </li>
  481. <li>
  482. An Array containing ids or items to be removed.
  483. </li>
  484. </ul>
  485. <p>
  486. The method ignores removal of non-existing items, and returns an array
  487. containing the ids of the items which are actually removed from the
  488. DataSet.
  489. </p>
  490. <p>
  491. After the items are removed, the DataSet will
  492. trigger an event <code>remove</code> for the removed items.
  493. When a <code>senderId</code> is provided, this id will be passed with
  494. the triggered event to all subscribers.
  495. </p>
  496. <h3 id="Clear">Clear</h3>
  497. <p>
  498. Clear the complete DataSet.
  499. </p>
  500. Syntax:
  501. <pre class="prettyprint lang-js">var removedIds = DataSet.clear([senderId])</pre>
  502. <p>
  503. After the items are removed, the DataSet will
  504. trigger an event <code>remove</code> for all removed items.
  505. When a <code>senderId</code> is provided, this id will be passed with
  506. the triggered event to all subscribers.
  507. </p>
  508. <h2 id="Data_Selection">Data Selection</h2>
  509. <p>
  510. The DataSet contains functionality to format, filter, and sort data retrieved via the
  511. methods <code>get</code>, <code>getIds</code>, <code>forEach</code>, and <code>map</code>. These methods have the following syntax:
  512. </p>
  513. <pre class="prettyprint lang-js">
  514. DataSet.get([id] [, options] [, data]);
  515. DataSet.getIds([options]);
  516. DataSet.forEach(callback [, options]);
  517. DataSet.map(callback [, options]);
  518. </pre>
  519. <p>
  520. Where <code>options</code> is an Object which can have the following
  521. properties:
  522. </p>
  523. <table>
  524. <tr>
  525. <th>Name</th>
  526. <th>Type</th>
  527. <th>Description</th>
  528. </tr>
  529. <tr>
  530. <td>fields</td>
  531. <td>String[&nbsp;]</td>
  532. <td>
  533. An array with field names.
  534. By default, all properties of the items are emitted.
  535. When <code>fields</code> is defined, only the properties
  536. whose name is specified in <code>fields</code> will be included
  537. in the returned items.
  538. </td>
  539. </tr>
  540. <tr>
  541. <td>convert</td>
  542. <td>Object.&lt;String,&nbsp;String&gt;</td>
  543. <td>
  544. An object containing field names as key, and data types as value.
  545. By default, the type of the properties of an item are left
  546. unchanged. When a field type is specified, this field in the
  547. items will be converted to the specified type. This can be used
  548. for example to convert ISO strings containing a date to a
  549. JavaScript Date object, or convert strings to numbers or vice
  550. versa. The available data types are listed in section
  551. <a href="#Data_Types">Data Types</a>.
  552. </td>
  553. </tr>
  554. <tr>
  555. <td>filter</td>
  556. <td>Function</td>
  557. <td>Items can be filtered on specific properties by providing a filter
  558. function. A filter function is executed for each of the items in the
  559. DataSet, and is called with the item as parameter. The function must
  560. return a boolean. All items for which the filter function returns
  561. true will be emitted.
  562. See section <a href="#Data_Filtering">Data Filtering</a>.</td>
  563. </tr>
  564. <tr>
  565. <td>order</td>
  566. <td>String | Function</td>
  567. <td>Order the items by a field name or custom sort function.</td>
  568. </tr>
  569. </table>
  570. <p>
  571. The following example demonstrates formatting properties and filtering
  572. properties from items.
  573. </p>
  574. <pre class="prettyprint lang-js">
  575. // create a DataSet
  576. var data = new vis.DataSet();
  577. data.add([
  578. {id: 1, text: 'item 1', date: '2013-06-20', group: 1, first: true},
  579. {id: 2, text: 'item 2', date: '2013-06-23', group: 2},
  580. {id: 3, text: 'item 3', date: '2013-06-25', group: 2},
  581. {id: 4, text: 'item 4'}
  582. ]);
  583. // retrieve formatted items
  584. var items = data.get({
  585. fields: ['id', 'date', 'group'], // output the specified fields only
  586. convert: {
  587. date: 'Date', // convert the date fields to Date objects
  588. group: 'String' // convert the group fields to Strings
  589. }
  590. });
  591. </pre>
  592. <h3 id="Getting_Data">Getting Data</h3>
  593. <p>
  594. Data can be retrieved from the DataSet using the method <code>get</code>.
  595. This method can return a single item or a list with items.
  596. </p>
  597. <p>A single item can be retrieved by its id:</p>
  598. <pre class="prettyprint lang-js">
  599. var item1 = dataset.get(1);
  600. </pre>
  601. <p>A selection of items can be retrieved by providing an array with ids:</p>
  602. <pre class="prettyprint lang-js">
  603. var items = dataset.get([1, 3, 4]); // retrieve items 1, 3, and 4
  604. </pre>
  605. <p>All items can be retrieved by simply calling <code>get</code> without
  606. specifying an id:</p>
  607. <pre class="prettyprint lang-js">
  608. var items = dataset.get(); // retrieve all items
  609. </pre>
  610. <h3 id="Data_Filtering">Data Filtering</h3>
  611. <p>
  612. Items can be filtered on specific properties by providing a filter
  613. function. A filter function is executed for each of the items in the
  614. DataSet, and is called with the item as parameter. The function must
  615. return a boolean. All items for which the filter function returns
  616. true will be emitted.
  617. </p>
  618. <pre class="prettyprint lang-js">
  619. // retrieve all items having a property group with value 2
  620. var group2 = dataset.get({
  621. filter: function (item) {
  622. return (item.group == 2);
  623. }
  624. });
  625. // retrieve all items having a property balance with a value above zero
  626. var positiveBalance = dataset.get({
  627. filter: function (item) {
  628. return (item.balance > 0);
  629. }
  630. });
  631. </pre>
  632. <h3 id="Data_Types">Data Types</h3>
  633. <p>
  634. DataSet supports the following data types:
  635. </p>
  636. <table style="width: 100%">
  637. <tr>
  638. <th>Name</th>
  639. <th>Description</th>
  640. <th>Examples</th>
  641. </tr>
  642. <tr>
  643. <td>Boolean</td>
  644. <td>A JavaScript Boolean</td>
  645. <td>
  646. <code>true</code><br>
  647. <code>false</code>
  648. </td>
  649. </tr>
  650. <tr>
  651. <td>Number</td>
  652. <td>A JavaScript Number</td>
  653. <td>
  654. <code>32</code><br>
  655. <code>2.4</code>
  656. </td>
  657. </tr>
  658. <tr>
  659. <td>String</td>
  660. <td>A JavaScript String</td>
  661. <td>
  662. <code>"hello world"</code><br>
  663. <code>"2013-06-28"</code>
  664. </td>
  665. </tr>
  666. <tr>
  667. <td>Date</td>
  668. <td>A JavaScript Date object</td>
  669. <td>
  670. <code>new Date()</code><br>
  671. <code>new Date(2013, 5, 28)</code><br>
  672. <code>new Date(1372370400000)</code>
  673. </td>
  674. </tr>
  675. <tr>
  676. <td>Moment</td>
  677. <td>A Moment object, created with
  678. <a href="http://momentjs.com/" target="_blank">moment.js</a></td>
  679. <td>
  680. <code>moment()</code><br>
  681. <code>moment('2013-06-28')</code>
  682. </td>
  683. </tr>
  684. <tr>
  685. <td>ISODate</td>
  686. <td>A string containing an ISO Date</td>
  687. <td>
  688. <code>new Date().toISOString()</code><br>
  689. <code>"2013-06-27T22:00:00.000Z"</code>
  690. </td>
  691. </tr>
  692. <tr>
  693. <td>ASPDate</td>
  694. <td>A string containing an ASP Date</td>
  695. <td>
  696. <code>"/Date(1372370400000)/"</code><br>
  697. <code>"/Date(1198908717056-0700)/"</code>
  698. </td>
  699. </tr>
  700. </table>
  701. <h2 id="Data_Policy">Data Policy</h2>
  702. <p>
  703. All code and data is processed and rendered in the browser.
  704. No data is sent to any server.
  705. </p>
  706. </div>
  707. </body>
  708. </html>