OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2014 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2014 The Chromium Authors. All rights reserved. |
4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
5 found in the LICENSE file. | 5 found in the LICENSE file. |
6 --> | 6 --> |
7 | 7 |
8 <link rel="import" href="/tracing/base/raf.html"> | 8 <link rel="import" href="/tracing/base/raf.html"> |
9 <link rel="import" href="/tracing/ui/base/column_chart.html"> | 9 <link rel="import" href="/tracing/ui/base/column_chart.html"> |
10 <link rel="import" href="/tracing/ui/base/d3.html"> | 10 <link rel="import" href="/tracing/ui/base/d3.html"> |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 .attr('x1', (d, index) => this.xScale_(index + this.xAxisTickOffset)) | 62 .attr('x1', (d, index) => this.xScale_(index + this.xAxisTickOffset)) |
63 .attr('x2', (d, index) => this.xScale_(index + this.xAxisTickOffset)) | 63 .attr('x2', (d, index) => this.xScale_(index + this.xAxisTickOffset)) |
64 .attr('y1', () => this.chartAreaSize.height) | 64 .attr('y1', () => this.chartAreaSize.height) |
65 .attr('y2', (d, index) => this.chartAreaSize.height + Math.max( | 65 .attr('y2', (d, index) => this.chartAreaSize.height + Math.max( |
66 MIN_GUIDELINE_HEIGHT_PX, | 66 MIN_GUIDELINE_HEIGHT_PX, |
67 (TEXT_HEIGHT_PX * (this.data_.length - index - 1)))); | 67 (TEXT_HEIGHT_PX * (this.data_.length - index - 1)))); |
68 } | 68 } |
69 }; | 69 }; |
70 | 70 |
71 return { | 71 return { |
72 NameColumnChart: NameColumnChart | 72 NameColumnChart, |
73 }; | 73 }; |
74 }); | 74 }); |
75 </script> | 75 </script> |
OLD | NEW |