Code error OR Content Security Policy directive?

Hi everyone,
For some reason, when I’m trying to create a ‘d3.geoPath’ using the resources/link provided by Free Code Camp, I get an error in my console, that refuses to load the image in the json. Wondering if the new version has an alternate way to upload the image or is this a CSP issue ?

Here is my code so far — https://codepen.io/UK020/full/qBmzBre

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36

Challenge: Visualize Data with a Choropleth Map

Link to the challenge:

Since everything is in

async function run() {...}

you need to actually call the function with run(); at some point. Doing this does generate data in the console and draws some blobs (counties) on what could be a blank US map, so it looks like your data is being downloaded without issue.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.