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

Add chart animations to Area, Bar, Line, and (opacity-only) Scatter #224

Open
wants to merge 121 commits into
base: byu-team-animations
Choose a base branch
from

Conversation

jacob-hart
Copy link
Collaborator

@jacob-hart jacob-hart commented Apr 3, 2024

Description

Adds the following animations

  • Area: data and opacity animations
  • Bar: data and opacity animations
  • Line: data and opacity animations
  • Scatter: opacity animations

The animations are enabled in a new story section called "Animations"

Known Bugs

  • TrellisHorizontalBarSwitch changes the data in a way that always does animation from zero, not from existing data. RESOLVED
  • TrendlineZero story doesn't change the data enough to trigger an animation from zero RESOLVED

How Has This Been Tested?

We built animations in a backwards-compatible way so the existing test suite would continue to work. We have incrementally added animation-focused tests, as well as extensive manual testing.

Note: there are some Sonar failures in this first revision. We are planning to fast-follow with fixes, but want this PR up to gather feedback earlier!

Screenshots (if appropriate):

Screen.Recording.2024-04-03.at.3.56.10.PM.mov
Screen.Recording.2024-04-01.at.10.27.19.AM.mov
Screen.Recording.2024-04-03.at.3.57.05.PM.mov

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

gideontonkinson and others added 30 commits February 14, 2024 11:31
* chore: add timer value to signals

* fix: remove debug from chart.story.tsx

* chore: add tests for timer signal

* fix: remove debug
* chore: add timer value to signals

* fix: remove debug from chart.story.tsx

* chore: add tests for timer signal

* fix: remove debug

* feat: add previous data table to data

* fix: fix broken test

* fix: remove debug
@jacob-hart
Copy link
Collaborator Author

Bug with trendline switch animations has been resolved:

Screen.Recording.2024-04-12.at.10.59.51.AM.mov

Copy link

Copy link

sonarcloud bot commented Apr 12, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot

See analysis details on SonarCloud

Copy link

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.

None yet

5 participants