Remix.run Logo
jollyllama 11 days ago

Looks like it could work nicely with HTMX.

anentropic 10 days ago | parent | next [-]

I'm using ECharts with HTMX + AlpineJS, with ECharts wrapped in an Alpine component

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

wlkr 11 days ago | parent | prev | next [-]

Funny seeing this here with your comment, as I was exploring using ECharts for a project recently to work exactly with HTMX from a Clojure backend. I eventually settled on Chart.js as I found that for my use case, I wanted the charts to more easily fit their dynamically sized container, which isn’t quite as simple with ECharts and Vega. I also didn't need particularly complex plots. Nevertheless, this is a nice project! There remain some open challenges with web-based visualisation libraries more generally around responsive design and accessibility, but we’ve come a long way.

simlevesque 11 days ago | parent | next [-]

Did you look at charts.css ?

https://chartscss.org/

wlkr 11 days ago | parent [-]

This looks great, thanks! I didn't come across this this in my search but I'll definitely try it out.

jollyllama 11 days ago | parent | prev [-]

> more easily fit their dynamically sized container

I've done this for more simpler elements. Copilot helped me come up with a little bit of custom JS in those cases.

dismalaf 11 days ago | parent | prev [-]

Not sure about HTMX specifically, but I've used it with Rails/Hotwire/Stimulus (similar conceptually) and it works great.