"
],
@@ -12,7 +12,7 @@
"web-components"
],
"main": "google-castable-video.html",
- "license": "Apache-2",
+ "license": "Apache-2.0",
"homepage": "https://github.com/GoogleWebComponents/google-castable-video",
"ignore": [
"/.*",
diff --git a/lib/google-chart/.bower.json b/lib/google-chart/.bower.json
index bc8ce2c4..5f2d5afd 100644
--- a/lib/google-chart/.bower.json
+++ b/lib/google-chart/.bower.json
@@ -1,6 +1,6 @@
{
"name": "google-chart",
- "version": "1.1.0",
+ "version": "1.1.1",
"description": "Encapsulates Google Charts into a web component",
"homepage": "https://googlewebcomponents.github.io/google-chart",
"main": "google-chart.html",
@@ -8,7 +8,7 @@
"Wes Alvaro",
"Sérgio Gomes"
],
- "license": "Apache2",
+ "license": "Apache-2.0",
"ignore": [
"/.*",
"/test/"
@@ -32,11 +32,11 @@
"iron-component-page": "PolymerElements/iron-component-page#^1.0.2",
"web-component-tester": "*"
},
- "_release": "1.1.0",
+ "_release": "1.1.1",
"_resolution": {
"type": "version",
- "tag": "v1.1.0",
- "commit": "7e906acd99619e33e0cd78182c97fe6d9ad494fd"
+ "tag": "v1.1.1",
+ "commit": "4cfcf1cf4a97fd8296f66d416371b219cd725d79"
},
"_source": "git://github.com/GoogleWebComponents/google-chart.git",
"_target": "^1.0.0",
diff --git a/lib/google-chart/README.md b/lib/google-chart/README.md
index ecf9dc61..a5825788 100644
--- a/lib/google-chart/README.md
+++ b/lib/google-chart/README.md
@@ -4,3 +4,5 @@ google-chart
[Google Charts API](https://developers.google.com/chart/) web components.
See https://elements.polymer-project.org/elements/google-chart
+
+[![Build Status](https://travis-ci.org/GoogleWebComponents/google-chart.svg?branch=master)](https://travis-ci.org/GoogleWebComponents/google-chart)
diff --git a/lib/google-chart/bower.json b/lib/google-chart/bower.json
index 59b25f2f..ca3ad9f0 100644
--- a/lib/google-chart/bower.json
+++ b/lib/google-chart/bower.json
@@ -1,6 +1,6 @@
{
"name": "google-chart",
- "version": "1.1.0",
+ "version": "1.1.1",
"description": "Encapsulates Google Charts into a web component",
"homepage": "https://googlewebcomponents.github.io/google-chart",
"main": "google-chart.html",
@@ -8,7 +8,7 @@
"Wes Alvaro",
"Sérgio Gomes"
],
- "license": "Apache2",
+ "license": "Apache-2.0",
"ignore": [
"/.*",
"/test/"
diff --git a/lib/google-chart/demo/index.html b/lib/google-chart/demo/index.html
index 6d6b74c6..d61b5b6f 100644
--- a/lib/google-chart/demo/index.html
+++ b/lib/google-chart/demo/index.html
@@ -142,6 +142,49 @@
}());
+ Here's a pie chart listening for `onmouseover`:
+
+
+
+
+
+
+ Moused over row: None.
+
+
+
+
+
Here's a chart defined using data
, rather than rows
and cols
:
Chart gallery
rows='[["Jan", 31],["Feb", 28],["Mar", 31],["Apr", 30],["May", 31],["Jun", 30]]'>
+ Here's a material line chart:
+
+
+
+
+ Here's a organization chart:
+
+
+
+
Here's a pie chart:
Chart gallery
[68, 15]]'>
+ Here's a material scatter chart:
+
+
+
+
Here's a stepped area chart:
-
+
diff --git a/lib/google-chart/google-chart.html b/lib/google-chart/google-chart.html
index db37e2d2..654b285a 100644
--- a/lib/google-chart/google-chart.html
+++ b/lib/google-chart/google-chart.html
@@ -13,7 +13,7 @@
options='{"title": "Distribution of days in 2001Q1"}'
cols='[{"label":"Month", "type":"string"}, {"label":"Days", "type":"number"}]'
rows='[["Jan", 31],["Feb", 28],["Mar", 31]]'>
- j
+
Note: if you're passing JSON as attributes, single quotes are necessary to be valid JSON.
See https://www.polymer-project.org/1.0/docs/devguide/properties#configuring-object-and-array-properties.
@@ -48,6 +48,12 @@
- Via the `view` attribute, passing in a Google DataView object:
view='{{dataView}}'
+
+You can display the charts in locales other than "en" by setting the `lang` attribute
+on the `html` tag of your document.
+
+
+
@demo
-->
@@ -100,6 +106,24 @@
observer: '_typeChanged'
},
+ /**
+ * Enumerates the chart events that should be fired.
+ *
+ * Charts support a variety of events. By default, this element only
+ * fires on `ready` and `select`. If you would like to be notified of
+ * other chart events, use this property to list them.
+ * Events `ready` and `select` are always fired.
+ * Changes to this property are _not_ observed. Events are attached only
+ * at chart construction time.
+ *
+ * @attribute events
+ * @type !Array
+ */
+ events: {
+ type: Array,
+ value: function() { return []; }
+ },
+
/**
* Sets the options for the chart.
*
@@ -113,12 +137,16 @@
* See Google Visualization API reference (Chart Gallery)
* for the options available to each chart type.
*
+ * This property is observed via a deep object observer.
+ * If you would like to make changes to a sub-property, be sure to use the
+ * Polymer method `set`: `googleChart.set('options.vAxis.logScale', true)`
+ * (Note: Missing parent properties are not automatically created.)
+ *
* @attribute options
* @type {!Object|undefined}
*/
options: {
- type: Object,
- observer: 'redraw'
+ type: Object
},
/**
@@ -242,7 +270,10 @@
},
},
- observers: ['_draw(_chart, _dataView)'],
+ observers: [
+ '_draw(_chart, _dataView)',
+ '_subOptionChanged(options.*)'
+ ],
listeners: {
'google-chart-select': '_updateSelection',
@@ -261,13 +292,28 @@
_typeChanged: function() {
this.$.loader.create(this.type, this.$.chartdiv)
.then(function(chart) {
- this.$.loader.fireOnChartEvent(chart, 'select');
- this.$.loader.fireOnChartEvent(chart, 'ready');
+ var loader = this.$.loader;
+ Object.keys(this.events.concat(['select', 'ready'])
+ .reduce(function(set, eventName) {
+ set[eventName] = true;
+ return set;
+ }, {}))
+ .forEach(function(eventName) {
+ loader.fireOnChartEvent(chart, eventName);
+ });
this._setDrawn(false);
this._chart = chart;
}.bind(this));
},
+ _subOptionChanged: function(optionChangeDetails) {
+ this.options = optionChangeDetails.base;
+ // Debounce to allow for multiple option changes in one redraw
+ this.debounce('optionChangeRedraw', function() {
+ this.redraw();
+ }, 5);
+ },
+
_setSelection: function() {
// Note: Some charts (e.g. TreeMap) must have a selection.
if (!this.drawn || !this.selection || this.selection === this._selection) {
diff --git a/lib/google-hangout-button/.bower.json b/lib/google-hangout-button/.bower.json
index 1a81002c..86ce57b8 100644
--- a/lib/google-hangout-button/.bower.json
+++ b/lib/google-hangout-button/.bower.json
@@ -1,13 +1,13 @@
{
"name": "google-hangout-button",
- "version": "1.0.1",
+ "version": "1.0.2",
"homepage": "http://googlewebcomponents.github.io/google-hangout-button",
"description": "Google Hangout button web component",
"main": "google-hangout-button.html",
"authors": [
"Ewa Gasperowicz"
],
- "license": "Apache-2",
+ "license": "Apache-2.0",
"ignore": [
"/.*",
"/test/"
@@ -29,11 +29,11 @@
"iron-component-page": "PolymerElements/iron-component-page#^1.0.2",
"sinon-browser-only": "~1.12.1"
},
- "_release": "1.0.1",
+ "_release": "1.0.2",
"_resolution": {
"type": "version",
- "tag": "v1.0.1",
- "commit": "bead2dc203b4b6ddcf90c9dba3b72486113b7c66"
+ "tag": "v1.0.2",
+ "commit": "02af5aa4c8a3a51ff363faa9d4c3cb2b38f3d077"
},
"_source": "git://github.com/GoogleWebComponents/google-hangout-button.git",
"_target": "^1.0.0",
diff --git a/lib/google-hangout-button/README.md b/lib/google-hangout-button/README.md
index c2fcc2fd..22eaf45a 100644
--- a/lib/google-hangout-button/README.md
+++ b/lib/google-hangout-button/README.md
@@ -1,5 +1,5 @@
google-hangout-button
=====================
-See the [component landing page](http://googlewebcomponents.github.io/google-hangout-button) for more information.
+See https://elements.polymer-project.org/elements/google-hangout-button
diff --git a/lib/google-hangout-button/bower.json b/lib/google-hangout-button/bower.json
index b0067f1f..a9ab0700 100644
--- a/lib/google-hangout-button/bower.json
+++ b/lib/google-hangout-button/bower.json
@@ -1,13 +1,13 @@
{
"name": "google-hangout-button",
- "version": "1.0.1",
+ "version": "1.0.2",
"homepage": "http://googlewebcomponents.github.io/google-hangout-button",
"description": "Google Hangout button web component",
"main": "google-hangout-button.html",
"authors": [
"Ewa Gasperowicz"
],
- "license": "Apache-2",
+ "license": "Apache-2.0",
"ignore": [
"/.*",
"/test/"
diff --git a/lib/google-map/.bower.json b/lib/google-map/.bower.json
index 93b6b87d..63b64d31 100644
--- a/lib/google-map/.bower.json
+++ b/lib/google-map/.bower.json
@@ -1,6 +1,6 @@
{
"name": "google-map",
- "version": "1.1.11",
+ "version": "1.1.13",
"description": "Google Maps web components",
"homepage": "https://elements.polymer-project.org/elements/google-map",
"main": [
@@ -14,7 +14,7 @@
"Scott Miles ",
"Eric Bidelman "
],
- "license": "Apache-2",
+ "license": "Apache-2.0",
"ignore": [
"/.*",
"/test/"
@@ -37,11 +37,11 @@
"web-component-tester": "*",
"iron-component-page": "PolymerElements/iron-component-page#^1.0.2"
},
- "_release": "1.1.11",
+ "_release": "1.1.13",
"_resolution": {
"type": "version",
- "tag": "1.1.11",
- "commit": "54940112d458239d7fa2caf86aecb33f60a16a48"
+ "tag": "v1.1.13",
+ "commit": "5ba72b10ea02db401dc42b3ad17a22b93a58c745"
},
"_source": "git://github.com/GoogleWebComponents/google-map.git",
"_target": "^1.0.0",
diff --git a/lib/google-map/bower.json b/lib/google-map/bower.json
index 56f368d0..9ef21f05 100644
--- a/lib/google-map/bower.json
+++ b/lib/google-map/bower.json
@@ -1,6 +1,6 @@
{
"name": "google-map",
- "version": "1.1.11",
+ "version": "1.1.13",
"description": "Google Maps web components",
"homepage": "https://elements.polymer-project.org/elements/google-map",
"main": [
@@ -14,7 +14,7 @@
"Scott Miles ",
"Eric Bidelman "
],
- "license": "Apache-2",
+ "license": "Apache-2.0",
"ignore": [
"/.*",
"/test/"
diff --git a/lib/google-map/demo/index.html b/lib/google-map/demo/index.html
index 9000012e..6142f760 100644
--- a/lib/google-map/demo/index.html
+++ b/lib/google-map/demo/index.html
@@ -23,26 +23,36 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
+
+