French National Assembly React App
This is an example application demonstrating a React data-visualization. It makes partial use of d3, mostly for the scaling and data manipulation functions. The DOM manipulations are handled by React.
The application displays the composition of the French National Assembly as of June 2017. Each deputy is displayed by a circle. Circles are ordered by party orientation. Hovering on a circle will display the deputy's information. Search & filters can be used to show/hide deputies.
Live Demo
Sources
-
Original idea from Liberation's Assembly Visulization App.
-
The data is from Le Monde's similar Deputies Infography. The code to build the hemicycle was also adapted from this web page.
-
Tips on how to integrate React and D3 came from Joel Burget's D4 experiment.
Development tools
This project was bootstrapped with Create React App.
You can find the most recent guide here
Available Scripts
In the project directory, you can run:
npm start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
npm run build
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
License
Released under the The MIT License.