3 ms·
Looks like it could work nicely with HTMX.
by jollyllama 2y ago
Looks like it could work nicely with HTMX.
- wlkr 2y agoFunny 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 2y agoDid you look at charts.css ? https://chartscss.org/ https://chartscss.org/
- wlkr 2y agoThis looks great, thanks! I didn't come across this this in my search but I'll definitely try it out.
- jollyllama 2y ago> 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 2y agoNot sure about HTMX specifically, but I've used it with Rails/Hotwire/Stimulus (similar conceptually) and it works great.
- anentropic 2y agoI'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