2018-09-30 23:01:58 +01:00
---
id: bd7198d8c242eddfaeb5bd13
title: Show National Contiguity with a Force Directed Graph
challengeType: 3
2019-08-05 09:17:33 -07:00
forumTopicId: 302367
2021-01-13 03:31:00 +01:00
dashedName: show-national-contiguity-with-a-force-directed-graph
2018-09-30 23:01:58 +01:00
---
2020-11-27 19:02:05 +01:00
# --description--
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
**Objective:** Build a [CodePen.io ](https://codepen.io ) app that is functionally similar to this: < https: // codepen . io / freeCodeCamp / full / xVopBo > .
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
Fulfill the following [user stories ](https://en.wikipedia.org/wiki/User_story ). Use whichever libraries or APIs you need. Give it your own personal style.
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
**User Story:** I can see a Force-directed Graph that shows which countries share borders.
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
**User Story:** I can see each country's flag on its node.
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
**Hint:** Here's a dataset you can use to build this: < https: / / raw . githubusercontent . com / DealPete / forceDirected / master / countries . json >
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
**Hint:** You can create a spritesheet of national flags at < https: / / www . flag-sprites . com > .
When you are finished, include a link to your project on CodePen and click the "I've completed this challenge" button.
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
You can get feedback on your project by sharing it on the [freeCodeCamp forum ](https://forum.freecodecamp.org/c/project-feedback/409 ).
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
# --solutions--
2018-09-30 23:01:58 +01:00
```js
// solution required
```