Is it possible to reorder bars in a bar graph?

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.

Author: Fantashit

2 thoughts on “Is it possible to reorder bars in a bar graph?

Comments are closed.