Skip to content
/ ge-data Public

An interactive VueJS + ChartJS visualiser for analysing UK General Election Data

Notifications You must be signed in to change notification settings

b-xb/ge-data

Repository files navigation

UK General Election Data Visualiser

DEMO

Visit https://b-xb.github.io/ge-data/ to see a working demo.

About

This is a small demo application using Vue.js and Chart.js to make graphs of UK election data.

It is very simple at the moment but I may well add in more features in the future.

Possible Future Features

  • More Filters

    • Filter by region
    • Filter by EU referendum data
    • More political parties
    • Filter by seats gained/lost
  • Select Multiple

    • Show data for different political parties on the same graph
  • Averages

    • Calculate average lines for certain sets of data
  • Comparisons

    • Compare selected graph data side by side or combined into the same graph
  • More data

    • Include more data from previous years

Project setup

You will need to have Node.js installed on your local computer in order to run this application locally.

I recommended installing NVM, or similar, to manage multiple versions of node on the same computer and then installing the most recent LTS version of node.

Install dependencies

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Deploy to Github Pages

npm run build
npm run deploy

Customize configuration

See Configuration Reference.