{"action":"closed","issue":{"url":"https://api.github.com/repos/amcharts/export/issues/39","repository_url":"https://api.github.com/repos/amcharts/export","labels_url":"https://api.github.com/repos/amcharts/export/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/amcharts/export/issues/39/comments","events_url":"https://api.github.com/repos/amcharts/export/issues/39/events","html_url":"https://github.com/amcharts/export/issues/39","id":159584257,"number":39,"title":"got TypeError: t[e].indexOf is not a function in fabric.min.js:1","user":{"login":"pepziman","id":9677888,"avatar_url":"https://avatars.githubusercontent.com/u/9677888?v=3","gravatar_id":"","url":"https://api.github.com/users/pepziman","html_url":"https://github.com/pepziman","followers_url":"https://api.github.com/users/pepziman/followers","following_url":"https://api.github.com/users/pepziman/following{/other_user}","gists_url":"https://api.github.com/users/pepziman/gists{/gist_id}","starred_url":"https://api.github.com/users/pepziman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pepziman/subscriptions","organizations_url":"https://api.github.com/users/pepziman/orgs","repos_url":"https://api.github.com/users/pepziman/repos","events_url":"https://api.github.com/users/pepziman/events{/privacy}","received_events_url":"https://api.github.com/users/pepziman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"maertz","id":921705,"avatar_url":"https://avatars.githubusercontent.com/u/921705?v=3","gravatar_id":"","url":"https://api.github.com/users/maertz","html_url":"https://github.com/maertz","followers_url":"https://api.github.com/users/maertz/followers","following_url":"https://api.github.com/users/maertz/following{/other_user}","gists_url":"https://api.github.com/users/maertz/gists{/gist_id}","starred_url":"https://api.github.com/users/maertz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maertz/subscriptions","organizations_url":"https://api.github.com/users/maertz/orgs","repos_url":"https://api.github.com/users/maertz/repos","events_url":"https://api.github.com/users/maertz/events{/privacy}","received_events_url":"https://api.github.com/users/maertz/received_events","type":"User","site_admin":false},"milestone":null,"comments":16,"created_at":"2016-06-10T08:28:28Z","updated_at":"2016-06-15T07:39:11Z","closed_at":"2016-06-15T07:39:11Z","body":"dear amcharts developer, i am having difficulties when trying to export my chart with multiple and dynamic data to image (PNG / JPG). when trying to export it, either as PNG or JPG, the charts turn blank and the cursor became + cursor, enabling me to draw anything inside instead of downloading the chart as image. \r\n\r\n**UPDATE**\r\n\r\nhere is my code : \r\n```\r\n\tvar chartd = AmCharts.makeChart(\"chartd\", {\r\n\t\t\"type\": \"serial\",\r\n\t\t\"theme\": \"patterns\",\r\n\t\t\"dataProvider\": {!! json_encode($gdata['d']['cactiData']) !!},\r\n\t\t\"marginRight\": 80,\r\n\t\t\r\n\t\t\"graphs\": [\r\n\t\t{\r\n\t\t\t\"balloonText\": \"[[category]]: <b>[[value]]</b>\",\r\n\t\t\t'valueField': 'bps',\r\n\t\t\t'title': \"{{ $gdata['title']['Daily'] }}\",\r\n\t\t\t'type': 'line',\r\n\t\t\t'fillColors':'00cf00',\r\n\t\t\t'fillAlphas': 0.7,\r\n\t\t\t'lineColor': '#00cf00',\r\n\t\t\t'lineAlpha': 1,\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"balloonText\": \"[[category]]: <b>[[value]]</b>\",\r\n\t\t\t\"valueField\": \"bps_to\",\r\n\t\t\t'type': 'line',\r\n\t\t\t'fillColors':'Transparent',\r\n\t\t\t'fillAlphas': 0.3,\r\n\t\t\t'lineColor': '#072f97',\r\n\t\t\t'lineAlpha': 1,\r\n\t\t\t\"title\" : \"{{ $gdata['title']['DailySC'] }}\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"balloonText\": \"[[category]]: <b>[[value]]</b>\",\r\n\t\t\t\"valueField\": \"ninetyfifth\",\r\n\t\t\t'type': 'line',\r\n\t\t\t'fillColors':'Transparent',\r\n\t\t\t'fillAlphas': 0.3,\r\n\t\t\t'lineColor': '#e10707',\r\n\t\t\t'lineAlpha': 1,\r\n\t\t\t\"title\" : \"{{ $gdata['title']['DailyNF'] }}\"\r\n\t\t}\r\n\t\t],\r\n\t\t\"categoryField\": \"hours\",\r\n\t\t\"categoryAxis\": {\r\n\t\t\t'gridCount' : 10,\r\n\t\t\t'parseDates' : true,\r\n\t\t\t'minPeriod' : \"mm\",\r\n\t\t\t'dateFormats' : [\r\n\t\t\t{ period: 'fff', format: 'JJ:NN:SS' },\r\n\t\t\t{ period: 'ss', format: 'JJ:NN:SS' },\r\n\t\t\t{ period: 'mm', format: 'JJ:NN' },\r\n\t\t\t{ period: 'hh', format: 'JJ:NN' },\r\n\t\t\t{ period: 'DD', format: 'MMM DD' },\r\n\t\t\t{ period: 'WW', format: 'MMM DD' },\r\n\t\t\t{ period: 'MM', format: 'DD MM YYYY' },\r\n\t\t\t{ period: 'YYYY', format: 'YYYY'}\r\n\t\t\t],\r\n\t\t\t\"title\" : \"{{$gdata['d']['x_axis_title']}}\",\r\n\t\t\t\"titleBold\" : false\r\n\t\t},\r\n\t\t\"valueAxes\":[{\r\n\t\t\t'title':'bits per second',\r\n\t\t\t'axisColor': \"#FF6600\",\t\t\t\t\t\t\t\t\t\r\n\t\t\t'gridAlpha': 0.07,\t\t\t\t\t\t\t\t\t\r\n\t\t\t'minimum': 0,\r\n\t\t\t'maximum': {{ $gdata['d']['cactiData'][0]['maxAll'] }},\r\n\t\t\t'unit': \"{{ $gdata['d']['cactiData'][0]['unit'] }}\",\r\n\t\t}],\r\n\t\t\"chartScrollbar\": {\r\n\t\t\t\"autoGridCount\": true,\r\n\t\t\t\r\n\t\t\t\"scrollbarHeight\": 40\r\n\t\t},\r\n\t\t\"export\": {\r\n\t\t\t\"enabled\": true,\r\n\t\t},\r\n\t\t\"legend\": {\r\n\t\t\t\"useGraphSettings\": true\r\n\t\t},\r\n\t});\r\n```\r\ni have included the libs in my blade layout as : \r\n\r\n\t<script src=\"{{ asset('js/amcharts/amcharts.js') }}\" type=\"text/javascript\"></script>\r\n\t<script src=\"{{ asset('js/amcharts/serial.js') }}\" type=\"text/javascript\"></script>\r\n\t<script src=\"https://www.amcharts.com/lib/3/plugins/export/export.js\" type=\"text/javascript\"></script>\r\n\t<link href=\"https://www.amcharts.com/lib/3/plugins/export/export.css\" rel=\"stylesheet\" type=\"text/css\">\r\n\t\r\n\r\nwhat i missed out? can you help me ? thank you"}}
{"actor":{"display_login":"maertz"}}