diff options
Diffstat (limited to 'server/sonar-web/src/main/js/widgets/timeline.js')
-rw-r--r-- | server/sonar-web/src/main/js/widgets/timeline.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/widgets/timeline.js b/server/sonar-web/src/main/js/widgets/timeline.js index 26faa583c46..23ab743cd23 100644 --- a/server/sonar-web/src/main/js/widgets/timeline.js +++ b/server/sonar-web/src/main/js/widgets/timeline.js @@ -134,7 +134,7 @@ window.SonarWidgets = window.SonarWidgets == null ? {} : window.SonarWidgets; }) .reduce(function(p, c) { return p.concat(c); - }, d3.extent(this.events(), function(d) { return d.d; })); + }, []); this.time = d3.time.scale().domain(d3.extent(timeDomain)); @@ -215,6 +215,10 @@ window.SonarWidgets = window.SonarWidgets == null ? {} : window.SonarWidgets; // Configure events + this.events(this.events().filter(function (event) { + return event.d >= widget.time.domain()[0]; + })); + this.gevents = this.gWrap.append('g') .attr('class', 'axis events') .selectAll('.event-tick') |