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

Unified Diff: dashboard/dashboard/graph_json.py

Issue 2993773002: Dashboard charts: display sparklines of related timeseries in a tab strip. (Closed)
Patch Set: fix warnings[].value Created 3 years, 3 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 | « dashboard/dashboard/elements/report-page.html ('k') | dashboard/dashboard/static/group_alerts.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/dashboard/graph_json.py
diff --git a/dashboard/dashboard/graph_json.py b/dashboard/dashboard/graph_json.py
index 5f88bd3dbc48f14133b7a41e47fe72370c2b2551..b287dda190dcc1abd07edf09fb98fa0d65007396 100644
--- a/dashboard/dashboard/graph_json.py
+++ b/dashboard/dashboard/graph_json.py
@@ -395,7 +395,7 @@ def _GetFlotJson(revision_map, tests):
"""
# Each entry in the following dict is one Flot series object. The actual
# x-y values will be put into the 'data' properties for each object.
- cols = {i: _FlotSeries(i) for i in range(len(tests))}
+ cols = {i: _FlotSeries(i, test) for i, test in enumerate(tests)}
flot_annotations = {}
flot_annotations['series'] = _GetSeriesAnnotations(tests)
@@ -471,9 +471,10 @@ def _GetFlotJson(revision_map, tests):
allow_nan=False)
-def _FlotSeries(index):
+def _FlotSeries(index, test):
return {
'data': [],
'color': index,
- 'id': 'line_%d' % index
+ 'id': 'line_%d' % index,
+ 'testpath': test.test_path,
}
« no previous file with comments | « dashboard/dashboard/elements/report-page.html ('k') | dashboard/dashboard/static/group_alerts.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698