{"action":"opened","issue":{"url":"https://api.github.com/repos/amcharts/export/issues/35","repository_url":"https://api.github.com/repos/amcharts/export","labels_url":"https://api.github.com/repos/amcharts/export/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/amcharts/export/issues/35/comments","events_url":"https://api.github.com/repos/amcharts/export/issues/35/events","html_url":"https://github.com/amcharts/export/issues/35","id":150687605,"number":35,"title":"console.log(base64) not working in Annotation and Drawing Mode","user":{"login":"debsush","id":15077449,"avatar_url":"https://avatars.githubusercontent.com/u/15077449?v=3","gravatar_id":"","url":"https://api.github.com/users/debsush","html_url":"https://github.com/debsush","followers_url":"https://api.github.com/users/debsush/followers","following_url":"https://api.github.com/users/debsush/following{/other_user}","gists_url":"https://api.github.com/users/debsush/gists{/gist_id}","starred_url":"https://api.github.com/users/debsush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/debsush/subscriptions","organizations_url":"https://api.github.com/users/debsush/orgs","repos_url":"https://api.github.com/users/debsush/repos","events_url":"https://api.github.com/users/debsush/events{/privacy}","received_events_url":"https://api.github.com/users/debsush/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-24T18:22:05Z","updated_at":"2016-04-24T18:22:05Z","closed_at":null,"body":"When I try the code in the below example it works fine\r\nhttps://www.amcharts.com/tutorials/export-charts-advanced/\r\n\r\nNow when I use the \"Annotation\" mode in the setExport property, the hand drawn shapes etc. do not get logged into the base64 data.  I used the rendered event listener like below:\r\n\r\nchart.addListener(\"rendered\", function(e) {\r\n\r\n  // WAIT FOR FABRIC\r\n  var interval = setInterval(function() {\r\n    if (window.fabric) {\r\n      clearTimeout(interval);\r\n\r\n      // CAPTURE CHART\r\n      e.chart.export.capture({}, function() {\r\n\r\n        // SAVE TO JPG\r\n        this.toJPG({}, function(base64) {\r\n\r\n          // LOG IMAGE DATA\r\n          console.log(base64);\r\n\r\n          // CREATE LINK TO OPEN BASE64 IMAGE IN NEW TAB\r\n          var a = document.createElement(\"a\");\r\n          a.setAttribute(\"href\", base64);\r\n          a.setAttribute(\"target\", \"_blank\");\r\n          a.setAttribute(\"style\", \"display: block; margin-top: 150px;\");\r\n          a.innerHTML = \"Open embedded base64-image\";\r\n\r\n          var div = document.createElement(\"div\");\r\n          div.setAttribute(\"style\", \"position: absolute; width: 100%; top:0; bottom: 0; background-color: rgba(255,255,255,.9); z-index: 1337; display: block;text-align: center;\");\r\n          div.appendChild(a);\r\n\r\n          this.setup.chart.div.appendChild(div);\r\n        });\r\n      });\r\n    }\r\n  }, 100);\r\n});\r\n\r\nHow can I log the hand drawn shapes as I am trying to use the base64 and save it in a JPG in the server.\r\n\r\nThank you\r\nSD"}}