From f11a3cc8b27774e3363ecfe015d3f713efc01f91 Mon Sep 17 00:00:00 2001 From: Wes Alvaro Date: Wed, 21 Dec 2016 19:14:08 -0500 Subject: [PATCH] Adds support for wordtree chart type, fixes #173 (#176) --- demo/index.html | 26 +++++++++++++++++++++++++- google-chart-loader.html | 32 ++++++++++++++++++++++---------- google-chart.html | 1 + 3 files changed, 48 insertions(+), 11 deletions(-) diff --git a/demo/index.html b/demo/index.html index 616c84f..e33ce5e 100644 --- a/demo/index.html +++ b/demo/index.html @@ -364,7 +364,6 @@

Chart gallery

Chart gallery }()); +

Here's a wordtree:

+ + +

Here are three gauges:

} set-like object of gviz packages to load */ @@ -216,7 +227,8 @@ } return this._loadPackages([chartData.pkg || DEFACTO_CHART_PACKAGE]) .then(function() { - return namespaceForType(type)[chartData.ctor]; + var namespace = google[chartData.namespace] || namespaceForType(type); + return namespace[chartData.ctor]; }); }, diff --git a/google-chart.html b/google-chart.html index 3538617..0f1f6f3 100644 --- a/google-chart.html +++ b/google-chart.html @@ -111,6 +111,7 @@ * - `table` * - `timeline` * - `treemap` + * - `wordtree` * * See Google Visualization API reference (Chart Gallery) * for details.