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

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

Issue 2474573002: Convert chart-json to Histograms. (Closed)
Patch Set: test with tir label Created 4 years, 1 month 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
Index: tracing/tracing/ui/base/box_chart.html
diff --git a/tracing/tracing/ui/base/box_chart.html b/tracing/tracing/ui/base/box_chart.html
index 6ed4b80fc20392da1aaedd53167f98b281e71284..fe8ae2001714ce80a25aa111d1543491528597ba 100644
--- a/tracing/tracing/ui/base/box_chart.html
+++ b/tracing/tracing/ui/base/box_chart.html
@@ -29,6 +29,18 @@ tr.exportTo('tr.ui.b', function() {
this.xScale_.domain([0, this.data_.length]);
},
+ updateDataRange_: function() {
+ if (this.overrideDataRange_ !== undefined) {
+ return;
+ }
+
+ this.autoDataRange_.reset();
+ for (var datum of this.data_) {
+ this.autoDataRange_.addValue(datum.percentile_0);
+ this.autoDataRange_.addValue(datum.percentile_100);
+ }
+ },
+
updateXAxis_: function(xAxis) {
xAxis.selectAll('*').remove();
if (this.hideXAxis) {

Powered by Google App Engine
This is Rietveld 408576698