All Projects → hariesramdhani → kawalpemilu-visualized

hariesramdhani / kawalpemilu-visualized

Licence: other
An interactive data visualization of the result of Indonesia's recent election built using D3.js and KawalPemilu API

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to kawalpemilu-visualized

covid-19
Current and historical coronavirus covid-19 confirmed, recovered, deaths and active case counts segmented by country and region. Includes csv, json and sqlite data along with an interactive website explorer.
Stars: ✭ 15 (-62.5%)
Mutual labels:  dataviz, choropleth
moon geology atlas of space
Code, data, and instructions for mapping the geology of the moon
Stars: ✭ 76 (+90%)
Mutual labels:  dataviz
Slopegraph
Edward Tufte-Inspired Slopegraphs
Stars: ✭ 166 (+315%)
Mutual labels:  dataviz
Hanami
Interactive arts and charts plotting with Clojure(Script) and Vega-lite / Vega. Flower viewing 花見 (hanami)
Stars: ✭ 216 (+440%)
Mutual labels:  dataviz
Gghalves
✂️ Easy half-half geoms in ggplot2
Stars: ✭ 174 (+335%)
Mutual labels:  dataviz
Jupyterlab templates
Support for jupyter notebook templates in jupyterlab
Stars: ✭ 223 (+457.5%)
Mutual labels:  dataviz
Venmo Data
Venmo trasaction dataset for data analysis/visualization/anything
Stars: ✭ 164 (+310%)
Mutual labels:  dataviz
clarify
Discover and parse results for jurisdictions that use Clarity-based election systems.
Stars: ✭ 33 (-17.5%)
Mutual labels:  election
ddplot
Create D3 based SVG graphics easily from R
Stars: ✭ 43 (+7.5%)
Mutual labels:  dataviz
Keen Dataviz.js
Data Visualization Charting Library
Stars: ✭ 215 (+437.5%)
Mutual labels:  dataviz
Architecturetree
Draw and share your software architecture without diagramming software. Uses d3.js and Angular.js.
Stars: ✭ 211 (+427.5%)
Mutual labels:  dataviz
Picasso.js
A charting library streamlined for building interactive visualizations for the Qlik product suites.
Stars: ✭ 175 (+337.5%)
Mutual labels:  dataviz
Matplotlib Cheatsheet
Matplotlib 3.1 cheat sheet.
Stars: ✭ 2,806 (+6915%)
Mutual labels:  dataviz
Scientific Visualization Book
An open access book on scientific visualization using python and matplotlib
Stars: ✭ 6,336 (+15740%)
Mutual labels:  dataviz
printfTester
Tester for the ft_printf project of 42 school
Stars: ✭ 94 (+135%)
Mutual labels:  2019
Learngganimate
A living, breathing community exploration of the gganimate R package. A rOpenSci #ozunconf2018 project
Stars: ✭ 165 (+312.5%)
Mutual labels:  dataviz
Svg Patterns
SVG patterns for Data Visualization.
Stars: ✭ 201 (+402.5%)
Mutual labels:  dataviz
Marija
Data exploration and visualisation for Elasticsearch and Splunk.
Stars: ✭ 220 (+450%)
Mutual labels:  dataviz
mbp-fedora-kernel
No description or website provided.
Stars: ✭ 57 (+42.5%)
Mutual labels:  2019
FlowViz
A Power BI template that provides easy to understand, actionable flow metrics and predictive analytics for your agile teams using Azure DevOps, Azure DevOps Server and/or TFS.
Stars: ✭ 150 (+275%)
Mutual labels:  dataviz

KawalPemilu Visualized

KawalPemilu Visualized KawalPemilu Visualized is a data visualization of the result of Indonesia's recent election built using D3.js and KawalPemilu API. KawalPemilu Visualized is a static web page and the data visualizations are rendered on the client-side. (For more information about KawalPemilu please visit kawalpemilu.org).

KawalPemilu API Information

KawalPemilu API can be accessed via

https://kawal-c1.appspot.com/api/c/[REGION CODE]?[TIME]/
  • REGION CODE is a number ranging from 1~... that denotes the location of the place where the votes were collected
  • TIME is pretty self-explanatory, to generate time in Javascript use Date.now()

Example of request:

https://kawal-c1.appspot.com/api/c/0?1555803179480/

This will request votes data in JSON format for all provinces on Sunday, 21st April 6:33 AM GMT+7.

JSON file

The JSON file consists of two bigger parts, the first one is the value of "children". It consists of an array of arrays of the information about the provinces (if the REGION CODE is 0). Example:

[1,"ACEH",15610,1734674,1789100]

The first element is the code number to access the data from the API so if the REGION CODE that is being used is 1 it will give the votes data for the REGENCY and CITY in ACEH province. The second element corresponds to the total number of voting places in the region.

The second part is made of the vote data. To access the value, use the REGION CODE obtained from the first element of the former part as the key. The objects returned are pretty much self-explanatory, please cross check to KawalPemilu tabular data columns in case of doubt.

Start the Development on your PC

You need to have Python3++ installed or any code editor with Live Preview extension will do (e.g. VS Code or Brackets)

$ git clone https://github.com/hariesramdhani/kawalpemilu-visualized.git && cd kawalpemilu-visualized

$ python -m http.server 5500

It can be accessed via localhost:5500 on your browser

What to Implement/Do Next

  • Show past results; it'd be nice if the user can see the past results not only the updated ones. I'm planning to use python, psycopq2 and heroku postgresql to store the data, this way KawalPemilu Visualized can retrieve the data from there.
  • Color map by; the user can choose a different filter for the colors of the map, like color the map regarding the number of TPS, the number of data collected etc.
  • Regencies/cities visualization; when the user clicks the province a pop up will appear showing the visualization of the number of votes in cities/regencies of the provinces. This was how I expected it'd look like
  • Tweak the CSS and Javascript codes; right now there are tons of redundant lines of codes. It would be nice if it can be cleaned. Especially the CSS on index.html. Cleaning the inconsistency of ES6 and ES5 would also be nice.
  • Error Handling; the page doesn't come with a clever error handling so when the API is changed/down the page will show nothing. A pop-up message would be nice.
  • Add Kaltara to the main topojson file; hadn't had the time to do so, the easiest way would be to use GEOjson.io to add it.
  • Clever way to translate the map; at the moment I translated the map X, Y position manually. There must be a clever way to do this.
  • Test, test, test; there are no tests at the moment
  • Take Color Blindness into account;

Thanks to

New ideas and contributions are always welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].