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

Unified Diff: appengine/swarming/elements/polymer05/stats-request-chart.html

Issue 2408743002: Move elements/ to ui/ (Closed)
Patch Set: rebase again Created 4 years, 2 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
Index: appengine/swarming/elements/polymer05/stats-request-chart.html
diff --git a/appengine/swarming/elements/polymer05/stats-request-chart.html b/appengine/swarming/elements/polymer05/stats-request-chart.html
deleted file mode 100644
index d37e58f656450e65230e928247cbb29ebfdcfe70..0000000000000000000000000000000000000000
--- a/appengine/swarming/elements/polymer05/stats-request-chart.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<!--
-# Copyright 2015 The LUCI Authors. All rights reserved.
-# Use of this source code is governed under the Apache License, Version 2.0
-# that can be found in the LICENSE file.
-
--->
-
-<!--
-@group Swarming Elements
-
-`stats-request-chart' encapsulates a 'google-chart' element and data formating
-logic specific for Http Request chart of the Swarming statistics app.
-This element exposes a 'data' attribute which is a JSON serialized
-`google.visualization.DataTable` object, and a `resolution` attribute that is
-'minutes', 'hours', or 'days'.
-
-Example:
- <stats-request-chart data="{{data_table}}"></stats-request-chart>
-
-@element stats-request-chart
--->
-
-<link rel="import" href="bower_components/polymer/polymer.html">
-<link rel="import" href="stats-chart-base.html">
-
-<polymer-element name="stats-request-chart" extends="stats-chart-base" attributes="data resolution">
- <script>
- Polymer('stats-request-chart', {
- titleText: 'Requests',
-
- populate: function() {
- if (this.hidden) {
- return;
- }
- this.resetFormattedData();
-
- // These indexes are relative to stats_gviz._Summary.ORDER.
- this.getKeyFormatter().format(this.dataTable, 0);
-
- var view = new google.visualization.DataView(this.dataTable);
- view.setColumns([0, 1, 2]);
- this.attachView(view);
- }
- });
- </script>
-</polymer-element>

Powered by Google App Engine
This is Rietveld 408576698