Hi guys !
Here is the thing : I created a horizontal bar graph whose data is to change according to various inputs. Is it possible to make it so that the bars “rearrange” themselves in ascending or descending order ?
For the moment I’m using a quicksort algorithm to reorder the data and associated labels, but as a result the labels just “change”, I would prefer to have an animation showing the bars “reordering”.
https://jsbin.com/yocisatawe/edit?js
Note : This is not a support request, I just want to know if this is possible (I could not find anything in the documentation), if it is then how, and if it is not if it could be implemented.
Thank you very much !
Tom.
@TomFevrier unfortunately the axis labels are not able to animate without a lot of changes to the library internals.
Here’s an updated version that moves the colours and adds some comments https://jsfiddle.net/fx0a6o6q/3/
@etimberg Thank you very much, I understand now. It is great even without animated labels, and this will be very useful for my project.