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

Unified Diff: appengine/swarming/elements/polymer05/stats-time-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-time-chart.html
diff --git a/appengine/swarming/elements/polymer05/stats-time-chart.html b/appengine/swarming/elements/polymer05/stats-time-chart.html
deleted file mode 100644
index 27d6c506915bfd7d43ba4b1b8801c76e044415b0..0000000000000000000000000000000000000000
--- a/appengine/swarming/elements/polymer05/stats-time-chart.html
+++ /dev/null
@@ -1,62 +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-time-chart' encapsulates a 'google-chart' element and data formating
-logic specific for Time chart of the Swarming statistics app.
-This element exposes a 'data' attribute which is JSON serialized
-`google.visualization.DataTable` object and a `resolution` attribute that is
-'minutes', 'hours', or 'days'.
-
-Example:
- <stats-time-chart data="{{data_table}}"></stats-time-chart>
-
-@element stats-time-chart
--->
-
-<link rel="import" href="bower_components/polymer/polymer.html">
-<link rel="import" href="stats-chart-base.html">
-
-<polymer-element name="stats-time-chart" extends="stats-chart-base" attributes="data resolution isDimension">
- <script>
- Polymer('stats-time-chart', {
- isDimension: false,
- titleText: 'Times (s)',
-
- populate: function() {
- this.resetFormattedData();
-
- // These indexes are relative to stats_gviz._Summary.ORDER.
- this.getKeyFormatter().format(this.dataTable, 0);
-
- var round3 = new google.visualization.NumberFormat(
- {decimalSymbol:'.', fractionDigits:3});
- // These indexes are relative to stats_gviz._GVIZ_COLUMNS_ORDER.
- if (this.isDimension) {
- round3.format(this.dataTable, 6);
- round3.format(this.dataTable, 7);
- round3.format(this.dataTable, 8);
- } else {
- round3.format(this.dataTable, 8);
- round3.format(this.dataTable, 9);
- round3.format(this.dataTable, 10);
- }
-
- var view = new google.visualization.DataView(this.dataTable);
- if (this.dimension) {
- view.setColumns([0, 6, 7, 8]);
- } else {
- view.setColumns([0, 8, 9, 10]);
- }
-
- this.attachView(view);
- }
- });
- </script>
-</polymer-element>

Powered by Google App Engine
This is Rietveld 408576698