4.2 is the last stable release.
API JavaDoc: https://pepstock-org.github.io/Charba/4.2.
Breaking changes
- change signature of
getEvents
method ofOptions
(andConfigurationOptions
),Legend
,Tooltips
classes and all plugins instances, returning aSet
of events instead of aList
. - change signature of
getElements
method ofChartPointer
plugin, returning aSet
of pointer elements instead of aList
. - change signature of
ClickCallback
,DoubleClickCallback
,EnterCallback
andLeaveCallback
classes ofAnnotationPlugin
, adding new event argument in order to get also the event generated on the canvas. - change signature of
ClickEventHandler
,EnterEventHandler
andLeaveEventHandler
classes ofDataLabelsPlugin
, adding new event argument in order to get also the event generated on the canvas. - remove
toCSSFontProperty
methods fromUtilities
class. UseHelpers.get().toFontString
instead.
Features
- import CHART.JS TREEMAP controller version v1.0.2.
- enable tree map chart type.
- import CHART.JS MATRIX controller version v1.1.0.
- enable matrix chart type.
- import CHART.JS SANKEY controller version v0.8.0.
- enable sankey chart type.
- import CHART.JS version v3.5.1.
- import CHART.JS GEO controller version v3.5.1.
- import CHART.JS LUXON adapter version v1.1.0.
- import LUXON library version 2.0.2.
- add toasting utility.
- add
click
,enter
andleave
subtitle events. - add
subtitle
item toPointElement
enumeration forChartPointer
plugin, in order to enable the changing cursor when a click event handler has been set on subtitle element. - add
isPressed(event)
methods toModifierKey
enumeration in order to enable the capability to filter the events if the modifier keys are pressed. - add
align
property, as a double representing the clockwise angle (in degree), toDataLabels
options in order to define the label box alignment relative to anchor. - add
getRelativePosition
method toHelpers
class in order to get the relative position of an event on the chart. - add
modifierKey
property toDatasetsItemsSelector
options plugin in order to enable the selection only when a modifier key is pressed. - enable programmatically selection on a chart by
DatasetsItemsSelector
plugin.
Fixed Bugs
- #58 removes usage of
.getClass().*
and.class.*
methods to get metadata in order to use CHARBA also with-XdisableClassMetadata
or-XnoclassMetadata
GWT compiler options. Thanks @MartinSchwarzbauer.
Developing
- #65 changes OpenJDK distribution in GitHub Actions, using now
Zulu
. Thanks @carldea. - change dependency for Google Closure Compiler, version v20210808.
- add dependency to Google Closure Stylesheets, version 1.5.0.
- rename
parse
method ofJSON
class toparseForObject
, to parse a string to a native object. - add
parseForArray
method ofJSON
class to parse a string to an array. - move
getStringProperty
andgetIntegerProperty
fromId
class toJsHelper
one. - use
outerHTML
property to get HTML string of an element instead ofinnerHTML
with a temporary parent or a cloned instance. - reduce visibility of the classes of injectable resources provided out-of-the-box.
- use
Chart.helpers.toFont
method of CHART.JS to normalize the font object and to get the CSS string. - add additional checks about the consistency of datasets types and amount added to a chart.
- add additional checks about the consistency of axes types and amount added to a chart.
- add additional checks on builder classes in order to be consistent with new object creation.