Giter VIP home page Giter VIP logo

viz's Introduction

Resources for data visualisation exercises

You can download data on donations (as well as loans, spending and other information) to political parties on the Electoral Commission website.

If you just click 'search' and scroll to the bottom where individual donations are shown in a table, there should be an option to Export Results as a CSV.

This data is good to use to explore data visualisation because it allows us to use a range of different charts for different purposes.

In this repo you can find a CSV of data downloaded in June 2019. There is also an XLSX file which shows that data being analysed in different ways to generate data for different charts. For example:

  • Pivot [table] total donations by party - the top 5 are then used for a pie chart (composition)
  • Pivot totals by non-party - the top 10 are used for a bar chart (comparison)
  • Extract month/year - we need to do this to show distribution on a histogram, or change over time in a line chart, because the data only includes specific dates
  • Pivot totals by month - to create a histogram showing distribution of donations over a typical year
  • Pivot stacked bar: we use a field for columns but filter to just 2 of those that can be used to show both comparison (between bars) and composition (within the bar)
  • Pivot year and party: to create a line chart showing change over time

Cleaning data for mapping

Open Refine is useful for converting data from XML or JSON format, combining data, and cleaning it.

This tutorial explains how to convert, combine and clean food hygiene data so that it can be mapped

Mapping points (Datawrapper)

Here's how to create point maps in Flourish.

This tutorial explains how to create a map of points in Datawrapper. However, its zoom level doesn't go very far so it's only suitable for national-level stories.

Here's how to make choropleth maps in Flourish

Flourish does have a timelapse map of points, too.

You can create a cartogram election map in Datawrapper - details here

If you want to show the relative size of something compared to an area there's this tool

viz's People

Contributors

paulbradshaw avatar

Stargazers

 avatar

Watchers

 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.