Index: dashboard/dashboard/elements/base-chart.html |
diff --git a/dashboard/dashboard/elements/base-chart.html b/dashboard/dashboard/elements/base-chart.html |
index 50281e29fd6d336ef24a49a87d6b856dea6aea7d..f3fd5371062b20cf3cb78eb1180888bbc2a0cecf 100644 |
--- a/dashboard/dashboard/elements/base-chart.html |
+++ b/dashboard/dashboard/elements/base-chart.html |
@@ -5,10 +5,23 @@ Use of this source code is governed by a BSD-style license that can be |
found in the LICENSE file. |
--> |
-<polymer-element name="base-chart" attributes="chartTitle units flotData"> |
+<dom-module id="base-chart"> |
<script> |
'use strict'; |
- Polymer('base-chart', { |
+ Polymer({ |
+ |
+ is: 'base-chart', |
+ properties: { |
+ chartTitle: { notify: true }, |
+ |
+ flotData: { |
+ notify: true, |
+ observer: 'flotDataChanged' |
+ }, |
+ |
+ units: { notify: true } |
+ }, |
+ |
getChartOptions: function() { |
return {}; |
}, |
@@ -90,4 +103,4 @@ found in the LICENSE file. |
} |
}); |
</script> |
-</polymer-element> |
+</dom-module> |