{"action":"closed","issue":{"url":"https://api.github.com/repos/crealogix/highcharts-commonjs/issues/2","labels_url":"https://api.github.com/repos/crealogix/highcharts-commonjs/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/crealogix/highcharts-commonjs/issues/2/comments","events_url":"https://api.github.com/repos/crealogix/highcharts-commonjs/issues/2/events","html_url":"https://github.com/crealogix/highcharts-commonjs/issues/2","id":98865134,"number":2,"title":"TypeError: elem.setAttribute is not a function","user":{"login":"attila226","id":5275101,"avatar_url":"https://avatars.githubusercontent.com/u/5275101?v=3","gravatar_id":"","url":"https://api.github.com/users/attila226","html_url":"https://github.com/attila226","followers_url":"https://api.github.com/users/attila226/followers","following_url":"https://api.github.com/users/attila226/following{/other_user}","gists_url":"https://api.github.com/users/attila226/gists{/gist_id}","starred_url":"https://api.github.com/users/attila226/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/attila226/subscriptions","organizations_url":"https://api.github.com/users/attila226/orgs","repos_url":"https://api.github.com/users/attila226/repos","events_url":"https://api.github.com/users/attila226/events{/privacy}","received_events_url":"https://api.github.com/users/attila226/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-04T00:47:57Z","updated_at":"2015-08-08T06:04:12Z","closed_at":"2015-08-08T06:04:12Z","body":"\r\nThe following sample code fails:\r\n\r\n```\r\n      let chartSettings = {\r\n              chart: {\r\n                 renderTo: 'container',\r\n                 type: 'bar'\r\n            },\r\n                        title: {\r\n                text: 'Fruit Consumption'\r\n            },\r\n            xAxis: {\r\n                categories: ['Apples', 'Bananas', 'Oranges']\r\n            },\r\n            yAxis: {\r\n                title: {\r\n                    text: 'Fruit eaten'\r\n                }\r\n            },\r\n            series: [{\r\n                name: 'Jane',\r\n                data: [1, 0, 4]\r\n            }, {\r\n                name: 'John',\r\n                data: [5, 7, 3]\r\n            }]\r\n        };\r\n        \r\n        let chartDiv = $('container');\r\n\r\n        highcharts.createChart(chartDiv, chartSettings, function(){\r\n            console.log('drew chart');\r\n        });\r\n```\r\nTypeError: elem.setAttribute is not a function\r\n"}}