-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/data visualization #55
Conversation
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.
LGTM 🐮
Lots of maths (as expected), nice work commenting the key parts!
</BarChart> | ||
</ResponsiveContainer> | ||
) : ( | ||
<></> |
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.
[nit] I think you can also return null
to denote empty contents, but I guess an empty fragment is pretty equivalent to this
if (!questionAnswers) return; | ||
|
||
let base: Data; | ||
switch (selectedQuestion?.type) { |
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.
[nit] ?.
shouldn't be required here, because the function has returned on the first line if it's falsy.
Added barchart visualization radio, multi and numeric questions.