2 ms·
I liked the Leptos JSX syntax and I feel like Dioxus is addressing a different problem. Dioxus specifically markets itself as a tool for universal app developme
by LeftHandPath 2y ago
I liked the Leptos JSX syntax and I feel like Dioxus is addressing a different problem. Dioxus specifically markets itself as a tool for universal app development. I looked at it, Perseus, Askama + JS, etc, but ultimately thought Leptos seemed like the best to dive in with.
For charts and plots -- I was thinking about the same thing today, actually! I've usually done those manually with SVG and JS. I was wanting a framework, and spent 30 minutes or so today looking at tools to use R diagrams on the web [0]. Also thought a little bit about making my own library. There are existing libraries like Plotters that should plug and play with Leptos just fine [1], but I haven't tried any yet.
[0]: https://m-clark.github.io/webR/visualization.html https://m-clark.github.io/webR/visualization.html
[1]: https://docs.rs/plotters/latest/plotters/ https://docs.rs/plotters/latest/plotters/
- satvikpendem 2y agoI just saw this on r/rust today, a library called plotlars got a release (not to be confused with plotters). https://www.reddit.com/r/rust/s/QG21lu2Oy4 https://www.reddit.com/r/rust/s/QG21lu2Oy4
- nostradumbasp 2y agoLooks pretty nice. The default style has some perks over plotters. Not throwing shade, it just looks nice. Thank you for sharing.
- nostradumbasp 2y agoThanks for chiming in. If there was a way to embed R plots without a lot of pain or CPU cycles server-side that would be fabulous. I would love to see an example of that. Plotters is pretty decent, I've used and abused it in a few projects over the years. But if I wanted something dynamic, I'm not sure how well that might go. It does look like SVG and JS would be the way to go. Maybe there's a nice trick there, not sure.