pepstock-org / Charba

J2CL and GWT Charts library based on CHART.JS
https://pepstock-org.github.io/Charba-Wiki/docs
Apache License 2.0
62 stars 6 forks source link

Going to version 4 #56

Closed stockiNail closed 3 years ago

stockiNail commented 4 years ago

We are going to embed new CHART.JS version 3.0.0. This is forcing us to change a major release due to the amount of breaking changes that new version of CHART.JS is introducing.

There is a specific branch, named chartjs3.0.0 where all new implementations are coded, aligned with CHART.JS 3.0.0.

You can see the progress HERE.

stockiNail commented 3 years ago

Apart all breaking changes and new features, since version 4.0, chartjs/chartjs-plugin-annotation won't embed anymore because unmaintained.

Nevertheless Charba v4.0 will provide a very similar plugin, completely written in Java, where only few code changes will be needed in order to port the chartjs/chartjs-plugin-annotation in use to the new one.

stockiNail commented 3 years ago

In the current master, Datalabels plugin has been imported from a pepstock-org/chartjs-plugin-datalabels fork where the plugin has been changed in order to work with CHART.JS 3. This is a temporary solution waiting for the upgrade of the original plugin by the community.

stockiNail commented 3 years ago

In the current master, INTL NumberFormat of ECMAScript Internationalization API has been mapped, into org.pepstock.charba.client.intl package in order to use when number formatting is needed and to implement the new format property for numeric ticks, available on ChartJS3.0.0-beta.

The new package is providing the full support on locale management (see CLocale and CLocaleBuilder, needed also to set the locale property to the chart options, available on ChartJS3.0.0-beta.

stockiNail commented 3 years ago

In the current master, Zoom plugin has been imported from a pepstock-org/chartjs-plugin-zoom fork where the plugin has been changed in order to work with CHART.JS 3. This is a temporary solution waiting for the upgrade of the original plugin by the community.

stockiNail commented 3 years ago

CHART.JS 3 will drop the IE11 support and then Charba has dropped as well.

stockiNail commented 3 years ago

chartjs/chartjs-plugin-annotation won't embed anymore because unmaintained.

Nevertheless Charba v4.0 will provide a very similar plugin, completely written in Java, where only few code changes will be needed in order to port the chartjs/chartjs-plugin-annotation in use to the new one.

After a collaboration with the community which is managing the chartjs/chartjs-plugin-annotation, the plugin has been embedded in Charba again.