2 Copyright 2014 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file.
7 <link rel="import" href="../lib/chart-loader.html">
9 <polymer-element name="ct-chart" attributes="table options width height">
11 <canvas id='chart' width="{{ width }}" height="{{ height }}"></canvas>
18 options: 'updateChart',
21 updateChart: function() {
22 if (this.table == null || this.options == null) {
25 var ctx = this.$.chart.getContext("2d");
26 new Chart(ctx).Bar(this.table, this.options);