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 restored layout of graph of categorical axis #1589

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

bfinzer
Copy link
Contributor

@bfinzer bfinzer commented Nov 3, 2024

[#188403674] Bug fix: Layout of graph axis not correct on restore

  • The categorical axis computes its desired extent based on whether there is a collision of categories if the category text is laid out parallel to the axis. We had been attempting to use the layout's multiscale's scale, which does (eventually) compute a bandwidth, but not in time for the initial render. So we do it a bit more brute force from the axis length and number of categories.

* The categorical axis computes its desired extent based on whether there is a collision of categories if the category text is laid out parallel to the axis. We had been attempting to use the layout's multiscale's scale, which does (eventually) compute a bandwidth, but not in time for the initial render. So we do it a bit more brute force from the axis length and number of categories.
@bfinzer bfinzer requested a review from kswenson November 3, 2024 22:22
@bfinzer bfinzer added the v3 CODAP v3 label Nov 3, 2024
Copy link

codecov bot commented Nov 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.98%. Comparing base (fd0f75f) to head (cefef36).
Report is 23 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1589      +/-   ##
==========================================
+ Coverage   84.86%   84.98%   +0.11%     
==========================================
  Files         592      592              
  Lines       29874    29874              
  Branches     7642     8127     +485     
==========================================
+ Hits        25353    25387      +34     
+ Misses       4366     4157     -209     
- Partials      155      330     +175     
Flag Coverage Δ
cypress 74.65% <100.00%> (+0.14%) ⬆️
jest 52.35% <33.33%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

cypress bot commented Nov 3, 2024

codap-v3    Run #4947

Run Properties:  status check passed Passed #4947  •  git commit 85f1cba175: Merge pull request #1589
Project codap-v3
Branch Review main
Run status status check passed Passed #4947
Run duration 08m 53s
Commit git commit 85f1cba175: Merge pull request #1589
Committer William Finzer
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 47
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 219
View all changes introduced in this branch ↗︎

Copy link
Member

@kswenson kswenson left a comment

Choose a reason for hiding this comment

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

👍 LGTM

@bfinzer bfinzer merged commit 85f1cba into main Nov 4, 2024
19 of 20 checks passed
@bfinzer bfinzer deleted the 188403674-fix-graph-layout-on-restore-v3 branch November 4, 2024 20:40
nstclair-cc pushed a commit that referenced this pull request Nov 8, 2024
Fix restored layout of graph of categorical axis
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