-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Treemap and all elections totals table: Discuss new endpoints for /by_state and /by_state/by_district #5026
Comments
Option one 2)if aggregate_by = states 3)if aggregate_by = districts 4)if aggregate_by = parties Filters: |
Option two 2)if aggregate_by = by_district
Filters: |
What we're after:
We need to create new endpoints to support the work for the House and Senate treemap and all elections totals tables (see screenshots below). To do this, we will riff off the /totals/by_office/by_state endpoint. We would want to be able to grab all the states for senate elections, and use by_state/by_district to get states for House elections.
Proposed endpoints will be:
Action items:
Completion criteria:
Related tickets
#5027
This is the "treemap: feature mockup:
![Screen Shot 2022-03-10 at 7 40 35 PM](https://user-images.githubusercontent.com/5572856/157779574-c9a9afc0-fbec-4f5c-acb1-a0247c5bcd8f.png)
fecgov/fec-epics#213
This is the All elections totals table mockup:
![Screen Shot 2022-03-10 at 7 46 52 PM](https://user-images.githubusercontent.com/5572856/157780125-06b3fde9-b318-44b0-9949-56a34a7610c5.png)
fecgov/fec-epics#216
The text was updated successfully, but these errors were encountered: