From 90e6fd1ed89370425c62d51eb862111cf658e0a0 Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Thu, 16 May 2019 16:16:44 +0200 Subject: [PATCH] Timeline changes --- www/js/hugvey_timeline.js | 8 ++++++++ www/timeline.html | 8 +++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/www/js/hugvey_timeline.js b/www/js/hugvey_timeline.js index 57c38c7..0840120 100644 --- a/www/js/hugvey_timeline.js +++ b/www/js/hugvey_timeline.js @@ -27,6 +27,14 @@ class Timeline{ this.dataGroups = new vis.DataSet(groups); let options = { + maxHeight: '100%', + margin : { + item: { + horizontal: 0, + vertical: 5 + } + }, + zoomMax: 3600000 // 1 h // 'rollingMode': {'follow': true, 'offset': .8 } }; // console.log('groups', this.dataGroups, groups, options); diff --git a/www/timeline.html b/www/timeline.html index e07c6d7..f615f13 100644 --- a/www/timeline.html +++ b/www/timeline.html @@ -45,6 +45,10 @@ border-color:#666 !important; font-size: 4.5pt; } +.vis-item-content{ + height: 5px !important; + overflow:hidden; +} .vis-dot.INFO{ } @@ -78,7 +82,9 @@ font-size: 4.5pt; z-index: 99999; padding: 5px; } - +.vis-tooltip{ +font-size: 20pt; +} .vis-group{ transition: background-color 1s; }