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

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

Issue 2329843002: Add BarChart. (Closed)
Patch Set: BarChart horizontal and vertical scales Created 4 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 | « tracing/tracing/ui/base/chart_base_2d.html ('k') | tracing/tracing/ui/base/column_chart.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_2d_brushable_x.html
diff --git a/tracing/tracing/ui/base/chart_base_2d_brushable_x.html b/tracing/tracing/ui/base/chart_base_2d_brushable_x.html
index 4cde4b58bdd70519c63ca95cf3a8f9c215dfa2f7..5d2f799945e8fb0f07d6146ebad0471b72836bae 100644
--- a/tracing/tracing/ui/base/chart_base_2d_brushable_x.html
+++ b/tracing/tracing/ui/base/chart_base_2d_brushable_x.html
@@ -65,6 +65,10 @@ tr.exportTo('tr.ui.b', function() {
var brushRectsSel = brushSel.selectAll('rect').data(brushes);
brushRectsSel.enter().append('rect');
brushRectsSel.exit().remove();
+ this.drawBrush_(brushRectsSel);
+ },
+
+ drawBrush_: function(brushRectsSel) {
brushRectsSel
.attr('x', function(d) {
return this.xScale_(d.min);
« no previous file with comments | « tracing/tracing/ui/base/chart_base_2d.html ('k') | tracing/tracing/ui/base/column_chart.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698