-
Notifications
You must be signed in to change notification settings - Fork 524
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
Victory transitions aren't using datum.key
#684
Comments
datum.key
@lapidus I expect this to work. Can you make a reproduction in jsfiddle? |
@boygirl: (In this example I'm expecting the 'blue' circle to turn 'orange'. In other words, the data join should take 'key' into account and not simply use the index.)
Thanks for any clues ... |
@boygirl |
@lapidus I took a quick look. I think the issue is related to how animation is behaving when no new nodes are entering or exiting. The transitions themselves respect To be clear... in the example you give, you are expecting the keyed elements to move position and change color based on their key, correct? So the element keyed "c" should move from (1, 2) to (3, 5) and turn from blue to orange? |
Thank you! |
This change wont have any effect on render order (there is no fine-tuned z-index control, unfortunately). The render order is determined by index in your sorted data array (or by The
|
I expect this change to be included in a planned release tomorrow :) |
@boygirl: |
It's released in |
I am trying to get a scatter chart to animate from one dataset to another dataset.
The datasets are of different lengths but have some items in common.
I would like the Scatter chart to do the 'data join' by the 'key' property so that the correct elements are entering, exiting and merging.
I have tried some different approaches but the join happens by 'index' instead of 'key' no matter what I try.
From what I understand, there is some support for this?
#246
FormidableLabs/victory-core#36
Any hints appreciated! @divmain @boygirl
The text was updated successfully, but these errors were encountered: