/bar-chart-with-negative-values

2017 Estimated GDP growth rates for South American countries

Primary LanguageJavaScript

Bar chart with negative values

An interactive horizontal bar chart with negative values implemented with D3.js version 4.12.2.

Getting started

  • Clone or download the repository.

  • Run a local web server1 so that the external data file can be loaded.

  • View the bar chart in your web browser.

1 If Python is installed on the computer, execute one of the following to run a web server locally on port 8000:

  • python -m SimpleHTTPServer 8000 for Python 2.x
  • python -m http.server 8000 for Python 3.x

Data source

The CIA World Factbook. Website visited on 15 February 2018.