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

feat(surveys): add Rating question results viz #17886

Merged
merged 4 commits into from
Oct 11, 2023

Conversation

jurajmajerik
Copy link
Contributor

@jurajmajerik jurajmajerik commented Oct 10, 2023

Implemented a bar chart for Rating results as wireframed in #17038

@corywatilo

Screenshot 2023-10-10 at 14 57 43

Copy link
Contributor

@liyiy liyiy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Nonblocking: I think it'd be nice to add some sort of border or box to the graph so it has more structure to it on the page

@jurajmajerik jurajmajerik merged commit 9ca3bd3 into master Oct 11, 2023
72 checks passed
@jurajmajerik jurajmajerik deleted the surveys/rating-question-results branch October 11, 2023 08:34
Copy link
Collaborator

@neilkakkar neilkakkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some nits that may or may not be useful for the future :)

frontend/src/scenes/surveys/SurveyView.tsx Show resolved Hide resolved
frontend/src/scenes/surveys/surveyLogic.tsx Show resolved Hide resolved
frontend/src/scenes/surveys/surveyLogic.tsx Show resolved Hide resolved
frontend/src/scenes/surveys/surveyViewViz.tsx Show resolved Hide resolved
frontend/src/scenes/surveys/surveyViewViz.tsx Show resolved Hide resolved
{ count: dismissed, label: 'Dismissed', color: 'bg-warning' },
{ count: sent, label: 'Submitted', color: 'bg-success' },
].map(({ count, label, color }) => (
{ count: seen, label: 'Viewed', style: { backgroundColor: '#1D4AFF' } },
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curious why this change? I think we're moving away from specific styles on components to utility classes for those styles (but not 100% sure)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The colors suggested by Cory (#17815) are different from those available in Tailwind.

Probably worth a separate PR to make them available there.

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

Successfully merging this pull request may close these issues.

3 participants