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

animation of tech exposure is weird when bars are added #20

Open
MonikaFu opened this issue Sep 28, 2023 · 0 comments
Open

animation of tech exposure is weird when bars are added #20

MonikaFu opened this issue Sep 28, 2023 · 0 comments
Assignees
Labels
priority techmix-current Related to current techmix plot

Comments

@MonikaFu
Copy link
Collaborator

Issue transferred from issue #73 pacta.interactive.report

The animation of the tech exposure plot works very well when, for instance, switching between "as % of assets under management" and "as % of sector"... maintaining object constancy. However, once a selection causes a change in the number of bars being displayed, constancy is broken and a bunch of movement that doesn't make any sense occurs. I'm pretty certain this is because the ordering of elements changes when the animation is triggered on a new dataset, and I'm pretty sure this could be resolved by keying the data points.

To demonstrate, one can use the new prototype package r2dii.interactive. Notice the difference between the animations when you change the selection of the "as % of..." selector versus the asset type selector.

@MonikaFu MonikaFu added priority techmix-current Related to current techmix plot labels Sep 28, 2023
@MonikaFu MonikaFu self-assigned this Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority techmix-current Related to current techmix plot
Projects
None yet
Development

No branches or pull requests

1 participant