5.1 is the last stable release.
Documentation: https://pepstock-org.github.io/Charba-Wiki.
API JavaDoc: https://pepstock-org.github.io/Charba/5.1.
Showcase GWT: https://pepstock-org.github.io/Charba-Showcase.
Showcase J2CL: https://pepstock-org.github.io/Charba-Showcase-J2CL.
Breaking changes
- change
PointStyleCallback
class, adding context as generic. - remove
xPadding
andyPadding
options fromLineLabel
options. Use padding instead. - remove
onDestroy
method fromPlugin
interface. UseonBeforeDestroy
instead. - change type to
mode
andoverScaleMode
options in Zoom plugin configuration, fromorg.pepstock.charba.client.enums.InteractionAxis
toorg.pepstock.charba.client.zoom.enums.Mode
class. - change signature of
EnterCallback
,LeaveCallback
,ClickCallback
andDoubleClickCallback
interfaces of annotation plugin in order to get anAnnotationContext
as argument instead of a chart and annotation options instances.
Features
- import CHART.JS version v3.7.1.
- import CHART.JS TREEMAP controller version v2.0.2.
- import CHART.JS MATRIX controller version v1.1.1.
- import CHART.JS SANKEY controller version v0.8.2.
- import CHART.JS GEO controller version v3.7.1.
- import CHART.JS ANNOTATION plugin version v1.3.1.
- import LUXON library version v2.3.0.
- add
clip
property to annotation options. - add
pointStyle
,rotation
,xAdjust
andyAdjust
properties toPointAnnotation
options. - add new
PolygonAnnotation
class in order to draw a polygon. - add new
LabelAnnotation
class in order to draw a content (text, image or canvas) on the chart. - add point positioning by box options for
PointAnnotation
class. - add label options to
BoxAnnotation
class. - enable to set a content by
Canvas
instance toLineLabel
options. - enable to set the
position
of theLineLabel
options as percentage of the line dimension. - add
borderShadowColor
,backgroundShadowColor
,shadowBlur
,shadowOffsetX
andshadowOffsetY
to annotations and line label options in order to enable the shadowing. - add
arrowHeads
option toLineAnnotation
class options in order to enable the arrows drawing to the line. - add the annotation element to the
AnnotationContext
in order to pass to the user the dimension and options of annotation (i.e for gradient). - add
drawActiveElementsOnTop
property to lining and bubble datasets. - add
onBeforeDestroy
andonAfterDestroy
methods toPlugin
interface. - enable all tick callbacks to return a
List
of strings in order to have ticks multiple lines. - enable
PointLabelCallback
class to return aList
of strings in order to have ticks multiple lines. - add
inCharArea
option toPluginEventArgument
class. - add
r
item toInteractionAxis
class. - add
centered
option toPointLabels
andRadialPointLabels
classes. - add
borderJoinStyle
option toArc
element options and configuration, toPolarAreaDataset
,PieDataset
andDoughnutDataset
classes. - add
padding
option toProjectionAxis
class. - add
changed
option toPluginEventArgument
class in order to enable the rendering of the chart after event processing. - add a
IsPoint
instance argument to thesetTooltipActiveElements
method in the chart.
Developing
- change dependency for Google Closure Compiler, version v20220202.