Skip to content

Commit

Permalink
Merge pull request #49 from deejay-hub/map-svg-filter
Browse files Browse the repository at this point in the history
Add plot limit for map
  • Loading branch information
deejay-hub authored Apr 30, 2020
2 parents 32eb0e0 + fec898c commit bd1c67d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions force-app/main/default/lwc/timeline/timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit bd1c67d

Please sign in to comment.