Hover the cursor over the districts to explore the voter statistics for each constituency, including the party which won the election.
The fill colors represents the parties which won the district, while "DIV" indicates more than one party won equal number of seats.
Constituent Assembly Election Data for 2013 from Election Commission, Nepal was used to generate this interctive electorate map for Nepal, using d3.js.
The shapefile containing the district boundaries of Nepal (source: ArcGIS), was converted to GeoJSON and then to topoJSON, following the steps from Mike Bostock's Let's Make a Map. The steps to create the topoJSON is also shown below:
Converting to GeoJSON
ogr2ogr -f GeoJSON nepal_districts.json NP_75DWGS84.shp
Converting to topoJSON
topojson -o nepaldistricts.json --id-property DIST_ID --properties name=DISTRICT npd.json
In addition, array manipulation and sorting has beeen used from d3-array and ScottMurray's tutorial to find which party won the district election, from the election data, as each district can have multiple constinuencies. The fill color
represents the party which won the election, while the color for "DIV" is used when more than one party won equal seats from that district.
This visualization uses d3.csv and d3.json together, and analysis is also done in runtime.