Skip to content

cydalytics/HK_Voters_Distribution

Repository files navigation

Hong Kong Voters Distribution Python Folium

Created by cyda - Carrie Lo & Yeung Wong alt text


Please acknowledge team cyda - Carrie Lo and Yeung Wong when using the code

If you find this script is helpful, please feel free to endorse us through Linkedin!

Linkedin:


Project Description

This project is to visualize Hong Kong voters distribution.

Project Details

To check the tutorial article, please click here.

The package used is Folium. Folium builds on the data wrangling strengths of the Python ecosystem and the mapping strengths of the leaflet.js library. To know more about the package, you can refer to the docunment here.

Data were downloaded from voter statistics and census population statistics released from Hong Kong Government and pre-processed. The data used in the map are stored in Consolidated Data.xlsx. Feel free to play around =)

The original map json file of Hong Kong is downloaded from this site.

Demonstration

To test the interactive effects of the charts, please visit https://cydalytics.blogspot.com/2020/05/hk-voter-analysis.html.

HK Map with Different TileLayers

alt text

HK Map with Customized Tooltip Version 1

alt text

HK Map with Customized Tooltip Version 2

alt text

Releases

No releases published

Packages

No packages published