-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
got TypeError: t[e].indexOf is not a function in fabric.min.js:1 #39
Comments
I seem to have the same (or a similar problem) with exporting AmCharts, here's a JSFiddle. Try exporting to PNG, and Fabric.js throws error “t[e].indexOf is not a function” in Chrome/Win. I created this example from the demo from AmCharts site. Strangely, I tried another demo and it works, see the JSFiddle. So far I haven't found what causes this difference. PS @pepziman why do you include blob.js, fabric.js and filesaver.js twice? |
OK, after gradually removing from failing fiddle everything not present in the working fiddle, I discovered that deleting zoomControl sectiion solves the problem (update: looks like zoomControl.gridHeight is causing it). This is not relevant for the original AmCharts issue, but helps with my AmMaps one. |
@NPC thank you, ah about that twice script, i just misread the script and didn't saw that i already included it. so is it really the troublemaker? so if i deleted the zoomControl.gridHeight inside fabric.js the problem will solved? thank you for your help and response. will try it and got you updated. |
@pepziman No no, don't touch fabric.js, it is a 3rd party library, so not a good idea to tamper with unless you're really confident. Better wait for AmCharts guys to respond. The zoomControl.gridHeight is a property in AmMaps that was causing the issue for me, but since you don't use the maps then it is probably something different. |
@NPC oh ok anton thank you.
please anyone who are experts at amcharts, help me. thank you very much |
hi @maertz , can you help me? thank you |
Hi @pepziman, excuse me for the long waiting time. Unfortunately I was not able to reproduce your issue with your given chart setup but I'm glad you receive following error which will be fixed within next update:
Please hold on a while until I will release a new update, should be out in few hours. Thanks @NPC for hanging in your hint saved me some time 👍 |
@maertz no problem, i glad u response my question so fast. for a little hint, my chart will look like this. |
@pepziman I've just committed a new update, please replace it with yours and let me know if everything is fine. Sincerely Ben |
@maertz thank you very much Ben, will try it tomorrow at office, and get you updated with the result. 👍 Regards, |
@maertz export's v1.4.30 fixes the export issue for me with AmMaps and the zoomControl.gridHeight, thank you very much! PS I didn't dig deeper, but suspect that t[e].indexOf and attributes[attr].indexOf is the same error, seen with minified / original versions of Fabric.js. |
You are welcome, indeed it's the same, the other is just the minified version of it :) |
@maertz unlucky me, i still get t[e].indexOf error, i have changed the link with
i take a look at what code is causing this error and i found this:
yet still not working, but now when i clicked the download button, there is no response, not like before that the cursor became draw cursor. what should i do? |
@pepziman did you verify if your browser downloaded the new version? Please ensure to flush your cache or simply force the browser to download it again.
My sample works fine. If you've some issue on mine let me know which browser and OS you are using. In case it's fine as well, I would like to ask you to give me a live sample of yours which reproduces the issue. |
Glad to hear. Just a hint: ensure to use hexadecimal color codes and a 0-1 range for the alpha to avoid such unexpected behaviour. Sincerely Ben |
I had the exactly the same issue and changing the referred library to "//cdn.amcharts.com/lib/3/plugins/export/export.min.js?uniqueKey=123" did not help at all. Luckily I played a little in jsfiddle and I discovered the issue was due to a "lineColor" element in a bullet graph. |
Hi ildima, please ensure you are using valid hex color codes: 078300 > #078300 |
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.
UPDATE
here is my code :
i have included the libs in my blade layout as :
what i missed out? can you help me ? thank you
The text was updated successfully, but these errors were encountered: