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

fix: Pie chart initialization #754

Merged
merged 3 commits into from
Sep 30, 2022
Merged

Conversation

bprusinowski
Copy link
Collaborator

@bprusinowski bprusinowski commented Sep 30, 2022

Fixes #719.

This PR updates the pie chart to also consider geoDimensions for segment when it's initialized. Also there is a correction to possible chart types logic which should prevent such failures in the future.

@vercel
Copy link

vercel bot commented Sep 30, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
visualization-tool ✅ Ready (Inspect) Visit Preview Sep 30, 2022 at 11:44AM (UTC)

@ptbrowne
Copy link
Collaborator

Do you think it would make sense to add a test to check the chart initialization logic ? Like open the editor for the dataset and checking that all the possible chart types button are not disabled ?

@bprusinowski bprusinowski force-pushed the fix/pie-chart-initialization branch from a646331 to 4f14969 Compare September 30, 2022 09:57
@bprusinowski
Copy link
Collaborator Author

bprusinowski commented Sep 30, 2022

I think a test is definitely a good idea, but I wonder if this should be an e2e test, or would a unit test be enough – I am not sure if there is benefit in having an e2e test for a given dataset, when the logic to what to display in the buttons is solely dependent on one function (getPossibleChartType)?

@ptbrowne
Copy link
Collaborator

If the original issue would have been caught by an unit test, I think this is the best way to go :)

Copy link
Collaborator

@ptbrowne ptbrowne left a comment

Choose a reason for hiding this comment

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

👍 Thanks !

@bprusinowski bprusinowski merged commit 95a0fb7 into main Sep 30, 2022
@bprusinowski bprusinowski deleted the fix/pie-chart-initialization branch September 30, 2022 12:55
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.

Error when visualizing the EIV data as a scatterplot or pie chart
2 participants