Skip to content

Fetch external data and display/render bar chart showing GDP & TFR for all countries

Notifications You must be signed in to change notification settings

brandonswansfeger/GDP-Bar-Charts

Repository files navigation

Contributors Forks Stargazers LinkedIn

Economic Development and Access to Family Planning: Using Bar Charts to Visualize the Data

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

While most demographers and economists have viewed socioeconomic factors as the driving forces behind fertility decline in developing countries, there is growing evidence that the “ease” of access to, or realistic availability of, fertility regulation methods may be at least as important in this demographic change. Much of the world's fertility decline has occurred where fertility regulation methods are relatively easy to obtain regardless of a "program", and those countries have not all exhibited economic development or significant improvements in education before the decline. In addition, there is evidence that removing barriers to family planning options actually builds a desire for small families – which would be consistent with our consumer behavior regarding other products and services. If governments and international donor agencies recognize and move to reduce certain barriers, this will benefit parents by enabling them to achieve their family size goals, and improve maternal health and child survival.

Using date from The World Bank, World Development Indicators, this webapp provides a visualization of data showing that some countries have reduced family size before economic development has increased while also showing that most countries with fertility above replacement level have economies that are less developed.

Economic Development GDP per capita, PPP* is the indicator selected to measure the econonomic development for each country. The countries are sorted in descending order from highest GDP per capita, PPP on the left towards the lowest GDP per capita, PPP on the right.

Access to Family Planning Total Fertility Rate (TFR)** is the indicator selected to measure access to family planning. The vertical bars represent the TFR for each country and values are shown on the y axis.

(back to top)

Built With

  • Django
  • Python
  • HTML
  • CSS
  • JavaScript
  • Matplotlib
  • Pandas
  • WBGAPI

(back to top)

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

  • npm
    npm install npm@latest -g

To use this template to start your own project:

Existing virtualenv

If your project is already in an existing python3 virtualenv first install django by running

$ pip install django

And then run the django-admin.py command to start the new project:

$ django-admin.py startproject \
  --template=https://github.com/nikola-k/django-template/zipball/master \
  --extension=py,md \
  <project_name>

No virtualenv

This assumes that python3 is linked to valid installation of python 3 and that pip is installed and pip3is valid for installing python 3 packages.

Installing inside virtualenv is recommended, however you can start your project without virtualenv too.

If you don't have django installed for python 3 then run:

$ pip3 install django

And then:

$ python3 -m django startproject \
  --template=https://github.com/nikola-k/django-template/zipball/master \
  --extension=py,md \
  <project_name>

After that just install the local dependencies, run migrations, and start the server.

{% endif %}

{{ project_name|title }}

Getting Started

First clone the repository from Github and switch to the new directory:

$ git clone git@github.com/USERNAME/{{ project_name }}.git
$ cd {{ project_name }}

Activate the virtualenv for your project.

Install project dependencies:

$ pip install -r requirements/local.txt

Then simply apply the migrations:

$ python manage.py migrate

You can now run the development server:

$ python manage.py runserver

div id="top"></div>

(back to top)

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

Data from Covid Act Now API is licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International.

All commercial entities wishing to access the API should contact api@covidactnow.org to acquire a commercial license.

commercial users are defined as any individual or entity engaged in commercial activities, such as selling goods or services. Non-commercial users can freely download, use, share, modify, or build upon the source code.

(back to top)

Contact

brandonswansfeger@me.com

Project Link: https://github.com/github_username/repo_name

(back to top)

(back to top)

About

Fetch external data and display/render bar chart showing GDP & TFR for all countries

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published