-
-
Notifications
You must be signed in to change notification settings - Fork 149
chore: updating world map workshop prototype #1136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jdwilkin4
merged 11 commits into
freeCodeCamp:main
from
danielfreire-dev:d3-map-population-update
Mar 30, 2026
Merged
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
cfe098b
tooltip fixed. added population data for 2025 from the same source (w…
danielfreire-dev 1eeb7ce
changed .js file name, css file name, uses cdn version of d3(cloudfla…
danielfreire-dev 0cb5861
removed .vscode/
danielfreire-dev 933daf6
updated .css file name. fetching data from cdn now. moved course 'fro…
danielfreire-dev 36028f1
updated .css file name. fetching data from cdn now. moved course 'fro…
danielfreire-dev 686160e
refactor: move old folder
jdwilkin4 3a00d4b
fix: restoring old files
jdwilkin4 995bd1d
updated links for fCC's CDN
danielfreire-dev ec295a5
cleanup
danielfreire-dev 924fc68
cleanup2
danielfreire-dev 0a382af
fix: responsive issues for mobile
jdwilkin4 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "liveServer.settings.port": 5501 | ||
| } |
2 changes: 2 additions & 0 deletions
2
front-end-libraries/learn-intermediate-d3-by-building-a-map-of-earth/d3.v7.min.js
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
front-end-libraries/learn-intermediate-d3-by-building-a-map-of-earth/d3v5min.js
This file was deleted.
Oops, something went wrong.
63 changes: 36 additions & 27 deletions
63
front-end-libraries/learn-intermediate-d3-by-building-a-map-of-earth/index.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,33 +1,42 @@ | ||
| <!DOCTYPE html> | ||
| <!doctype html> | ||
| <html lang="en-us"> | ||
| <head> | ||
| <meta charset="utf-8"> | ||
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | ||
| <title>World Population</title> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
| <meta | ||
| name="viewport" | ||
| content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" | ||
| /> | ||
| <title>World Population</title> | ||
|
|
||
| <!-- Style sheet --> | ||
| <link rel="stylesheet" type="text/css" href="./index.css" /> | ||
| </head> | ||
| <body> | ||
| <!-- D3 v5 script --> | ||
| <!-- <script src="https://d3js.org/d3.v5.min.js"></script> --> | ||
| <script type="text/javascript" src="./d3v5min.js"></script> | ||
| <!-- Style sheet --> | ||
| <link rel="stylesheet" type="text/css" href="./index.css" /> | ||
| </head> | ||
| <body> | ||
| <!-- D3 v5 script --> | ||
| <!-- <script src="https://d3js.org/d3.v5.min.js"></script> --> | ||
| <!--<script type="text/javascript" src="./d3v5min.js"></script> --> | ||
|
|
||
| <!-- D3 topoJSON script --> | ||
| <!-- <script src="https://d3js.org/topojson.v1.min.js"></script> --> | ||
| <script type="text/javascript" src="./topojsonv1min.js"></script> | ||
| <!-- D3 v7 script --> | ||
| <!-- <script src="https://cdn.jsdelivr.net/npm/d3@7"></script> --> | ||
| <script type="text/javascript" src="./d3.v7.min.js"></script> | ||
|
|
||
| <h1>D3 Map of World Population</h1> | ||
| <div id="map"></div> | ||
| <div id="tooltip"></div> | ||
| <footer> | ||
| Sources:<br /> | ||
| Map made with Natural Earth<br /> | ||
| World population data as of 2017: https://databank.worldbank.org | ||
| </footer> | ||
| <!-- D3 topoJSON script --> | ||
| <!-- <script src="https://d3js.org/topojson.v1.min.js"> | ||
| </script> | ||
| --> | ||
| <script type="text/javascript" src="./topojsonv1min.js"></script> | ||
|
|
||
| <!-- Script with D3 code --> | ||
| <script type="text/javascript" src="./index.js"></script> | ||
| </body> | ||
| <h1>D3 Map of World Population</h1> | ||
| <div id="map"></div> | ||
| <div id="tooltip"></div> | ||
| <footer> | ||
| Sources:<br /> | ||
| Map made with Natural Earth<br /> | ||
| World population data as of 2025: https://databank.worldbank.org | ||
| </footer> | ||
|
|
||
| <!-- Script with D3 code --> | ||
| <script type="text/javascript" src="./index.js"></script> | ||
| </body> | ||
| </html> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.