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.

    1 answer 1

    There is just a need to properly master and understand them.
    Below are links:

  • Once the link is https://docs.oracle.com/javase/8/javafx/user-interface-tutorial/charts.htm - off documentation
  • Two links - https://habrahabr.ru/post/242009/ - A little bit about this on Habré
  • Three link - https://rterp.wordpress.com/stockchartsfx/ - This is a framework developed on PC for working with graphs

    Enjoy your learning

    • Please try to publish detailed answers containing a specific example of the minimum solution, supplementing them with a link to the source. Answers –references (as well as comments) do not add knowledge to the Runet. - Nicolas Chabanovsky