Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter rando73

    (@rando73)

    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 “https://example.com” and “https://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! ??

    Thread Starter rando73

    (@rando73)

    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": "https://www.amcharts.com/lib/3/images/",
    
        "dataLoader": {
          "url": "https://www.lingbot.me/data/data.json",
          "format":"json"
          "showErrors": true
    	              },
    
    	"areasSettings": {
    		"autoZoom": true,
    		"selectedColor": "#CC0000"
    	},
    	"smallMap": {}
    });
Viewing 2 replies - 1 through 2 (of 2 total)