Giter Site home page Giter Site logo

suchisrit / dataviz-for-mental-health Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 2.0 13.39 MB

Displays the trends of mental health disorder occurrence and awareness (Award-winner at Vizathon 2021).

Home Page: https://devpost.com/software/mental-health-visualized

Python 96.22% CSS 3.78%
mental-health mental-health-awareness data-visualization plotly-dash python

dataviz-for-mental-health's Introduction

Hero

Mental Health Visualized

Mental health has recently been making headlines, so we wanted to take a closer look at trends in mental health data by visualizing them. We created 3 visualizations using the Dash API and plotly library.

Inspiration

With Simone Biles making headlines and a year's worth of working remotely taking a toll on mental health, we thought that mental health would be a fascinating topic to explore through visualizations in data.

What it does

Our data visualizations take a look at 3 datasets, showing the percentage of population with mental health disorders by country, the number of people who have mental health disorders and who have discussed it formally with their employer in a survey, and the number of people in the tech industry who have sought treatment for their mental health condition. Our visualizations are interactive with the ability to slide through years, hover to see more responses, and click to see more results.

How we built it

We built these data visualizations using the Dash python API. We found datasets in csv format, loaded it into panda dataframes and used the plotly library to generate graphs and charts. Dash then allowed us to use python to compile all the graphs onto a single webpage with its html components library. We also wrote some css to style the webpage of the compiled graphs.

Challenges we ran into

Our main challenge was finding and cleaning datasets so that we could use them. Inconsistencies with the country names, country codes, and missing countries gave us a lot of trouble with the map data. We also had to fiddle a lot with the plotly express library in order to achieve the results we wanted. This included things like hover text, color scales, sunburst charts, etc.

Accomplishments that we're proud of

This was our first time being introduced to the Dash API and the plotly library, and one of our first introductions to working with large datasets, so we are happy with how we cleaned up the messy data from the real world into clean looking visualizations with a new library.

What we learned

Do not underestimate the messiness of real world datasets.

Built With

python
pandas
dash 
plotly 
html5 
css3 

Datasets

Visualization 1 (chloropleth map)

Visualization 2 (sunburst chart)

Visualization 3 (bar graph)

Screenshots

viz-1

viz-2

viz-3

dataviz-for-mental-health's People

Contributors

antz22 avatar suchisrit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.