From fec898c25c05a07707facdb63cb71a2aae2b57b7 Mon Sep 17 00:00:00 2001 From: David Norris Date: Thu, 30 Apr 2020 11:00:05 +1000 Subject: [PATCH] Add plot limit for map --- force-app/main/default/lwc/timeline/timeline.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/force-app/main/default/lwc/timeline/timeline.js b/force-app/main/default/lwc/timeline/timeline.js index a652d53..aab20f2 100755 --- a/force-app/main/default/lwc/timeline/timeline.js +++ b/force-app/main/default/lwc/timeline/timeline.js @@ -700,6 +700,13 @@ export default class timeline extends NavigationMixin(LightningElement) { swimlanes[swimlane] = entry.endTime; }); + data = data.filter(function(d) { + if ( d.swimlane < 8 ) { + return true; + } + return false; + }); + timelineMap.width = timelineMap.x.range()[1]; timelineMapSVG.attr('width', timelineMap.width);