[visualization-api] License attribution in Drupal 8

2016-04-19 Thread Bill Bohling
Greetings, I'm using Google charts in a Drupal 8 project. One of the new things in D8 is a libraries.yml file for registering both local and remote JS and CSS. For remote resources like Google charts, Drupal requires version and licensing information to be provided, so I'm wondering what to

[visualization-api] Is there a callback to tell me when my table is ready?

2016-04-01 Thread Bill Bohling
I'm occasionally experiencing a lag when initializing a new table with: table = new google.visualization.Table(document.getElementById('google-chart')); To fix that I want to use a jQuery Deferred, so I'm trying to find a table callback that the table has loaded to tell me when I can resolve

[visualization-api] Re: Cannot read property '0' of undefined

2016-03-30 Thread Bill Bohling
My error was in the JSON for my rows. Got each one of those as an array keyed by 'c:' and now I'm getting an error about time. So off to read up on those. On Tuesday, March 29, 2016 at 4:03:35 PM UTC-4, Bill Bohling wrote: > > I've just started using the Visualization API, trying to

[visualization-api] Re: Cannot read property '0' of undefined

2016-03-30 Thread Bill Bohling
d" }, { "v": "unscheduled" }, { "v": "6" } ] it should be: rows: [{c:[{v: 'a'}, {v: 1.0, f: 'One'}, {v: new Date(2008, 1, 28, 0, 31, 26), f: '2/28/08 12:31 AM'} ]}, On Tu

[visualization-api] Re: Cannot read property '0' of undefined

2016-03-29 Thread Bill Bohling
ot;Right", "type": "string" } ], "rows": [ [ { "v": "Date(milliseconds)" }, { "v": "unscheduled" }, { "v": "unscheduled" }, { "v&q

[visualization-api] Cannot read property '0' of undefined

2016-03-29 Thread Bill Bohling
I've just started using the Visualization API, trying to build a table. I've got code putting together a JSON object per https://developers.google.com/chart/interactive/docs/reference#methods, and my data looks like this: