| 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; });
|
|
|