JavaFX
To display a chart using a JavaScript charting library you will need to use the WebView component or a third party library such as JxBrowser (commercial).
Java Swing
To display a chart using a JavaScript charting library you will need to use the WebView component or JCEF (Java Chromium Embedded Framework) or a third party library such as JxBrowser (commercial).
WebView
There are updated Java 8 and newer (LTS) builds of OpenJDK available from Azul that also include JavaFX functionality. They are free to download and use.
Note: The Highcharts v11 sonification module does not appear to work with the WebView component.
JCEF
The Java Chromium Embedded Framework (JCEF) is a simple framework for embedding Chromium-based browsers in other applications using the Java programming language. It is a BSD-licensed open source project.
Maven builds of JCEF are available from JCEF Maven.
As of August 2024 the latest JCEF Maven version included chromium-126.0.6478.62