Skip to main content
Version: 4.2

Requirements

Charba is built on JDK 8.

Charba is leveraging on JSINTEROP method to integrate javascript objects and needs the jsinterop-annotations.

Charba has got also a dependency with GWT Web toolkit, when the GWT distribution (which is containing chart widgets and code splitting capabilities) is used.

Charba has got embedded Chart.JS, currently the minified distribution.

Even if Chart.JS leaves the users to select a date adapter, Charba embeds only Luxon as specific date time library, needed to use time or time series axes, because Charba (and Chart.JS) introduces the internationalization and only Luxon can use the browser's INTL platform.

Charba has got embedded Luxon and the specific Chart.JS adapter.

Furthermore Charba has embedded a set of Chart.JS plugins and controllers in order to enrich own features:

To enable the minifying of javascript and stylesheets objects, not provided out-of-the-box, Charba needs also Google Closure Compiler and Google Closure Stylesheets, invoked only in Ant build.xml.

See here the license matrix.

ComponentVersionLicense
JSInterop Annotations2.0.0Apache 2.0
GWT Web Toolkit2.9.0Apache 2.0
Google Closure Compilerv20210808Apache 2.0
Google Closure Stylesheets1.5.0Apache 2.0
Chart.JS3.5.1MIT
Chart.JS Luxon adapter1.1.0MIT
Luxon2.0.2MIT
DataLabels2.0.0MIT
Zoom1.1.1MIT
HammerJS2.0.8MIT
Annotation1.0.2MIT
Chart Geo3.5.1MIT
Chart Treemap1.0.2MIT
Chart Matrix1.1.0MIT
Chart Sankey0.8.0MIT

Browser support

All modern and up-to-date browsers are supported, including, but not limited to:

  • Chrome
  • Edge
  • Firefox
  • Safari

As of version 3, Chart.JS has dropped Internet Explorer 11 support, and then Charba has dropped as well, as of version 4.

For more information about browser support, see the details here, where the filter is which browser can support ES6 classes.

Components matrix

The following matrixes are showing the dependencies with version of components which are released in all Charba versions.

Java

CharbaJDKJsInterop
Base
JsInterop
Annotations
GWT Web
toolkit
Google
Closure
Compiler
Google
Closure
Stylesheets
1.08--2.8.2--
1.18--2.8.2--
1.28--2.8.2--
1.38--2.8.2--
1.48--2.8.2--
1.58--2.8.2--
1.68--2.8.2--
1.78--2.8.2--
2.08-1.0.22.8.2--
2.18-1.0.22.8.2--
2.28-1.0.22.8.2v20190301-
2.38-1.0.22.8.2v20190301-
2.48-1.0.22.8.2v20190325-
2.58-1.0.22.8.2v20190415-
2.68-1.0.22.8.2v20190929-
2.78-1.0.22.8.2v20191111-
2.88-2.0.02.8.2v20200101-
3.081.0.02.0.02.8.2v20200204-
3.181.0.02.0.02.8.2v20200224-
3.281.0.02.0.02.8.2(2)v20200504-
3.381.0.02.0.02.8.2(2)v20201006-
4.08(1)-(3)2.0.02.9.0(2)v20210505-
4.18(1)-(3)2.0.02.9.0(2)v20210601-
4.28(1)-(3)2.0.02.9.0(2)v202108081.5.0

(1) even if Charba is developed and built on JDK 8, as of version 4.0 it is compiled by JDK 11 and checked by Sonar.io on this version.

(2) even if Charba maintains the dependency with GWT Web toolkit version 2.8.2, it has been successfully tested and works with GWT version 2.9.0. As of Charba version 4.0, there is the dependency with GWT version 2.9.0 but it is continuing working with GWT 2.8.2.

(3) as of Charba version 4.0 the dependency from jsinterop-base has been removed.

CHART.JS core

CharbaChart.JSChart.JS
Luxon
adapter
LuxonChart.JS
Moment
adapter
MomentChart.JS
Datefns
adapter
Datefns
1.02.7.1------
1.12.7.1------
1.22.7.1------
1.32.7.1------
1.42.7.1------
1.52.7.2------
1.62.7.2------
1.72.7.3------
2.02.7.3------
2.12.7.3------
2.22.8.0------
2.32.8.0------
2.42.8.0------
2.52.8.0------
2.62.9.2------
2.72.9.3------
2.82.9.3------
3.02.9.30.2.01.22.00.1.12.24.01.0.02.9.0
3.12.9.30.2.01.22.00.1.12.24.01.0.02.9.0
3.22.9.30.2.11.24.10.1.12.25.31.0.02.9.0
3.32.9.40.2.21.25.00.1.22.28.01.0.02.9.0
4.03.3.21.0.01.27.0-(1)-(1)-(1)-(1)
4.13.5.01.0.02.0.1-(1)-(1)-(1)-(1)
4.23.5.11.1.02.0.2-(1)-(1)-(1)-(1)

(1) As of version 4.0, Charba (and Chart.JS version 3.x) introduces the internationalization and only Luxon is leveraging on INTL platform. The other dependencies has been removed.

CHART.JS extensions

CharbaDatalabelsLabelsZoomHammerJSAnnotationGeoTreemapMatrixSankey
1.0---------
1.1---------
1.2---------
1.3---------
1.4---------
1.5---------
1.6---------
1.7---------
2.0---------
2.10.5.01.1.0-------
2.20.6.01.1.0-------
2.30.6.01.1.0-------
2.40.6.01.1.0-------
2.50.6.01.1.0-------
2.60.7.01.1.0-------
2.70.7.01.1.0-------
2.80.7.01.1.00.7.52.0.87037eea----
3.00.7.01.1.00.7.52.0.87037eea----
3.10.7.01.1.00.7.52.0.87037eea----
3.20.7.01.1.00.7.52.0.85363042----
3.30.7.01.1.00.7.52.0.85363042----
4.02.0.0-rc.11.1.0(1)1.0.12.0.81.0.2----
4.12.0.01.1.0(1)1.1.12.0.81.0.23.1.0---
4.22.0.01.1.0(1)1.1.12.0.81.0.23.5.11.0.21.1.00.8.0

(1) The Labels plugin has been heavily changed in order to be compliant with Chart.JS version 3.x) in the Charba project because the original project is unmaintained.