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 bar chart animation when sign changes #1780

Merged
merged 1 commit into from
Dec 16, 2024
Merged

Conversation

carysmills
Copy link
Contributor

@carysmills carysmills commented Dec 11, 2024

What does this implement/fix?

Improve the bar animation when the value changes from negative to positive for vice versa

Does this close any currently open issues?

Resolves https://github.com/Shopify/core-issues/issues/81906

What do the changes look like?

Before After
Screen.Recording.2024-12-13.at.8.49.11.AM.mov
Screen.Recording.2024-12-13.at.8.49.38.AM.mov

Storybook link

https://6062ad4a2d14cd0021539c1b-kipahzvwhw.chromatic.com/?path=/story/polaris-viz-charts-barchart--default

Note: I removed these changes in Storybook so they aren't on the PR

Before merging

  • Check your changes on a variety of browsers and devices.

  • Update the Changelog's Unreleased section with your changes.

  • Update relevant documentation, tests, and Storybook.

  • Make sure you're exporting any new shared Components, Types and Utilities from the top level index file of the package

@carysmills carysmills self-assigned this Dec 11, 2024
Copy link

github-actions bot commented Dec 11, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
polaris-viz-core-cjs 61.73 KB (0%) 1.3 s (0%) 799 ms (+15.81% 🔺) 2.1 s
polaris-viz-cjs 224.24 KB (+0.03% 🔺) 4.5 s (+0.03% 🔺) 1.9 s (+4.2% 🔺) 6.4 s
polaris-viz-esm 181.87 KB (+0.03% 🔺) 3.7 s (+0.03% 🔺) 1.7 s (+1.55% 🔺) 5.4 s
polaris-viz-css 5.7 KB (0%) 114 ms (0%) 325 ms (-6.54% 🔽) 439 ms
polaris-viz-esnext 188.78 KB (+0.02% 🔺) 3.8 s (+0.02% 🔺) 1.5 s (+0.55% 🔺) 5.3 s

@carysmills carysmills force-pushed the bar-animation-fix branch 2 times, most recently from 9ad044d to 61ef633 Compare December 13, 2024 13:54
@carysmills carysmills marked this pull request as ready for review December 13, 2024 13:57
Copy link
Collaborator

@michaelnesen michaelnesen left a comment

Choose a reason for hiding this comment

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

Nice, looks much better 🙌

@carysmills carysmills merged commit 972058f into main Dec 16, 2024
6 checks passed
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.

3 participants