Fork of Fork of Scatter Plot World Heritage List
An interactive scatterplot of UNESCO World Heritage Sites from an online dataset uses D3 v6 to map each site as a circle, colored by continent. Initially, longitude and latitude position the points on a map-like layout; dropdown menus allow switching axes to date inscribed or continent. The code employs D3's `scaleLinear`, `scalePoint`, `scaleTime`, and `transition` APIs with animated transitions and jitter to mitigate overplotting.
AI-generated descriptionSource: Unesco Dataset.
I downloaded a dataset with the list of Natural and Cultural Heritage Sites of around the world. The first 'view' is a scatterplot/map because the x-axis is longitude and the y-axis latitude (hoping to learn how to make a map soon).
- The first insight from this view is that Europe (yellow dots) concentrates a lot of heritage sites.
- When you go to the second view (date on x-axis and continent on y-axis) you can see that Oceania and Africa are the Continents with fewer heritage sites, although there is a lot of overplotting so you can't really see how Europe is the number 1 continent (I added a little of jitter to avoid that, but it was not enought).
Things I didn't have the time to learn, but will like to add in the future:
- Add tooltips
- Limit the options for X & Y
- Add axis titles