JavaFX and Java Swing Applications

the java api for highcharts

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 Chrome Embedded Framework) or a third party library such as JxBrowser (commercial).

WebView

The WebView component with Java 8 is quite old and does not implement all JavaScript features that modern browsers now include. We have noticed a few minor Formatting/Display issues using Highcharts and ApexCharts JavaScript charting libraries with WebView.

There are updated Java 8 and newer builds of OpenJDK available from Azul that also include JavaFX functionality. These versions include an updated WebView component that have better JavaScript support. They are free to download and use.

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, see JCEF Maven.

As of January 2023 the latest JCEF Maven version included chromium-109.0.5414.87

The Java API’s fully support all chart types and chart options in Highcharts v5.x, v6.x, v7.x, v8.x, v9.x;  Highcharts Stock v8.x, v9.x and ApexCharts v3.x.


Current versions supported are:

HyJavaCharts

HyJavaStock

HyJavaApex

Start the HyJavaCharts demo Java web application


Start the HyJavaStock demo Java web application


Start the HyJavaApex demo Java web application


Start the HyJavaImages demo Java web application