To help with my own learning I have played with JavaObject and JavaFX to create linecharts.
Here are the 3 examples I have made I have ported the code directly from the
Oracle documentation.
The examples are fully documented and require the JavaObject Library.
The Oracle documentaton for LineChart is
here.
I hope you find it useful.