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

Side by Side Diff: dashboard/dashboard/elements/chart-container.html

Issue 2767263002: . Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright 2016 The Chromium Authors. All rights reserved. 3 Copyright 2016 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 The chart-container element represents one chart and all related functionality, 8 The chart-container element represents one chart and all related functionality,
9 including a legend listing different traces that can be plotted on the same 9 including a legend listing different traces that can be plotted on the same
10 chart, a revision range selecting mini-chart at the bottom, and all of the alert 10 chart, a revision range selecting mini-chart at the bottom, and all of the alert
(...skipping 1665 matching lines...) Expand 10 before | Expand all | Expand 10 after
1676 flotData[flotIndex].yaxis.p2c(flotPoint[1])); 1676 flotData[flotIndex].yaxis.p2c(flotPoint[1]));
1677 1677
1678 var alertIcon = document.createElement('alert-icon'); 1678 var alertIcon = document.createElement('alert-icon');
1679 alertIcon.initialize( 1679 alertIcon.initialize(
1680 annotations[jsonSeriesIndex][dataIndex]['g_anomaly'], 1680 annotations[jsonSeriesIndex][dataIndex]['g_anomaly'],
1681 this.alertKey); 1681 this.alertKey);
1682 Polymer.dom( 1682 Polymer.dom(
1683 this.$['alert-icon-container']).appendChild(alertIcon); 1683 this.$['alert-icon-container']).appendChild(alertIcon);
1684 alertIcon.setPosition(top, left); 1684 alertIcon.setPosition(top, left);
1685 1685
1686 alertIcon.onmouseover = this.onAlertMouseOver.bind( 1686 alertIcon.$.icon.onmouseover = this.onAlertMouseOver.bind(
1687 this, flotIndex, dataIndex); 1687 this, flotIndex, dataIndex);
1688 alertIcon.onclick = this.onAlertClick.bind( 1688 alertIcon.$.icon.onclick = this.onAlertClick.bind(
1689 this, flotIndex, dataIndex); 1689 this, flotIndex, dataIndex);
1690 } 1690 }
1691 } 1691 }
1692 }, 1692 },
1693 1693
1694 clearAlertIcons: function() { 1694 clearAlertIcons: function() {
1695 Polymer.dom(this.$['alert-icon-container']).innerHTML = ''; 1695 Polymer.dom(this.$['alert-icon-container']).innerHTML = '';
1696 }, 1696 },
1697 1697
1698 /** 1698 /**
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after
2586 }, 2586 },
2587 2587
2588 listeners: { 2588 listeners: {
2589 drop: 'onDrop', 2589 drop: 'onDrop',
2590 dragover: 'allowDrop' 2590 dragover: 'allowDrop'
2591 } 2591 }
2592 }); 2592 });
2593 })(); 2593 })();
2594 </script> 2594 </script>
2595 </dom-module> 2595 </dom-module>
OLDNEW
« no previous file with comments | « dashboard/dashboard/elements/alert-icon.html ('k') | dashboard/dashboard/elements/chart-container-test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698