Giter Club home page Giter Club logo

waterfall's Introduction

Visualising Tendulkar's ODI career using D3.js

TL;DR you can use waterfall charts to visualise cricketer stats. This is an attempt at plotting Tendulkar's ODI career.

Screenshot:
Sachin Tendulkar's ODI career as a waterfall plot

Live Demo

While hacking on a waterfall plot at booking.com's internal hackathon with Stuart, it occurded to me that we could employ waterfalls to visualise all kinds of things. This is an attempt at visualising Sachin Tendulkar's ODI career.

It is a simple-minded plot of runs scored each year. It is not the best way to visualise a cricketer's career. It doesn't take into account the no. of matches played. For example, 1989 shows up without a bar because Tendulkar made 0 runs in his debut year but it hides the fact that he played just one match in 1989 and that too in November. It also doesn't show significant performances like centuries scored each year. Despite the shortcomings, it is a way to look at data and it does call out some things immediately, like 1998 being Tendulkar's most prolific year (odi-wise).

The data comes courtesy of ESPN Cricinfo's brilliant and ever reliable Statsguru. I got the data through simple jQuery DOM traversal in Chrome's web console and converted it into a PhantomJS script. You can find it under the crawlers directory.

waterfall's People

Contributors

deepakg avatar

Watchers

James Cloos 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.