Index: tracing/tracing/ui/base/column_chart.html |
diff --git a/tracing/tracing/ui/base/column_chart.html b/tracing/tracing/ui/base/column_chart.html |
index 680ecacd5c56f4a28cffe0e0a0f5de0278421912..ed85123a740478c42d77bbbd1e1ec0ff9a5a123a 100644 |
--- a/tracing/tracing/ui/base/column_chart.html |
+++ b/tracing/tracing/ui/base/column_chart.html |
@@ -72,8 +72,9 @@ tr.exportTo('tr.ui.b', function() { |
// average width of the rects, which is chart.width / data.length. |
this.xScale_.range([0, this.graphWidth]); |
var domain = d3.extent(this.data_, this.getXForDatum_.bind(this)); |
- if (this.data_.length > 1) |
+ if (this.data_.length > 1) { |
this.xCushion_ = xDifferences / (this.data_.length - 1); |
+ } |
this.xScale_.domain([domain[0], domain[1] + this.xCushion_]); |
// Y. |
@@ -128,8 +129,9 @@ tr.exportTo('tr.ui.b', function() { |
}, |
getRectsForDatum_(datum, index) { |
- if (this.isStacked) |
+ if (this.isStacked) { |
return this.getStackedRectsForDatum_(datum, index); |
+ } |
var stacks = []; |
for (var [key, series] of this.seriesByKey_) { |