Redraw / Reanimate Visualization on button click

Does anyone know how to force a visualization to redraw/reanimate on a button click? It does so automatically when a filter is changed, but not when a layer is hidden and then unhidden with no data change.

For example: Because the Sort methods are overcomplicated, I use a different layer with a duplicate chart that is sorted in the correct order for the button I clicked. For the first time it shows up, it animates, when the new layer is revealed for the first time, it animates, then when switching back and forth, the animation no longer happens causing a jarring and undesirable effect for the user.

Let me know if any of that doesn’t make sense and any help is appreciated!

Have you tried chartName.loadData() ?
That will redraw it, but it also pulls all the data again.