From b66975fd07228621d742b2069b56ea770e11c6b0 Mon Sep 17 00:00:00 2001 From: Wes Alvaro Date: Wed, 16 Mar 2016 17:48:47 +0900 Subject: [PATCH] Adds support for Dashboards and Controls. Moves data handling to a behavior to be shared between Charts and Dashboards. --- demo/index.html | 24 ++++ google-chart.html | 322 ++++++++++++++++++++++++++++++---------------- 2 files changed, 232 insertions(+), 114 deletions(-) diff --git a/demo/index.html b/demo/index.html index fd3bfc4..631d132 100644 --- a/demo/index.html +++ b/demo/index.html @@ -28,6 +28,30 @@ rows='[["Something", 1]]'> +

A simple google-chart-dashboard looks like this:

+ + + + + +

Charts can be resized with CSS, but you'll need to call the drawChart method when the size changes.

Here's a basic responsive example using only CSS and JS (You could also use <iron-media-query>):

diff --git a/google-chart.html b/google-chart.html index d18aaa1..6ad7a39 100644 --- a/google-chart.html +++ b/google-chart.html @@ -54,6 +54,18 @@
+ + + + + +