{"action":"created","issue":{"url":"https://api.github.com/repos/kevinkhill/lavacharts/issues/82","labels_url":"https://api.github.com/repos/kevinkhill/lavacharts/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/kevinkhill/lavacharts/issues/82/comments","events_url":"https://api.github.com/repos/kevinkhill/lavacharts/issues/82/events","html_url":"https://github.com/kevinkhill/lavacharts/issues/82","id":121522035,"number":82,"title":"Uncaught TypeError: lava.event is not a function","user":{"login":"Rokasl","id":5836863,"avatar_url":"https://avatars.githubusercontent.com/u/5836863?v=3","gravatar_id":"","url":"https://api.github.com/users/Rokasl","html_url":"https://github.com/Rokasl","followers_url":"https://api.github.com/users/Rokasl/followers","following_url":"https://api.github.com/users/Rokasl/following{/other_user}","gists_url":"https://api.github.com/users/Rokasl/gists{/gist_id}","starred_url":"https://api.github.com/users/Rokasl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rokasl/subscriptions","organizations_url":"https://api.github.com/users/Rokasl/orgs","repos_url":"https://api.github.com/users/Rokasl/repos","events_url":"https://api.github.com/users/Rokasl/events{/privacy}","received_events_url":"https://api.github.com/users/Rokasl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kevinkhill/lavacharts/labels/bug","name":"bug","color":"fc2929"}],"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":"2015-12-10T16:14:17Z","updated_at":"2015-12-12T18:14:16Z","closed_at":null,"body":"Hi, I get an error \"Uncaught TypeError: lava.event is not a function\" when I click on a country in the geo chart. Is this a bug or I'm doing something wrong? \r\nUsing select type event listener.\r\nLaravel 5.1\r\n\r\nCONTROLLER:\r\n\r\n\t\t$data = array_count_values(SurveyData::where('survey_id', $id)->whereNotNull('country')->lists('country')->all());\r\n\r\n\t\t$popularity = \\Lava::DataTable();\r\n\r\n\t\t$popularity->addStringColumn('Country')\r\n\t\t           ->addNumberColumn('Popularity');\r\n\r\n\t\tforeach ($data as $k => $v) {\r\n\t\t\t$popularity->addRow(array($k, $v));\r\n\t\t}\r\n\r\n\t\t$geochart = \\Lava::GeoChart('Popularity')\r\n\t\t\t->setOptions(array(\r\n\t\t\t\t'datatable' => $popularity,\r\n\t\t\t\t'events' \t=> ['select' => \\Lava::Select('selectHandler')]\r\n\t\t\t));\r\n\r\n\t\treturn view( 'dashboard.visitors.index', [\r\n\t\t\t'geochart' => $geochart,\r\n\t\t] );\r\n\r\nVIEW:\r\n <div id=\"pop-div\"></div>\r\n\r\n    <script>\r\n        function selectHandler (event, chart) {\r\n            console.log(chart.getSelection());\r\n        }\r\n    </script>\r\n\r\n        <?= \\Lava::render('GeoChart', 'Popularity', 'pop-div'); ?>\r\n"},"comment":{"url":"https://api.github.com/repos/kevinkhill/lavacharts/issues/comments/164173215","html_url":"https://github.com/kevinkhill/lavacharts/issues/82#issuecomment-164173215","issue_url":"https://api.github.com/repos/kevinkhill/lavacharts/issues/82","id":164173215,"user":{"login":"sakalauskas","id":1455148,"avatar_url":"https://avatars.githubusercontent.com/u/1455148?v=3","gravatar_id":"","url":"https://api.github.com/users/sakalauskas","html_url":"https://github.com/sakalauskas","followers_url":"https://api.github.com/users/sakalauskas/followers","following_url":"https://api.github.com/users/sakalauskas/following{/other_user}","gists_url":"https://api.github.com/users/sakalauskas/gists{/gist_id}","starred_url":"https://api.github.com/users/sakalauskas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sakalauskas/subscriptions","organizations_url":"https://api.github.com/users/sakalauskas/orgs","repos_url":"https://api.github.com/users/sakalauskas/repos","events_url":"https://api.github.com/users/sakalauskas/events{/privacy}","received_events_url":"https://api.github.com/users/sakalauskas/received_events","type":"User","site_admin":false},"created_at":"2015-12-12T18:14:16Z","updated_at":"2015-12-12T18:14:16Z","body":"+1. I can confirm that bug is resolved on the new branch, thanks."}}