It would be great if instead of outdated Swing, you could also generate JavaFX charts. E.g. see: https://dzone.com/articles/javafx-charts-look-pretty-good