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

Unified Diff: appengine/swarming/elements/polymer05/stats-work-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-work-chart.html
diff --git a/appengine/swarming/elements/polymer05/stats-work-chart.html b/appengine/swarming/elements/polymer05/stats-work-chart.html
deleted file mode 100644
index b5d4c5a104e1ca1a0f5af76368a7f12d6c26f37c..0000000000000000000000000000000000000000
--- a/appengine/swarming/elements/polymer05/stats-work-chart.html
+++ /dev/null
@@ -1,49 +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-work-chart' encapsulates a 'google-chart' element and data formating
-logic specific for Shards Activity 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-work-chart data="{{data_table}}"></stats-work-chart>
-
-@element stats-work-chart
--->
-
-<link rel="import" href="bower_components/polymer/polymer.html">
-<link rel="import" href="stats-chart-base.html">
-
-<polymer-element name="stats-work-chart" extends="stats-chart-base" attributes="data resolution isDimension">
- <script>
- Polymer('stats-work-chart', {
- isDimension: false,
- titleText: 'Shards Activity',
-
- populate: function() {
- 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);
- if (this.isDimension) {
- view.setColumns([0, 1, 2, 9, 10]);
- } else {
- view.setColumns([0, 3, 4, 11, 12]);
- }
-
- this.attachView(view);
- }
- });
- </script>
-</polymer-element>
« no previous file with comments | « appengine/swarming/elements/polymer05/stats-time-chart.html ('k') | appengine/swarming/elements/res/imp/botlist/DESIGN.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698