From cfb327a24955afa4fb36662aa67a808ddf74b775 Mon Sep 17 00:00:00 2001 From: jos Date: Fri, 2 May 2014 11:06:11 +0200 Subject: [PATCH] More examples added --- examples/timeline/01_basic.html | 2 +- ...3_much_data.html => 03_a_lot_of_data.html} | 1 + examples/timeline/11_points.html | 57 +++++++++ examples/timeline/12_custom_styling.html | 88 ++++++++++++++ examples/timeline/13_past_and_future.html | 88 ++++++++++++++ .../timeline/14_a_lot_of_grouped_data.html | 109 +++++++++++++++++ examples/timeline/15_item_class_names.html | 115 ++++++++++++++++++ examples/timeline/index.html | 7 +- 8 files changed, 465 insertions(+), 2 deletions(-) rename examples/timeline/{03_much_data.html => 03_a_lot_of_data.html} (98%) create mode 100755 examples/timeline/11_points.html create mode 100644 examples/timeline/12_custom_styling.html create mode 100644 examples/timeline/13_past_and_future.html create mode 100644 examples/timeline/14_a_lot_of_grouped_data.html create mode 100755 examples/timeline/15_item_class_names.html diff --git a/examples/timeline/01_basic.html b/examples/timeline/01_basic.html index a9b2c2df..5dc030e0 100644 --- a/examples/timeline/01_basic.html +++ b/examples/timeline/01_basic.html @@ -23,7 +23,7 @@ {id: 3, content: 'item 3', start: '2014-04-18'}, {id: 4, content: 'item 4', start: '2014-04-16', end: '2014-04-19'}, {id: 5, content: 'item 5', start: '2014-04-25'}, - {id: 6, content: 'item 6', start: '2014-04-27'} + {id: 6, content: 'item 6', start: '2014-04-27', type: 'point'} ]; var options = {}; var timeline = new vis.Timeline(container, items, options); diff --git a/examples/timeline/03_much_data.html b/examples/timeline/03_a_lot_of_data.html similarity index 98% rename from examples/timeline/03_much_data.html rename to examples/timeline/03_a_lot_of_data.html index 8a81e3f2..fc703309 100644 --- a/examples/timeline/03_much_data.html +++ b/examples/timeline/03_a_lot_of_data.html @@ -53,6 +53,7 @@ var container = document.getElementById('visualization'); var options = { + editable: true, start: now.clone().add('days', -3), end: now.clone().add('days', 11), zoomMin: 1000 * 60 * 60 * 24, // a day diff --git a/examples/timeline/11_points.html b/examples/timeline/11_points.html new file mode 100755 index 00000000..2e64e09c --- /dev/null +++ b/examples/timeline/11_points.html @@ -0,0 +1,57 @@ + + + + Timeline | Points + + + + + + + +

World War II timeline

+

Source: http://www.onwar.com/chrono/index.htm

+
+ +
+ + + + diff --git a/examples/timeline/12_custom_styling.html b/examples/timeline/12_custom_styling.html new file mode 100644 index 00000000..0b184e5e --- /dev/null +++ b/examples/timeline/12_custom_styling.html @@ -0,0 +1,88 @@ + + + + Timeline | Custom styling + + + + + + + + + +
+ + + + \ No newline at end of file diff --git a/examples/timeline/13_past_and_future.html b/examples/timeline/13_past_and_future.html new file mode 100644 index 00000000..019dde17 --- /dev/null +++ b/examples/timeline/13_past_and_future.html @@ -0,0 +1,88 @@ + + + Timeline | Past and future + + + + + + + + +

+ When the custom time bar is shown, the user can drag this bar to a specific + time. The Timeline sends an event that the custom time is changed, after + which the contents of the timeline can be changed according to the specified + time in past or future. +

+ +
 
+

+ +
+ + + + + + diff --git a/examples/timeline/14_a_lot_of_grouped_data.html b/examples/timeline/14_a_lot_of_grouped_data.html new file mode 100644 index 00000000..de4d7b47 --- /dev/null +++ b/examples/timeline/14_a_lot_of_grouped_data.html @@ -0,0 +1,109 @@ + + + Timeline | A lot of grouped data + + + + + + + + +

Timeline grouping performance

+ +

+ Choose a number of items: + 100, + 1000, + 10000, + 100000 +

+

+ Current number of items: 100 +

+ +
+ + + + + diff --git a/examples/timeline/15_item_class_names.html b/examples/timeline/15_item_class_names.html new file mode 100755 index 00000000..43dd348f --- /dev/null +++ b/examples/timeline/15_item_class_names.html @@ -0,0 +1,115 @@ + + + Timeline | Item class names + + + + + + + + +

This page demonstrates the Timeline with custom css classes for individual items.

+ +
+ + + + diff --git a/examples/timeline/index.html b/examples/timeline/index.html index 8372ce6a..122e148e 100644 --- a/examples/timeline/index.html +++ b/examples/timeline/index.html @@ -14,7 +14,7 @@

01_basic.html

02_dataset.html

-

03_much_data.html

+

03_a_lot_of_data.html

04_html_data.html

05_groups.html

06_event_listeners.html

@@ -22,6 +22,11 @@

08_edit_items.html

09_order_groups.html

10_limit_range_and_zoom.html

+

11_points.html

+

12_custom_styling.html

+

13_past_and_future.html

+

14_a_lot_of_grouped_data.html

+

15_item_class_names.html

requirejs_example.html