-
Notifications
You must be signed in to change notification settings - Fork 35
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
Amcharts isn't loading when I have no internet connection #98
Comments
Your charts seem to refer to you local computer as in |
I found the images in the node_modules/amcharts3/amcharts/images folder, but it seems like the path the amchart.js tries to load isn't this one (it is only amcharts/images). Should I modify amchart.js to make it point to the correct path or is there another solution? |
I sort of found a solution on how to make amcharts3 work offline, but it is sort of a solution because for angular 7 it doesn't fix anything. I tried to do the following steps in here But since I have Angular 7 I cannot load the node_modules path in assets since it isn't a src one, and I found this workaround that is supposed to load the images:
But it doesn't work, and the amcharts/images aren't loaded. Does anyone know how can I point to the node_modules amcharts images path in assets in the angular.json file so it works? |
In the end I found a solution to fix this issue
Now the images load as they should. I think the documentation or the readme should be update to contain how to run amcharts3 offline on angular >=6 versions. |
Hello. On my current project I have the requirement to work with Amcharts through a VPN, a VPN that has no outside internet access, which means I can't load any scripts or images that aren't stored locally on my PC. While I fixed some of the problems, right now I can't load any kind of image in the created chart since I have no internet (for example the images used in the drag sliders) (see pic related)
Pic of the errors
I downloaded Amchart 3 and Amcharts3-angular 2 on my project through npm install, and this is how I fixed the chart loading by adding this lines in angular.json, at architect scripts
Is there a way to do the same with the images also, so I can load them locally and not try to fetch them from the internet through the framework?
The text was updated successfully, but these errors were encountered: