rando73
Forum Replies Created
-
Forum: Plugins
In reply to: [amCharts: Charts and Maps] How do I use Data Loader with a map?So I checked the browser’s console, and it turns out there was a cross-domain-origin issue. Which was quite confusing, because the JSON file is on the same domain as my website. But after looking around I finally figured out what the problem was: apparently “http://example.com” and “http://www.example.com” are not considered to be the same domain.
So I went to Dashboard > Settings > General Settings and modified both the “WordPress Address” and the “Site Address” fields so that they include WWW. And now it’s solved! Thanks for all your help! 🙂Forum: Plugins
In reply to: [amCharts: Charts and Maps] How do I use Data Loader with a map?Thanks for your reply! I’ve tried what I did before but this time with JSON, except it’s not working either. The page only displays “Loading data…” and nothing happens. Is there something wrong with the way I’m calling the data in my code?
var %CHART% = AmCharts.makeChart("%CHART%", { "type": "map", "theme": "light", "pathToImages": "http://www.amcharts.com/lib/3/images/", "dataLoader": { "url": "http://www.lingbot.me/data/data.json", "format":"json" "showErrors": true }, "areasSettings": { "autoZoom": true, "selectedColor": "#CC0000" }, "smallMap": {} });