Open Data Hacking
Visualising India’s Electorate
The largest democratic exercise in the world has been coinciding nicely with the increasing availability of open, raw data. Some of you may have seen the Election Analytics Centre by IBN and Microsoft. This piece is about using open data to create something similar.
Over the past month, DataMeet, a community of data science enthusiasts, has curated a fantastic dataset of India’s elections from various data sources, including the Election Commission of India, the Association of Democratic Reforms and Daksh.
The ADR-Daksh Survey of Voter Perceptions, covering ~300,000 participants from 480 constituencies (available here), asked participants to scale thirty issues — ranging from Corruption to Women’s Empowerment — on an importance scale (High, Medium & Low). This dataset was mapped to a shapefile of India’s Parliamentary Constituencies, and converted to topojson using Fiona and Shapely, which you can interact with here or download to hack yourself.
Get Sujoy Chaudhuri’s stories in your inbox
Join Medium for free to get updates from this writer.
The data presented on the interactive view (and in the download), will be different than can be seen on either the Daksh or ADR sites — the original authors averaged and scored the High-Medium-Low scale to a numeric scale ranging from 1 to 10. In these pages, you will see only the percentage of the electorate that rated issues with High Importance. The idea is to look at what is on “top-of-mind” across the electorate. I had reasons to do this — but will leave explanations for another post.
Give the interface some time to load — once it does, explore the interface by hovering/clicking/tapping on the map. Change the colours on the choropleth using the drop-down to select one of 30 issues the survey covered. The interface should allow quick views of how voter perceptions of any one issue are clustered across the country. See for instance, what percentage of the electorate thinks Corruption or Employment Opportunities are of High Importance.
Hovering/clicking on the map will throw up an information tile, so you can explore data at the level of the state and constituency.
The image here, for instance, shows data for the Ahmedabad (East) constituency. You can see the size of the electorate, gender ratios and all 30 ADR-Daksh survey issues plotted as circles.
The issue most of the survey participants flagged with HIGH IMPORTANCE (and the percent of respondents) is also shown. Note that all issues (circles) in this constituency cluster close together.
A bar chart shows the frequency distribution of respondents across the country. The orange line represents the Kernel Density Estimate (KDE) of the National sample and the white line the KDE of the state — so you can see that Employment Opportunities are of greater concern to voters in Gujarat compared to the overall distribution for India.
Explore the interface. Feedback welcome.








