{"action":"created","issue":{"url":"https://api.github.com/repos/kevinkhill/lavacharts/issues/127","repository_url":"https://api.github.com/repos/kevinkhill/lavacharts","labels_url":"https://api.github.com/repos/kevinkhill/lavacharts/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/kevinkhill/lavacharts/issues/127/comments","events_url":"https://api.github.com/repos/kevinkhill/lavacharts/issues/127/events","html_url":"https://github.com/kevinkhill/lavacharts/issues/127","id":147447327,"number":127,"title":"Gstatic Loader","user":{"login":"kevinkhill","id":266076,"avatar_url":"https://avatars.githubusercontent.com/u/266076?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinkhill","html_url":"https://github.com/kevinkhill","followers_url":"https://api.github.com/users/kevinkhill/followers","following_url":"https://api.github.com/users/kevinkhill/following{/other_user}","gists_url":"https://api.github.com/users/kevinkhill/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinkhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinkhill/subscriptions","organizations_url":"https://api.github.com/users/kevinkhill/orgs","repos_url":"https://api.github.com/users/kevinkhill/repos","events_url":"https://api.github.com/users/kevinkhill/events{/privacy}","received_events_url":"https://api.github.com/users/kevinkhill/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kevinkhill/lavacharts/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"kevinkhill","id":266076,"avatar_url":"https://avatars.githubusercontent.com/u/266076?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinkhill","html_url":"https://github.com/kevinkhill","followers_url":"https://api.github.com/users/kevinkhill/followers","following_url":"https://api.github.com/users/kevinkhill/following{/other_user}","gists_url":"https://api.github.com/users/kevinkhill/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinkhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinkhill/subscriptions","organizations_url":"https://api.github.com/users/kevinkhill/orgs","repos_url":"https://api.github.com/users/kevinkhill/repos","events_url":"https://api.github.com/users/kevinkhill/events{/privacy}","received_events_url":"https://api.github.com/users/kevinkhill/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-04-11T14:27:22Z","updated_at":"2016-04-11T18:38:19Z","closed_at":null,"body":"Switching from the old style to the [new gstatic loader](https://developers.google.com/chart/interactive/docs/basic_load_libs#basic-library-loading) as disscussed in #119 "},"comment":{"url":"https://api.github.com/repos/kevinkhill/lavacharts/issues/comments/208490650","html_url":"https://github.com/kevinkhill/lavacharts/issues/127#issuecomment-208490650","issue_url":"https://api.github.com/repos/kevinkhill/lavacharts/issues/127","id":208490650,"user":{"login":"colford","id":13421296,"avatar_url":"https://avatars.githubusercontent.com/u/13421296?v=3","gravatar_id":"","url":"https://api.github.com/users/colford","html_url":"https://github.com/colford","followers_url":"https://api.github.com/users/colford/followers","following_url":"https://api.github.com/users/colford/following{/other_user}","gists_url":"https://api.github.com/users/colford/gists{/gist_id}","starred_url":"https://api.github.com/users/colford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colford/subscriptions","organizations_url":"https://api.github.com/users/colford/orgs","repos_url":"https://api.github.com/users/colford/repos","events_url":"https://api.github.com/users/colford/events{/privacy}","received_events_url":"https://api.github.com/users/colford/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T18:38:19Z","updated_at":"2016-04-11T18:38:19Z","body":"I changed lavacharts/javascript/lava.js:\r\n\r\n```\r\n  this.run = function (window) {\r\n    var s = document.createElement('script');\r\n    s.type = 'text/javascript';\r\n    s.src = '//www.gstatic.com/charts/loader.js';\r\n    s.onload = s.onreadystatechange = function (event) {\r\n      event = event || window.event;\r\n      if (event.type === \"load\" || (/loaded|complete/.test(this.readyState))) {\r\n        google.charts.load('current', {packages: ['corechart','calendar','controls']});\r\n        this.onload = this.onreadystatechange = null;\r\n        lava.events.emit('jsapi:ready', window.google);\r\n      }\r\n    };\r\n    document.getElementsByTagName('head')[0].appendChild(s);\r\n  };\r\n```\r\n\r\nI changed lavacharts/src/Javascript/DashboardFactory.php by deleting the load and replacing it with:\r\n\r\n`google.charts.setOnLoadCallback(lava.dashboards[\"<label>\"].render);`\r\n\r\nBasically the same for the ChartFactory.php\r\n\r\n`google.charts.setOnLoadCallback(lava.charts.<chartType>[\"<chartLabel>\"].render);`\r\n\r\n...and that was it..\r\n"}}