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

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

Issue 2124113002: Fix chart legends. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: finished refactoring DataSeries Map Created 4 years, 5 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/chart_base_2d.html ('k') | tracing/tracing/ui/base/pie_chart.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/base/line_chart.html
diff --git a/tracing/tracing/ui/base/line_chart.html b/tracing/tracing/ui/base/line_chart.html
index ba43169524233dfc9874eae9ec9cfb99eda9a80f..5b479fc66655831e6e5a499dd593762e34c7064d 100644
--- a/tracing/tracing/ui/base/line_chart.html
+++ b/tracing/tracing/ui/base/line_chart.html
@@ -39,7 +39,8 @@ tr.exportTo('tr.ui.b', function() {
updateDataContents_: function(dataSel) {
dataSel.selectAll('*').remove();
var dataBySeriesKey = this.getDataBySeriesKey_();
- var pathsSel = dataSel.selectAll('path').data(this.seriesKeys_);
+ var seriesKeys = [...this.seriesByKey_.keys()];
+ var pathsSel = dataSel.selectAll('path').data(seriesKeys);
pathsSel.enter()
.append('path')
.attr('class', 'line')
« no previous file with comments | « tracing/tracing/ui/base/chart_base_2d.html ('k') | tracing/tracing/ui/base/pie_chart.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698