Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork21
Description
Is your feature request related to a problem? Please describe.
I would like to be able to apply CSS transitions to charts, including their x and y axis ticks. This requires them to be keyed to their values rather than their index in the ticks array.
Describe the solution you'd like
This change requires modification to one line of code in each of the x and y axis components. Seethis PR.
Describe alternatives you've considered
It's possible to animate the charts by tweening the data array and domain. However, this change should have no negative impact on the performance of the library, and simply allows for greater flexibility for its users.
Additional context
This demo does not currently function correctly. The ticks animate, but it is dumb in terms of their values. I have tested the same demo with the proposed change to the library and it works perfectly:
https://svelte.dev/playground/232abb5544f14b8fbbcb1de777134399?version=5.40.1