GithubHelp home page GithubHelp logo

mattfullerton / garment-disasters-timeline Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 11 KB

A simple web-based visualization of garment factory disasters in Bangladesh, created in the wake of the Rana Plaza disaster

License: MIT License

JavaScript 59.74% CSS 15.31% HTML 24.95%

garment-disasters-timeline's Introduction

#garment-disasters-timeline

A simple web-based visualization of garment factory disasters in Bangladesh, the initial version of which was created in the wake of the Rana Plaza disaster. See it at http://clothing.norainnosun.de/.

##Setup After cloning, you need to run the following two commands on the repository:

git submodule init
git submodule update

Then serve index.html with a web server of your choice.

##Data A couple of reports that deal with the history of incidents and their causes are:

Hazardous workplaces: Making the Bangladesh Garment industry safe

Fair Wear Foundation Background Study BANGLADESH, Fair Wear Foundation, 2006

Other sources are contained in the data. Many of the geographic coordinates in the data are rough and when multiple entries existed for an area or city without exact locations, they were moved around so that multiple entries could be seen on the map. There is a project going on to map Bangladesh's garment factories (see below) as well as pool and organize data on the factories more generally; through this we hope to obtain better coordinates.

##How it works The visualization grabs its data from a CartoDB (PostgreSQL) database using their JavaScript API.

Using Leaflet, vector graphics layers based on the data from each year are displayed according to a jQueryUI slider position.

The stacked bar chart uses d3.js. We adapted code placed online by Ben Christensen, which was more than what we needed. You can track the changes via the git (Gist) sub-module.

##Do something Improvements to the code and the data are welcome. Concerning the data, I am trying to reconcile our data with this one, based on data from the ILRF. That's the kind of one-evening project where a second pair of eyes would be useful.

There are/were bigger projects dealing with documenting the garment industry:

  • The first School of Data Data Expedition on the topic resulted in some nice work mapping global supply chains.
  • The second School of Data Data Expedition on the topic (results here) included pooling together existing data and geocoding factory locations. The results in the form of a large data set can be found on datahub, and a summary of what was done and what is left to do can be found on this Trello board. Help is needed to finish things off, and find a way to keep the dataset up to date.
  • Free2Work is trying to show you the entire supply chain behind every barcode. It is a project supported by ILRF. Their app allows you to contribute information on products.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.