Version 5.6
5.6 is the last stable release.
API JavaDoc: https://pepstock-org.github.io/Charba/5.6.
Breaking changes
- DOM events refactoring.
- rename
org.pepstock.charba.client.enums.Event
enumeration toorg.pepstock.charba.client.enums.DefaultEvent
. - remove
org.pepstock.charba.client.dom.BaseNativeEvent
class. Useorg.pepstock.charba.client.dom.events.NativeBaseEvent
or its subclasses inorg.pepstock.charba.client.dom.events
package instead. - remove
org.pepstock.charba.client.dom.BaseEventTypes
class. Use event types enumerations in inorg.pepstock.charba.client.dom.enums
package instead. - move
Touch
andTouchList
classes fromorg.pepstock.charba.client.dom
toorg.pepstock.charba.client.dom.events
one. - toast utility will use
org.pepstock.charba.client.dom.events.NativeMouseEvent
class for its actions.
- rename
- rename
getDatasetElement
method togetElement
inAbstractDatasetContext
class. - rename
DatasetElement
class toChartElement
.- the chart elements are typed based on the data type of the chart controller.
- rename
DatasetElementOptions
class toChartElementOptions
.- the chart elements options are typed based on the data type of the chart controller.
- rename
ChoroplethBar
class toGeoFeatureElement
- remove
ChoroplethElement
class, accessible by the options elements node. Usechart.getOptions().getElements().getElement(GeoFeatureElementOptions.FACTORY)
to get the GEO feature element options, byGeoFeatureElementOptions
class. - remove
BubbleMapPoint
class. UsePoint
element class instead to configure bubble map points.
Features
- import CHART.JS GEO controller version v3.9.0.
- import CHART.JS SANKEY controller version v0.9.1.
- import CHART.JS ANNOTATION plugin version v2.0.1.
- import CHART.JS GRADIENT plugin version v0.5.1.
- import LUXON datetime library version v3.0.3.
- DOM events refactoring.
- enable custom event types to define to CHART.JS options by
IsEvent
interface, on top of the default ones. - create specific classes to map DOM events in
org.pepstock.charba.client.dom.events
package:NativeBaseEvent
to map the Event javascript class.NativeUIEvent
to map the UIEvent javascript class.NativeMouseEvent
to map the MouseEvent javascript class.NativeTouchEvent
to map the TouchEvent javascript class.NativePointerEvent
to map the PointerEvent javascript class.NativeKeyboardEvent
to map the KeyboardEvent javascript class.NativeCustomEvent
to map the CustomEvent javascript class.
- enable events creation by own event initialization configuration.
- enable custom event types to define to CHART.JS options by
- add
base
option toBar
element options and configuration class. - add specific data element and own options based to
dataElementType
property of CHART.JS controller, in theDatasetReference
,DatasetItem
andAbstractDatasetContext
classes.ArcElement
andArcElementOptions
classes for controllers which are using arcs to draw the chart.BarElement
andBarElementOptions
classes for controllers which are using bars to draw the chart.PointElement
andPointElementOptions
classes for controllers which are using points to draw the chart.MatrixElement
andMatrixElementOptions
classes for matrix charts.TreeMapElement
andTreeMapElementOptions
classes for treemap charts.SankeyElement
andSankeyElementOptions
classes for sankey charts.GeoFeatureElement
andGeoFeatureElementOptions
classes for GEO choropeth charts.
- add
GeoFeatureElementOptions
configuration element toBubbleMap
chart. - add
register
method to charts, where the controller type is not a CHART.JS out-of-the-box ones, in order to register then and act on the options if needed before instantiating a chart instance.- applied to matrix, sankey, treemap, choropleth, bubblemap, gauge and meter charts.
- add options element factories to matrix, sankey, treemap, choropleth and bubblemap charts in order to manage defaults options once for all chart instances in the application.
- enable
Datalabels
plugin use for matrix and treemap charts.
Development
- change dependency for Google Closure Compiler, version v20220905.