defundthepolice icon indicating copy to clipboard operation
defundthepolice copied to clipboard

App: Compare All Counties

Open banjtheman opened this issue 4 years ago • 0 comments

What is the Task

Create a new App, that can view all the data we have collected

Why do we want to do this

To get a single view of all the data

How can I get started?

  1. Create a new folder in apps called all_counties_compare, follow style of other folders https://github.com/banjtheman/defundthepolice/tree/main/apps

  2. Use pandas to create a single data frame to collect all the data, should have a new column called state_county which adds the state and county together e.g VA_Arlington

  3. Create a stacked bar chart to view the budget percent for each county Here is example code https://altair-viz.github.io/gallery/stacked_bar_chart_sorted_segments.html

  • x axis - percent of budget
  • y axis - State county
  • color - budget item
  1. Add new page to main_st.py https://github.com/banjtheman/defundthepolice/blob/main/main_st.py#L3-L8

  2. Leave any questions you have in comments, If you want to work on this, go ahead no need to ask

Definition of Done

Can select this new app, and view the stacked bar chart

banjtheman avatar Oct 08 '20 21:10 banjtheman