<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[179913] trunk/Websites/perf.webkit.org</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/179913">179913</a></dd>
<dt>Author</dt> <dd>rniwa@webkit.org</dd>
<dt>Date</dt> <dd>2015-02-10 18:45:43 -0800 (Tue, 10 Feb 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>New perf dashboard shouldn't always show outliners
https://bugs.webkit.org/show_bug.cgi?id=141445

Reviewed by Chris Dumez.

Use the simple moving average with an average difference envelope to compute the y-axis range to show
to avoid expanding it spuriously to show one off outlier.

* public/v2/app.js:
(App.Pane): Don't show the full y-axis range by default.
(App.Pane._computeChartData): Use the first strategies for the moving average and the enveloping if
one is not specified by the user but without showing them in the charts.
(App.Pane._computeMovingAverage): Takes moving average and enveloping strategies as arguments instead
of retrieving via chosenMovingAverageStrategy and chosenEnvelopingStrategy.

(App.ChartsController._parsePaneList): Added showFullYAxis as a query string argument to each pane.
(App.ChartsController._serializePaneList): Ditto.

* public/v2/chart-pane.css: Added a CSS rule for when y-axis is clickable.

* public/v2/index.html: Pass in showFullYAxis as an argument to the main interactive chart.

* public/v2/interactive-chart.js:
(App.InteractiveChartComponent._constructGraphIfPossible): Add an event listener on y-axis labels when
the chart is interactive so that toggle showFullYAxis. Also hide the moving average and/or the envelope
if they are not specified by the user (i.e. only used to adjust y-axis range).
(App.InteractiveChartComponent._updateDomain): Don't exit early if y-axis domains are different even if
x-axis domain remained the same. Without this change, the charts would never redraw.
(App.InteractiveChartComponent._minMaxForAllTimeSeries): Use the moving average instead of the current
time series to compute the y-axis range if showFullYAxis is false. When showFullYAxis is true, expand
y-axis all the way down to 0 or the minimum value in the current time series whichever is smaller.

* public/v2/js/statistics.js:
(Statistics.MovingAverageStrategies): Use a wider window in Simple Moving Average by default.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkWebsitesperfwebkitorgChangeLog">trunk/Websites/perf.webkit.org/ChangeLog</a></li>
<li><a href="#trunkWebsitesperfwebkitorgpublicv2appjs">trunk/Websites/perf.webkit.org/public/v2/app.js</a></li>
<li><a href="#trunkWebsitesperfwebkitorgpublicv2chartpanecss">trunk/Websites/perf.webkit.org/public/v2/chart-pane.css</a></li>
<li><a href="#trunkWebsitesperfwebkitorgpublicv2indexhtml">trunk/Websites/perf.webkit.org/public/v2/index.html</a></li>
<li><a href="#trunkWebsitesperfwebkitorgpublicv2interactivechartjs">trunk/Websites/perf.webkit.org/public/v2/interactive-chart.js</a></li>
<li><a href="#trunkWebsitesperfwebkitorgpublicv2jsstatisticsjs">trunk/Websites/perf.webkit.org/public/v2/js/statistics.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkWebsitesperfwebkitorgChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Websites/perf.webkit.org/ChangeLog (179912 => 179913)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/perf.webkit.org/ChangeLog        2015-02-11 02:41:20 UTC (rev 179912)
+++ trunk/Websites/perf.webkit.org/ChangeLog        2015-02-11 02:45:43 UTC (rev 179913)
</span><span class="lines">@@ -1,5 +1,42 @@
</span><span class="cx"> 2015-02-10  Ryosuke Niwa  &lt;rniwa@webkit.org&gt;
</span><span class="cx"> 
</span><ins>+        New perf dashboard shouldn't always show outliners
+        https://bugs.webkit.org/show_bug.cgi?id=141445
+
+        Reviewed by Chris Dumez.
+
+        Use the simple moving average with an average difference envelope to compute the y-axis range to show
+        to avoid expanding it spuriously to show one off outlier.
+
+        * public/v2/app.js:
+        (App.Pane): Don't show the full y-axis range by default.
+        (App.Pane._computeChartData): Use the first strategies for the moving average and the enveloping if
+        one is not specified by the user but without showing them in the charts.
+        (App.Pane._computeMovingAverage): Takes moving average and enveloping strategies as arguments instead
+        of retrieving via chosenMovingAverageStrategy and chosenEnvelopingStrategy.
+
+        (App.ChartsController._parsePaneList): Added showFullYAxis as a query string argument to each pane.
+        (App.ChartsController._serializePaneList): Ditto.
+
+        * public/v2/chart-pane.css: Added a CSS rule for when y-axis is clickable.
+
+        * public/v2/index.html: Pass in showFullYAxis as an argument to the main interactive chart.
+
+        * public/v2/interactive-chart.js:
+        (App.InteractiveChartComponent._constructGraphIfPossible): Add an event listener on y-axis labels when
+        the chart is interactive so that toggle showFullYAxis. Also hide the moving average and/or the envelope
+        if they are not specified by the user (i.e. only used to adjust y-axis range).
+        (App.InteractiveChartComponent._updateDomain): Don't exit early if y-axis domains are different even if
+        x-axis domain remained the same. Without this change, the charts would never redraw.
+        (App.InteractiveChartComponent._minMaxForAllTimeSeries): Use the moving average instead of the current
+        time series to compute the y-axis range if showFullYAxis is false. When showFullYAxis is true, expand
+        y-axis all the way down to 0 or the minimum value in the current time series whichever is smaller.
+
+        * public/v2/js/statistics.js:
+        (Statistics.MovingAverageStrategies): Use a wider window in Simple Moving Average by default.
+
+2015-02-10  Ryosuke Niwa  &lt;rniwa@webkit.org&gt;
+
</ins><span class="cx">         Unreviewed build fix.
</span><span class="cx"> 
</span><span class="cx">         * public/v2/app.js:
</span></span></pre></div>
<a id="trunkWebsitesperfwebkitorgpublicv2appjs"></a>
<div class="modfile"><h4>Modified: trunk/Websites/perf.webkit.org/public/v2/app.js (179912 => 179913)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/perf.webkit.org/public/v2/app.js        2015-02-11 02:41:20 UTC (rev 179912)
+++ trunk/Websites/perf.webkit.org/public/v2/app.js        2015-02-11 02:45:43 UTC (rev 179913)
</span><span class="lines">@@ -297,6 +297,7 @@
</span><span class="cx">     metricId: null,
</span><span class="cx">     metric: null,
</span><span class="cx">     selectedItem: null,
</span><ins>+    showFullYAxis: false,
</ins><span class="cx">     searchCommit: function (repository, keyword) {
</span><span class="cx">         var self = this;
</span><span class="cx">         var repositoryId = repository.get('id');
</span><span class="lines">@@ -476,30 +477,36 @@
</span><span class="cx">             return;
</span><span class="cx"> 
</span><span class="cx">         var chartData = App.createChartData(this.get('fetchedData'));
</span><del>-        chartData.movingAverage = this._computeMovingAverage(chartData);
</del><span class="cx"> 
</span><del>-        this._updateStrategyConfigIfNeeded(this.get('chosenMovingAverageStrategy'), 'movingAverageConfig');
-        this._updateStrategyConfigIfNeeded(this.get('chosenEnvelopingStrategy'), 'envelopingConfig');
</del><ins>+        var movingAverageStrategy = this.get('chosenMovingAverageStrategy');
+        this._updateStrategyConfigIfNeeded(movingAverageStrategy, 'movingAverageConfig');
</ins><span class="cx"> 
</span><ins>+        var envelopingStrategy = this.get('chosenEnvelopingStrategy');
+        this._updateStrategyConfigIfNeeded(envelopingStrategy, 'envelopingConfig');
+
+        if (!movingAverageStrategy || !movingAverageStrategy.execute) {
+            movingAverageStrategy = Statistics.MovingAverageStrategies[0];
+            chartData.hideMovingAverage = true;
+        }
+        if (!envelopingStrategy || !envelopingStrategy.execute) {
+            envelopingStrategy = Statistics.EnvelopingStrategies[0];
+            chartData.hideEnvelope = true;
+        }
+
+        chartData.movingAverage = this._computeMovingAverage(chartData, movingAverageStrategy, envelopingStrategy);
+
</ins><span class="cx">         this.set('chartData', chartData);
</span><span class="cx">     }.observes('chosenMovingAverageStrategy', 'chosenMovingAverageStrategy.parameterList.@each.value',
</span><span class="cx">         'chosenEnvelopingStrategy', 'chosenEnvelopingStrategy.parameterList.@each.value'),
</span><del>-    _computeMovingAverage: function (chartData)
</del><ins>+    _computeMovingAverage: function (chartData, movingAverageStrategy, envelopingStrategy)
</ins><span class="cx">     {
</span><span class="cx">         var currentTimeSeriesData = chartData.current.series();
</span><del>-        var movingAverageStrategy = this.get('chosenMovingAverageStrategy');
-        if (!movingAverageStrategy || !movingAverageStrategy.execute)
-            return null;
-
</del><span class="cx">         var movingAverageValues = this._executeStrategy(movingAverageStrategy, currentTimeSeriesData);
</span><span class="cx">         if (!movingAverageValues)
</span><span class="cx">             return null;
</span><span class="cx"> 
</span><del>-        var envelopeDelta = null;
-        var envelopingStrategy = this.get('chosenEnvelopingStrategy');
-        if (envelopingStrategy &amp;&amp; envelopingStrategy.execute)
-            envelopeDelta = this._executeStrategy(envelopingStrategy, currentTimeSeriesData, [movingAverageValues]);
-        
</del><ins>+        var envelopeDelta = this._executeStrategy(envelopingStrategy, currentTimeSeriesData, [movingAverageValues]);
+
</ins><span class="cx">         return new TimeSeries(currentTimeSeriesData.map(function (point, index) {
</span><span class="cx">             var value = movingAverageValues[index];
</span><span class="cx">             return {
</span><span class="lines">@@ -671,8 +678,9 @@
</span><span class="cx">                 metricId: paneInfo[1],
</span><span class="cx">                 selectedItem: selectedItem,
</span><span class="cx">                 timeRange: timeRange,
</span><del>-                movingAverageConfig: paneInfo[3],
-                envelopingConfig: paneInfo[4],
</del><ins>+                showFullYAxis: paneInfo[3],
+                movingAverageConfig: paneInfo[4],
+                envelopingConfig: paneInfo[5],
</ins><span class="cx">             });
</span><span class="cx">         });
</span><span class="cx">     },
</span><span class="lines">@@ -687,6 +695,7 @@
</span><span class="cx">                 pane.get('platformId'),
</span><span class="cx">                 pane.get('metricId'),
</span><span class="cx">                 pane.get('timeRange') ? pane.get('timeRange').map(function (date) { return date.getTime() }) : pane.get('selectedItem'),
</span><ins>+                pane.get('showFullYAxis'),
</ins><span class="cx">                 pane.get('movingAverageConfig'),
</span><span class="cx">                 pane.get('envelopingConfig'),
</span><span class="cx">             ];
</span><span class="lines">@@ -697,7 +706,7 @@
</span><span class="cx">     {
</span><span class="cx">         Ember.run.debounce(this, '_updateQueryString', 1000);
</span><span class="cx">     }.observes('sharedZoom', 'panes.@each.platform', 'panes.@each.metric', 'panes.@each.selectedItem', 'panes.@each.timeRange',
</span><del>-        'panes.@each.movingAverageConfig', 'panes.@each.envelopingConfig'),
</del><ins>+        'panes.@each.showFullYAxis', 'panes.@each.movingAverageConfig', 'panes.@each.envelopingConfig'),
</ins><span class="cx"> 
</span><span class="cx">     _updateQueryString: function ()
</span><span class="cx">     {
</span></span></pre></div>
<a id="trunkWebsitesperfwebkitorgpublicv2chartpanecss"></a>
<div class="modfile"><h4>Modified: trunk/Websites/perf.webkit.org/public/v2/chart-pane.css (179912 => 179913)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/perf.webkit.org/public/v2/chart-pane.css        2015-02-11 02:41:20 UTC (rev 179912)
+++ trunk/Websites/perf.webkit.org/public/v2/chart-pane.css        2015-02-11 02:45:43 UTC (rev 179913)
</span><span class="lines">@@ -442,6 +442,10 @@
</span><span class="cx">     stroke: none;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+.chart .axis.interactive text {
+    cursor: pointer;
+}
+
</ins><span class="cx"> .chart .rangeBar {
</span><span class="cx">     display: block;
</span><span class="cx">     background-color: #fc6;
</span></span></pre></div>
<a id="trunkWebsitesperfwebkitorgpublicv2indexhtml"></a>
<div class="modfile"><h4>Modified: trunk/Websites/perf.webkit.org/public/v2/index.html (179912 => 179913)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/perf.webkit.org/public/v2/index.html        2015-02-11 02:41:20 UTC (rev 179912)
+++ trunk/Websites/perf.webkit.org/public/v2/index.html        2015-02-11 02:45:43 UTC (rev 179913)
</span><span class="lines">@@ -177,6 +177,7 @@
</span><span class="cx">                             selection=timeRange
</span><span class="cx">                             selectedPoints=selectedPoints
</span><span class="cx">                             markedPoints=markedPoints
</span><ins>+                            showFullYAxis=showFullYAxis
</ins><span class="cx">                             zoom=&quot;zoomed&quot;}}
</span><span class="cx">                     {{else}}
</span><span class="cx">                         {{#if failure}}
</span></span></pre></div>
<a id="trunkWebsitesperfwebkitorgpublicv2interactivechartjs"></a>
<div class="modfile"><h4>Modified: trunk/Websites/perf.webkit.org/public/v2/interactive-chart.js (179912 => 179913)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/perf.webkit.org/public/v2/interactive-chart.js        2015-02-11 02:41:20 UTC (rev 179912)
+++ trunk/Websites/perf.webkit.org/public/v2/interactive-chart.js        2015-02-11 02:45:43 UTC (rev 179913)
</span><span class="lines">@@ -76,10 +76,15 @@
</span><span class="cx">                 .attr(&quot;class&quot;, &quot;x axis&quot;);
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        var isInteractive = this.get('interactive');
</ins><span class="cx">         if (this.get('showYAxis')) {
</span><span class="cx">             this._yAxis = d3.svg.axis().scale(this._y).orient(&quot;left&quot;).ticks(6).tickFormat(chartData.formatter);
</span><del>-            this._yAxisLabels = svg.append(&quot;g&quot;)
-                .attr(&quot;class&quot;, &quot;y axis&quot;);
</del><ins>+            
+            this._yAxisLabels = svg.append('g').attr('class', 'y axis' + (isInteractive ? ' interactive' : ''));
+            if (isInteractive) {
+                var self = this;
+                this._yAxisLabels.on('click', function () { self.toggleProperty('showFullYAxis'); });
+            }
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         this._clippedContainer = svg.append(&quot;g&quot;)
</span><span class="lines">@@ -123,7 +128,8 @@
</span><span class="cx">                 .attr(&quot;class&quot;, &quot;target&quot;));
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        var foregroundClass = this._movingAverageTimeSeries ? '' : ' foreground';
</del><ins>+        var movingAverageIsVisible = this._movingAverageTimeSeries &amp;&amp; !chartData.hideMovingAverage;
+        var foregroundClass = movingAverageIsVisible ? '' : ' foreground';
</ins><span class="cx">         this._areas.push(this._clippedContainer
</span><span class="cx">             .append(&quot;path&quot;)
</span><span class="cx">             .datum(this._currentTimeSeriesData)
</span><span class="lines">@@ -141,18 +147,21 @@
</span><span class="cx">                 .attr(&quot;class&quot;, &quot;dot&quot; + foregroundClass)
</span><span class="cx">                 .attr(&quot;r&quot;, this.get('chartPointRadius') || 1));
</span><span class="cx"> 
</span><del>-        if (this._movingAverageTimeSeries) {
</del><ins>+        if (movingAverageIsVisible) {
</ins><span class="cx">             this._paths.push(this._clippedContainer
</span><span class="cx">                 .append(&quot;path&quot;)
</span><span class="cx">                 .datum(this._movingAverageTimeSeries.series())
</span><span class="cx">                 .attr(&quot;class&quot;, &quot;movingAverage&quot;));
</span><del>-            this._areas.push(this._clippedContainer
-                .append(&quot;path&quot;)
-                .datum(this._movingAverageTimeSeries.series())
-                .attr(&quot;class&quot;, &quot;envelope&quot;));
</del><ins>+
+            if (!chartData.hideEnvelope) {
+                this._areas.push(this._clippedContainer
+                    .append(&quot;path&quot;)
+                    .datum(this._movingAverageTimeSeries.series())
+                    .attr(&quot;class&quot;, &quot;envelope&quot;));
+            }
</ins><span class="cx">         }
</span><span class="cx"> 
</span><del>-        if (this.get('interactive')) {
</del><ins>+        if (isInteractive) {
</ins><span class="cx">             this._currentItemLine = this._clippedContainer
</span><span class="cx">                 .append(&quot;line&quot;)
</span><span class="cx">                 .attr(&quot;class&quot;, &quot;current-item&quot;);
</span><span class="lines">@@ -193,11 +202,14 @@
</span><span class="cx">         var intrinsicXDomain = this._computeXAxisDomain(this._currentTimeSeriesData);
</span><span class="cx">         if (!xDomain)
</span><span class="cx">             xDomain = intrinsicXDomain;
</span><del>-        var currentDomain = this._x.domain();
-        if (currentDomain &amp;&amp; App.domainsAreEqual(currentDomain, xDomain))
</del><ins>+        var yDomain = this._computeYAxisDomain(xDomain[0], xDomain[1]);
+
+        var currentXDomain = this._x.domain();
+        var currentYDomain = this._y.domain();
+        if (currentXDomain &amp;&amp; App.domainsAreEqual(currentXDomain, xDomain)
+            &amp;&amp; currentYDomain &amp;&amp; App.domainsAreEqual(currentYDomain, yDomain))
</ins><span class="cx">             return currentDomain;
</span><span class="cx"> 
</span><del>-        var yDomain = this._computeYAxisDomain(xDomain[0], xDomain[1]);
</del><span class="cx">         this._x.domain(xDomain);
</span><span class="cx">         this._y.domain(yDomain);
</span><span class="cx">         return xDomain;
</span><span class="lines">@@ -339,13 +351,17 @@
</span><span class="cx">     },
</span><span class="cx">     _minMaxForAllTimeSeries: function (startTime, endTime)
</span><span class="cx">     {
</span><del>-        var currentRange = this._currentTimeSeries.minMaxForTimeRange(startTime, endTime);
</del><ins>+        var shouldShowFullYAxis = this.get('showFullYAxis');
+        var mainTimeSeries = this._movingAverageTimeSeries &amp;&amp; !shouldShowFullYAxis ? this._movingAverageTimeSeries : this._currentTimeSeries;
+        var currentRange = mainTimeSeries.minMaxForTimeRange(startTime, endTime);
+        if (shouldShowFullYAxis)
+            currentRange[0] = Math.min(0, currentRange[0]);
+
</ins><span class="cx">         var baselineRange = this._baselineTimeSeries ? this._baselineTimeSeries.minMaxForTimeRange(startTime, endTime) : [Number.MAX_VALUE, Number.MIN_VALUE];
</span><span class="cx">         var targetRange = this._targetTimeSeries ? this._targetTimeSeries.minMaxForTimeRange(startTime, endTime) : [Number.MAX_VALUE, Number.MIN_VALUE];
</span><del>-        var movingAverageRange = this._movingAverageTimeSeries ? this._movingAverageTimeSeries.minMaxForTimeRange(startTime, endTime) : [Number.MAX_VALUE, Number.MIN_VALUE];
</del><span class="cx">         return [
</span><del>-            Math.min(currentRange[0], baselineRange[0], targetRange[0], movingAverageRange[0]),
-            Math.max(currentRange[1], baselineRange[1], targetRange[1], movingAverageRange[1]),
</del><ins>+            Math.min(currentRange[0], baselineRange[0], targetRange[0]),
+            Math.max(currentRange[1], baselineRange[1], targetRange[1]),
</ins><span class="cx">         ];
</span><span class="cx">     },
</span><span class="cx">     _currentSelection: function ()
</span><span class="lines">@@ -361,7 +377,7 @@
</span><span class="cx">             selection = null; // Otherwise the user has no way of clearing the selection.
</span><span class="cx"> 
</span><span class="cx">         this._relayoutDataAndAxes(selection);
</span><del>-    }.observes('domain'),
</del><ins>+    }.observes('domain', 'showFullYAxis'),
</ins><span class="cx">     _selectionChanged: function ()
</span><span class="cx">     {
</span><span class="cx">         this._updateSelection(this.get('selection'));
</span></span></pre></div>
<a id="trunkWebsitesperfwebkitorgpublicv2jsstatisticsjs"></a>
<div class="modfile"><h4>Modified: trunk/Websites/perf.webkit.org/public/v2/js/statistics.js (179912 => 179913)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/perf.webkit.org/public/v2/js/statistics.js        2015-02-11 02:41:20 UTC (rev 179912)
+++ trunk/Websites/perf.webkit.org/public/v2/js/statistics.js        2015-02-11 02:45:43 UTC (rev 179913)
</span><span class="lines">@@ -104,8 +104,8 @@
</span><span class="cx">             id: 1,
</span><span class="cx">             label: 'Simple Moving Average',
</span><span class="cx">             parameterList: [
</span><del>-                {label: &quot;Backward window size&quot;, value: 5, min: 2, step: 1},
-                {label: &quot;Forward window size&quot;, value: 3, min: 0, step: 1}
</del><ins>+                {label: &quot;Backward window size&quot;, value: 8, min: 2, step: 1},
+                {label: &quot;Forward window size&quot;, value: 4, min: 0, step: 1}
</ins><span class="cx">             ],
</span><span class="cx">             execute: function (backwardWindowSize, forwardWindowSize, values) {
</span><span class="cx">                 var averages = new Array(values.length);
</span></span></pre>
</div>
</div>

</body>
</html>