-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(surveys): Multiple Choice question results #17954
Conversation
jurajmajerik
commented
Oct 12, 2023
- Implemented Multiple Choice question visualization
- Adjusted bar charts as suggested by @corywatilo
There was a problem hiding this 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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this 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
…hub.com/PostHog/posthog into surveys/multiplechoice-question-results