Looks like it could work nicely with HTMX.
I had to disable hx-history to get around a problem of the charts getting double instantiated
it feels a bit of a lame workaround but I never managed to get to the bottom of it
apart from that, totally happy
I've done this for more simpler elements. Copilot helped me come up with a little bit of custom JS in those cases.