{"action":"created","issue":{"url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/185","repository_url":"https://api.github.com/repos/pablojim/highcharts-ng","labels_url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/185/comments","events_url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/185/events","html_url":"https://github.com/pablojim/highcharts-ng/issues/185","id":41743196,"number":185,"title":"Print or export from external buttons?","user":{"login":"sdawson26","id":5412834,"avatar_url":"https://avatars.githubusercontent.com/u/5412834?v=3","gravatar_id":"","url":"https://api.github.com/users/sdawson26","html_url":"https://github.com/sdawson26","followers_url":"https://api.github.com/users/sdawson26/followers","following_url":"https://api.github.com/users/sdawson26/following{/other_user}","gists_url":"https://api.github.com/users/sdawson26/gists{/gist_id}","starred_url":"https://api.github.com/users/sdawson26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdawson26/subscriptions","organizations_url":"https://api.github.com/users/sdawson26/orgs","repos_url":"https://api.github.com/users/sdawson26/repos","events_url":"https://api.github.com/users/sdawson26/events{/privacy}","received_events_url":"https://api.github.com/users/sdawson26/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2014-09-02T19:03:34Z","updated_at":"2016-10-27T18:28:02Z","closed_at":"2014-11-27T17:28:24Z","body":"I've been looking everywhere through your documentation on this and I'm finding nothing.\n\nBasically i want to put ng-click=\"exportChart()\" or ng-click=\"printChart()\" as firing function from UI elements around the chart.\n\nHowever, obviously, neither of these examples work.\n\n$scope.exportChart=function(){\n  $scope.chartCfg.exportChart({type: 'image/svg+xml', filename: 'my-svg'}, {subtitle: {text:''}});\n});\n\n$scope.printChart=function(){\n  $scope.chartCfg.print();\n});\n\nIs there something I'm missing here? How can I programatically print or export or both?\n"},"comment":{"url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/comments/256729526","html_url":"https://github.com/pablojim/highcharts-ng/issues/185#issuecomment-256729526","issue_url":"https://api.github.com/repos/pablojim/highcharts-ng/issues/185","id":256729526,"user":{"login":"wiseeker","id":9583714,"avatar_url":"https://avatars.githubusercontent.com/u/9583714?v=3","gravatar_id":"","url":"https://api.github.com/users/wiseeker","html_url":"https://github.com/wiseeker","followers_url":"https://api.github.com/users/wiseeker/followers","following_url":"https://api.github.com/users/wiseeker/following{/other_user}","gists_url":"https://api.github.com/users/wiseeker/gists{/gist_id}","starred_url":"https://api.github.com/users/wiseeker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiseeker/subscriptions","organizations_url":"https://api.github.com/users/wiseeker/orgs","repos_url":"https://api.github.com/users/wiseeker/repos","events_url":"https://api.github.com/users/wiseeker/events{/privacy}","received_events_url":"https://api.github.com/users/wiseeker/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T18:28:02Z","updated_at":"2016-10-27T18:28:02Z","body":"@pablojim Your [fiddle](http://jsfiddle.net/a9cse5pt/) exports exactly once. 2nd time onwards, it throws an error saying `TypeError: Cannot read property 'exporting' of undefined`. I can't seem to find why.\r\n\r\nI followed your pattern and implemented export in my angularjs app and I'm experiencing exactly the same issue. Any help you can provide in fixing this would be awesome. Thank you for your contribution."}}
{"actor":{"display_login":"wiseeker"}}