Fork me on GitHub
#cljfx
<
2021-02-10
>
paul.legato01:02:59

Hello cljfx! I’m looking to draw some live-updating charts from an otherwise CLI Clojure app. I’m building prototypes with various charting libraries to test them out. One option is https://github.com/GSI-CS-CO/chart-fx , which draws charts via JavaFX. There appear to be no Clojure bindings or wrapper, but the Java code is straightforward enough. Given the bounded use case of just drawing some live-updating charts (as opposed to developing a complex GUI app), should I attempt to run chart-fx through cljfx, or would it be simpler in this limited case to just use JavaFX directly?

vlaaad08:02:50

Hi! cljfx/react is a layer of indirection that brings complexity. The benefit it gives is ability to derive UI from data that saves you from manually updating parts of UI when changes occur, so I would say it depends on the amount of interactivity/reactivity your chart window will have. If it’s only showing charts, bare JavaFX should be enough.

paul.legato17:02:20

Excellent, thank you. I’ll proceed with just JavaFX for now. It’s good to know something like cljfx exists, in case this develops future complexity.