Skip to content
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

UI for building an analytics query #31

Open
cormander opened this issue Jan 1, 2019 · 0 comments
Open

UI for building an analytics query #31

cormander opened this issue Jan 1, 2019 · 0 comments

Comments

@cormander
Copy link

As an administrator I need a UI to construct a query that gets ran against the database so that I can review the information with various charts.

http://localhost:3000/HelloVoterHQ/#/analytics/

The UI needs to let you:

  • select which data type you want returned / aggregated
  • add a new constraint to the query based on a data type (name, location, party, custom question, etc)
    • each constraint needs to define whether it's required or optional
    • each constraint needs to define whether this includes or excludes data, based on an operator (matches, doesn't match, less than, greater than, is equal, is not equal)
  • select the type of chart to use on the display

For example:

  • Select data type "Party"
  • Add constraint of question "votes in primary elections" is equal to true
  • Add constraint of question "voter ID laws help democracy" is greater than neutral (they answered "agree" or "strongly agree", but they're numerical behind the scenes)
  • Select display a bar chart

On submit, send the options to an endpoint, and expect a JSON object back to display as a bar chart, for example:

Party A: 10%
Party B: 67%
Party C: 55%
Party D: 22%

@cormander cormander transferred this issue from another repository Aug 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant