There is an excellent library for working with graphics in Swing - jfree. It has a very good class - JFreeChart. With it, you can not only build a graph, but also interact with it interactively. That is, I build a graph in real time, at any moment I can stop it and most importantly - with the right mouse button I can zoom in on the graph, save it in PNG, scale it and much more.
It is possible to transfer this class to JavaFX, since it already has support. I tried - everything is terribly slow, I do not like it.
Is there a similar class in JavaFX? I tried LineChart - it does not have half of the same functionality.