-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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 ? |
a646331
to
4f14969
Compare
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 ( |
If the original issue would have been caught by an unit test, I think this is the best way to go :) |
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.
👍 Thanks !
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.