Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Unified Diff: tracing/tracing/ui/base/column_chart.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tracing/tracing/ui/base/color_legend.html ('k') | tracing/tracing/ui/base/column_chart_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_) {
« no previous file with comments | « tracing/tracing/ui/base/color_legend.html ('k') | tracing/tracing/ui/base/column_chart_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698