Giter Club home page Giter Club logo

owid-grapher's Introduction

owid-grapher

Build Status

This is the project we use internally at the University of Oxford to create embeddable visualizations for Our World in Data. Note that it is not yet a mature OSS project and may be difficult to apply elsewhere as a full package. That said, you are very welcome to read and reuse any of our code!

An example of what this can make (click for interactive):

Internet users by world region

The owid-grapher visualization frontend code can run isomorphically under node to render data directly to an SVG string, which is how the above image works!

Initial development setup

The grapher is a Python + JavaScript hybrid project, using Django and webpack. You will need: MySQL, Python 3.6+, Node 9.3+ and Yarn.

Running pip install -r requirements.txt and yarn install in the repo root will grab the remaining dependencies.

Database setup

An initial test database can be imported from grapher_admin/fixtures/owid_data.sql. For example, if your database is called grapher:

mysql -u root -p -D grapher < grapher_admin/fixtures/owid_data.sql

Now copy .env.example to .env and fill in your database details in that file.

Run yarn dev and head to localhost:8000. If everything is going to plan, you should see a login screen! The default user account is "[email protected]" with a password of "admin".

Architecture notes

owid-grapher is heavily based around reactive programming using the libraries Preact and Mobx, allowing it to do pretty heavy client-side data processing efficiently. New code should be written using PEP 484 type hints and TypeScript. Visual Studio Code is recommended for the autocompletion and other awesome editor analysis features enabled by static typing.

About

owid-grapher was originally created by Zdenek Hynek for Our World in Data. It is currently being developed by Jaiden Mispy and Aibek Aldabergenov with design assistance from Max Roser and the OWID research team.

owid-grapher's People

Contributors

zdenekhynek avatar aaldaber avatar aral avatar xammamax avatar

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.