-
Leah GreensteinApril 17, 2016 at 12:53 pm #6106
Hi,
Thank you so much for creating this. I am having trouble extracting the weighted tree. When I open the chrome test file, I just get a blank canvas. Please let me know how I can fix this.
Thanks,
Leah
vizulyApril 17, 2016 at 12:56 pm #6107Hi Leah,
Sometimes getting things running can be a little tricky.
I suspect it MIGHT be a security issue with Chrome accessing a local file. Check out this link here to get a little more info: https://chrisbitting.com/2014/03/04/allow-local-file-access-in-chrome-windows/
If that isn’t the issue, open up the chrome developer tools and see if the debugger is issuing any errors – that can help point us in the right direction.
– Tom
Leah GreensteinApril 17, 2016 at 1:37 pm #6108Hi Tom,
Thanks for your reply. The errors that I’m getting in the debugger are “d3.min.js:1 XMLHttpRequest cannot load file:///C:/Users/Owner/Downloads/weightedtree/weightedtree/data/weightedtree_federal_budget.csv. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource” and “Uncaught TypeError: Cannot read property ‘forEach’ of null.”
Any idea of what this might indicate?
Thanks,
Leah
Leah GreensteinApril 17, 2016 at 1:42 pm #6109Hi,
I ended up fixing the issue using a local server. I guess it was a security issue. Thanks so much for your quick replies!
vizulyApril 17, 2016 at 6:49 pm #6112Yep, it is browser security. Check out that article – you can set flags in chrome that allow you to read local files. Good luck!
-
|
You must be logged in to reply to this topic.