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

Feature/data visualization #55

Merged
merged 7 commits into from
Dec 2, 2024
Merged

Conversation

AttePeramaki
Copy link

Added barchart visualization radio, multi and numeric questions.

Copy link
Member

@jlaamanen jlaamanen left a 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>
) : (
<></>
Copy link
Member

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) {
Copy link
Member

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.

@AttePeramaki AttePeramaki merged commit 30d8b37 into develop Dec 2, 2024
2 checks passed
@AttePeramaki AttePeramaki deleted the feature/data-visualization branch December 2, 2024 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants