Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

[timeline] Update examples to use ISOString format. #2791

Merged
merged 1 commit into from
Feb 26, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/timeline/groups/subgroups.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

{id: 'SG_1_1',start: '2014-01-25', end: '2014-01-27', type: 'background', group:'bar', subgroup:'sg_1', subgroupOrder:0},
{id: 'SG_1_2', start: '2014-01-26', end: '2014-01-27', type: 'background', className: 'positive',group:'bar', subgroup:'sg_1', subgroupOrder:0},
{id: 1, content: 'subgroup0', start: '2014-01-23 12:00:00', end: '2014-01-26 12:00:00',group:'bar', subgroup:'sg_1', subgroupOrder:0},
{id: 1, content: 'subgroup0', start: '2014-01-23T12:00:00', end: '2014-01-26T12:00:00',group:'bar', subgroup:'sg_1', subgroupOrder:0},
{id: 'SG_2_1', start: '2014-01-27', end: '2014-01-29', type: 'background', group:'bar', subgroup:'sg_2', subgroupOrder:1},
{id: 'SG_2_2', start: '2014-01-27', end: '2014-01-28', type: 'background', className: 'negative',group:'bar', subgroup:'sg_2', subgroupOrder:1},
{id: 2, content: 'subgroup1', start: '2014-01-27', end: '2014-01-29',group:'bar', subgroup:'sg_2', subgroupOrder:1},
Expand All @@ -78,4 +78,4 @@
}
</script>
</body>
</html>
</html>
18 changes: 9 additions & 9 deletions examples/timeline/items/expectedVsActualTimesItems.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@
id: 1,
content: 'item 1 (expected time)',
className: 'expected',
start: '2014-01-23 12:00:00',
end: '2014-01-26 12:00:00',
start: '2014-01-23T12:00:00',
end: '2014-01-26T12:00:00',
group:'group1',
subgroup:'sg_1'
},
{
id: 2,
content: 'item 1 (actual time)',
start: '2014-01-24 12:00:00',
end: '2014-01-27 12:00:00',
start: '2014-01-24T12:00:00',
end: '2014-01-27T12:00:00',
group:'group1',
subgroup:'sg_1'
},
Expand All @@ -80,16 +80,16 @@
id: 3,
content: 'item 2 (expected time)',
className: 'expected',
start: '2014-01-13 12:00:00',
end: '2014-01-16 12:00:00',
start: '2014-01-13T12:00:00',
end: '2014-01-16T12:00:00',
group:'group1',
subgroup:'sg_2'
},
{
id: 4,
content: 'item 2 (actual time)',
start: '2014-01-14 12:00:00',
end: '2014-01-17 12:00:00',
start: '2014-01-14T12:00:00',
end: '2014-01-17T12:00:00',
group:'group1',
subgroup:'sg_2'
}
Expand All @@ -108,4 +108,4 @@

</script>
</body>
</html>
</html>
32 changes: 16 additions & 16 deletions examples/timeline/resources/data/wk2014.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"abbr2": "cl",
"score2": "1 (2)",
"description": "round of 16",
"start": "2014-06-28 13:00"
"start": "2014-06-28T13:00"
},
{
"player1": "Colombia",
Expand All @@ -17,7 +17,7 @@
"abbr2": "uy",
"score2": 0,
"description": "round of 16",
"start": "2014-06-28 17:00"
"start": "2014-06-28T17:00"
},
{
"player1": "Netherlands",
Expand All @@ -27,7 +27,7 @@
"abbr2": "mx",
"score2": 1,
"description": "round of 16",
"start": "2014-06-29 13:00"
"start": "2014-06-29T13:00"
},
{
"player1": "Costa Rica",
Expand All @@ -37,7 +37,7 @@
"abbr2": "gr",
"score2": "1 (3)",
"description": "round of 16",
"start": "2014-06-29 17:00"
"start": "2014-06-29T17:00"
},
{
"player1": "France",
Expand All @@ -47,7 +47,7 @@
"abbr2": "ng",
"score2": 0,
"description": "round of 16",
"start": "2014-06-30 13:00"
"start": "2014-06-30T13:00"
},
{
"player1": "Germany",
Expand All @@ -57,7 +57,7 @@
"abbr2": "dz",
"score2": 1,
"description": "round of 16",
"start": "2014-06-30 17:00"
"start": "2014-06-30T17:00"
},
{
"player1": "Argentina",
Expand All @@ -67,7 +67,7 @@
"abbr2": "ch",
"score2": 0,
"description": "round of 16",
"start": "2014-07-01 13:00"
"start": "2014-07-01T13:00"
},
{
"player1": "Belgium",
Expand All @@ -77,7 +77,7 @@
"abbr2": "us",
"score2": 1,
"description": "round of 16",
"start": "2014-07-01 17:00"
"start": "2014-07-01T17:00"
},
{
"player1": "France",
Expand All @@ -87,7 +87,7 @@
"abbr2": "de",
"score2": 1,
"description": "quarter-finals",
"start": "2014-07-04 13:00"
"start": "2014-07-04T13:00"
},
{
"player1": "Brazil",
Expand All @@ -97,7 +97,7 @@
"abbr2": "co",
"score2": 1,
"description": "quarter-finals",
"start": "2014-07-04 17:00"
"start": "2014-07-04T17:00"
},
{
"player1": "Argentina",
Expand All @@ -107,7 +107,7 @@
"abbr2": "be",
"score2": 0,
"description": "quarter-finals",
"start": "2014-07-05 13:00"
"start": "2014-07-05T13:00"
},
{
"player1": "Netherlands",
Expand All @@ -117,7 +117,7 @@
"abbr2": "cr",
"score2": "0 (3)",
"description": "quarter-finals",
"start": "2014-07-05 17:00"
"start": "2014-07-05T17:00"
},
{
"player1": "Brazil",
Expand All @@ -127,7 +127,7 @@
"abbr2": "de",
"score2": 7,
"description": "semi-finals",
"start": "2014-07-08 17:00"
"start": "2014-07-08T17:00"
},
{
"player1": "Netherlands",
Expand All @@ -137,7 +137,7 @@
"abbr2": "ar",
"score2": "0 (4)",
"description": "semi-finals",
"start": "2014-07-09 17:00"
"start": "2014-07-09T17:00"
},
{
"player1": "Germany",
Expand All @@ -147,6 +147,6 @@
"abbr2": "ar",
"score2": 0,
"description": "final",
"start": "2014-07-13 16:00"
"start": "2014-07-13T16:00"
}
]
]
32 changes: 16 additions & 16 deletions examples/timeline/styling/itemTemplates.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ <h1>WK 2014</h1>
abbr2: 'cl',
score2: '1 (2)',
description: 'round of 16',
start: '2014-06-28 13:00'
start: '2014-06-28T13:00:00'
},
{
player1: 'Colombia',
Expand All @@ -98,7 +98,7 @@ <h1>WK 2014</h1>
abbr2: 'uy',
score2: 0,
description: 'round of 16',
start: '2014-06-28 17:00'
start: '2014-06-28T17:00:00'
},
{
player1: 'Netherlands',
Expand All @@ -108,7 +108,7 @@ <h1>WK 2014</h1>
abbr2: 'mx',
score2: 1,
description: 'round of 16',
start: '2014-06-29 13:00'
start: '2014-06-29T13:00:00'
},
{
player1: 'Costa Rica',
Expand All @@ -118,7 +118,7 @@ <h1>WK 2014</h1>
abbr2: 'gr',
score2: '1 (3)',
description: 'round of 16',
start: '2014-06-29 17:00'
start: '2014-06-29T17:00:00'
},
{
player1: 'France',
Expand All @@ -128,7 +128,7 @@ <h1>WK 2014</h1>
abbr2: 'ng',
score2: 0,
description: 'round of 16',
start: '2014-06-30 13:00'
start: '2014-06-30T13:00:00'
},
{
player1: 'Germany',
Expand All @@ -138,7 +138,7 @@ <h1>WK 2014</h1>
abbr2: 'dz',
score2: 1,
description: 'round of 16',
start: '2014-06-30 17:00'
start: '2014-06-30T17:00:00'
},
{
player1: 'Argentina',
Expand All @@ -148,7 +148,7 @@ <h1>WK 2014</h1>
abbr2: 'ch',
score2: 0,
description: 'round of 16',
start: '2014-07-01 13:00'
start: '2014-07-01T13:00:00'
},
{
player1: 'Belgium',
Expand All @@ -158,7 +158,7 @@ <h1>WK 2014</h1>
abbr2: 'us',
score2: 1,
description: 'round of 16',
start: '2014-07-01 17:00'
start: '2014-07-01T17:00:00'
},

// quarter-finals
Expand All @@ -170,7 +170,7 @@ <h1>WK 2014</h1>
abbr2: 'de',
score2: 1,
description: 'quarter-finals',
start: '2014-07-04 13:00'
start: '2014-07-04T13:00:00'
},
{
player1: 'Brazil',
Expand All @@ -180,7 +180,7 @@ <h1>WK 2014</h1>
abbr2: 'co',
score2: 1,
description: 'quarter-finals',
start: '2014-07-04 17:00'
start: '2014-07-04T17:00:00'
},
{
player1: 'Argentina',
Expand All @@ -190,7 +190,7 @@ <h1>WK 2014</h1>
abbr2: 'be',
score2: 0,
description: 'quarter-finals',
start: '2014-07-05 13:00'
start: '2014-07-05T13:00:00'
},
{
player1: 'Netherlands',
Expand All @@ -200,7 +200,7 @@ <h1>WK 2014</h1>
abbr2: 'cr',
score2: '0 (3)',
description: 'quarter-finals',
start: '2014-07-05 17:00'
start: '2014-07-05T17:00:00'
},

// semi-finals
Expand All @@ -212,7 +212,7 @@ <h1>WK 2014</h1>
abbr2: 'de',
score2: 7,
description: 'semi-finals',
start: '2014-07-08 17:00'
start: '2014-07-08T17:00:00'
},
{
player1: 'Netherlands',
Expand All @@ -222,7 +222,7 @@ <h1>WK 2014</h1>
abbr2: 'ar',
score2: '0 (4)',
description: 'semi-finals',
start: '2014-07-09 17:00'
start: '2014-07-09T17:00:00'
},

// final
Expand All @@ -234,7 +234,7 @@ <h1>WK 2014</h1>
abbr2: 'ar',
score2: 0,
description: 'final',
start: '2014-07-13 16:00'
start: '2014-07-13T16:00:00'
}
]);

Expand All @@ -248,4 +248,4 @@ <h1>WK 2014</h1>
var timeline = new vis.Timeline(container, items, options);
</script>
</body>
</html>
</html>