Our Jornada de Talent Digital Hackathon submission is an Angular application of an analytics platform that allows Barcelona Municipiality employees to gather data visualizations related to the quantity of senior citizens living alone in different neighborhoods and economic levels per neighborhoods.
The main navigation format is based on an interactive 3D cube, and each face of the cube represents distinct datapoints. Much of the data is generated through json files that are accessed through the backend servers. A Geo JSON file is also infused with the datapoints related to senior citizens resulting in an interactive color-coded map. The starting point for the data which the Data Science team processed can be found here.
In this project we used Angular and Boostrap5 to develop a web app that reads a JSON file with datapoints in which row is listed the neighborhood name with
- neighborhood name
- higher education graduates
- number of unemployed
- cost of rents for family
- number of senior citizens living alone
- index of people aged 65 and older.
The map was developed using Leaflet and the neighborhoods are delimited by a GeoJSON file. A "get color" function colors each neighborhood based on the determined average income and the number of senior citizens living in that block.
Corresponding bar graphs and pie charts are developed with the help of Ngx-Charts. To feed the data to both chart types, the main JSON file had to be modified to become an proper input for each chart type.
The Cube Transitions were developed using CSS transformations and translations.
-
Login Administration of different users.
-
Dynamic Filtering of different data points.
-
Sidebar Statistics representation in dynamic charts.
-
Design and style the app.
This project was generated with Angular CLI version 14.0.6.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The application will automatically reload if you change any of the source files.
Clone or fork the Repo, and ensure that you have the Angular CLI installed.
In the project directory.
npm install
In the project directory.
ng serve --open or ng s -o
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.