cljfx

https://github.com/cljfx/cljfx
2021-02-10T01:52:59.023400Z

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?

vlaaad 2021-02-10T08:16:50.023900Z

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.

2021-02-10T17:27:20.024100Z

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.