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): Multiple Choice question results #17954

Merged
merged 11 commits into from
Oct 16, 2023

Conversation

jurajmajerik
Copy link
Contributor

  • Implemented Multiple Choice question visualization
  • Adjusted bar charts as suggested by @corywatilo
Screenshot 2023-10-12 at 16 28 56 Screenshot 2023-10-12 at 16 29 53

Copy link
Contributor

@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.

very nice!

@@ -207,6 +207,7 @@ export interface LineGraphProps {
showPersonsModal?: boolean
tooltip?: TooltipConfig
inCardView?: boolean
inSurveyView?: boolean
Copy link
Contributor

Choose a reason for hiding this comment

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

These are nicer as specific customisation options, like hideGrid and hideAxis

Copy link
Contributor

Choose a reason for hiding this comment

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

clearer to understand, and then not limited to just surveys for whoever uses this component in the future

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree and added hideXAxis and hideYAxis props.

I still had to leave inSurveyView in two places - the logic in the component is convoluted and could use a refactor - but not sure if it's worth it at this point since Cory mentioned he's planning to rethink our visualization components.

frontend/src/scenes/surveys/surveyLogic.tsx Show resolved Hide resolved
@liyiy
Copy link
Contributor

liyiy commented Oct 12, 2023

The empty state here just has this box. This is also the same for single choice results too, can we double check this? 😮

Screen Shot 2023-10-12 at 12 52 42 PM

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.

It's Much better looking now than before 😀 nice work

@jurajmajerik jurajmajerik merged commit cda82fc into master Oct 16, 2023
@jurajmajerik jurajmajerik deleted the surveys/multiplechoice-question-results branch October 16, 2023 07:24
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