Skip to content

Tool for visualizing parliamentary seating with party distribution in a hemicycle.

Notifications You must be signed in to change notification settings

titouanlegourrierec/Hemicycle-Chart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LE GOURRIEREC Titouan LinkedIn Mail

Hemicycle Chart

Tool for visualizing parliamentary seating with party distribution in a hemicycle.


Report a bug · Request Feature

Table of Contents
  1. About The Project 📖
  2. Usage

About The Project

This project provides an easy way to visualize parliamentary seating in the form of a hemicycle, illustrating the distribution of deputies by party. It simplifies the process of generating accurate and clear representations of legislative assemblies, making it useful for data analysis, presentations, and political studies. The tool is flexible and customizable to fit different parliamentary structures and compositions.

For more information, you can read the article I published in the Python in Plain English journal on Medium: How to Create a Parliamentary Hemicycle Data Visualization in Python.

(back to top)

Built With

  • Python

(back to top)

Usage

To select different parameters, you can use the demo application here:

Then, choose the parameters NUM_ROWS, INITIAL_RADIUS, RADIUS_INCREMENT, and POINT_SIZE in the chart.ipynb file.

You also need to provide the distribution of the hemicycle in the following format:

parties = [
    Party('Party 1', '#A11770', 142),
    Party('Party 2', '#D9669E', 13),
    Party('Party 3', '#FE9F10', 257),
    Party('Party 4', '#0690C5', 73),
    Party('Party 5', '#8D6026', 72),
    Party('Unassigned', 'unassigned', 20),
]

where the first element of Party() is the party name, the second element is the party's hexadecimal color code (if 'unassigned', it will be a white circle with a grey border), and the third element is the number of deputies in the party.

(back to top)

Contact

LE GOURRIEREC Titouan - [email protected]

Repository Link: https://github.com/titouanlegourrierec/Hemicycle-Chart

(back to top)

About

Tool for visualizing parliamentary seating with party distribution in a hemicycle.

Topics

Resources

Stars

Watchers

Forks