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

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

Issue 2452983003: Relax RelatedHistogramBreakdown restrictions. (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | 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/chart_base.html
diff --git a/tracing/tracing/ui/base/chart_base.html b/tracing/tracing/ui/base/chart_base.html
index e57daf3ac6c1d79da6f04c046cd0c062ab073376..38038d978a0ae73863a7f56717edbd78c8a223b1 100644
--- a/tracing/tracing/ui/base/chart_base.html
+++ b/tracing/tracing/ui/base/chart_base.html
@@ -132,6 +132,10 @@ Polymer({
return this.$.link.selection;
},
+ set title(title) {
+ this.$.link.title = title;
+ },
+
updateContents_: function() {
this.$.link.style.display = this.target ? '' : 'none';
this.$.label.style.display = this.target ? 'none' : '';
@@ -193,6 +197,7 @@ tr.exportTo('tr.ui.b', function() {
function DataSeries(key) {
this.key_ = key;
this.target_ = undefined;
+ this.title_ = '';
this.optional_ = false;
this.enabled_ = true;
this.color_ = getColorOfKey(key, false);
@@ -204,6 +209,14 @@ tr.exportTo('tr.ui.b', function() {
return this.key_;
},
+ get title() {
+ return this.title_;
+ },
+
+ set title(t) {
+ this.title_ = t;
+ },
+
get color() {
return this.color_;
},
@@ -425,6 +438,7 @@ tr.exportTo('tr.ui.b', function() {
}.bind(this))
.property('width', width)
.property('target', function(series) { return series.target; })
+ .property('title', function(series) { return series.title; })
.property('optional', function(series) { return series.optional; })
.property('enabled', function(series) { return series.enabled; })
.text(function(series) { return series.key; });
« no previous file with comments | « no previous file | tracing/tracing/ui/base/column_chart_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698