Version 4.1
4.1 is the last stable release.
API JavaDoc: https://pepstock-org.github.io/Charba/4.1.
Breaking changes
- rename
AxisType
toChartAxisType
in order to enable custom axes type. - rename
AxisCalculateTickRotationCallback
class toAxisCalculateLabelRotationCallback
.- rename
onBeforeAxisCalculateTickRotation
method of the interface toonBeforeAxisCalculateLabelRotation
. - rename
onAfterAxisCalculateTickRotation
method of the interface toonAfterAxisCalculateLabelRotation
. - rename
setAxisCalculateTickRotation
method of the Axis class tosetAxisCalculateLabelRotation
. - rename
getAxisCalculateTickRotation
method of the Axis class togetAxisCalculateLabelRotation
.
- rename
Features
- import CHART.JS version 3.5.0.
- import CHART.JS DATALABELS plugin version 2.0.0.
- import CHART.JS ZOOM plugin version 1.1.1.
- import Luxon library version 2.0.1.
- import CHART.JS GEO controller version v3.1.0
- enable geographic map chart types such as choropleth and bubble map.
- add
Subtitle
options and configuration items. - add
hover
,enter
andleave
axes events. - add
enter
andleave
title events. - add
backgroundColor
,borderColor
andborderWidth
scriptable options to allElements
configuration (bar, line, point, arc). - add
hoverBackgroundColor
,hoverBorderColor
andhoverBorderWidth
scriptable options to allElements
configuration (bar, line, point, arc). - add
borderAlign
,borderRadius
,angle
,offset
andhoverOffset
scriptable options toArc
configuration. - add
pointStyle
,borderSkipped
,borderRadius
,hoverBorderRadius
andenableBorderRadius
scriptable options toBar
configuration. - add
borderCapStyle
,borderDash
,borderDashOffset
,borderJoinStyle
,fill
andcubicInterpolationMode
scriptable options toLine
configuration. - add
radius
,hitRadius
,hoverRadius
,pointStyle
androtation
scriptable options toPoint
configuration. - add
parsing
andnormalized
options toDataset
configuration. - enable the feature to create custom axes types (for injected controller).
- enable
enableBorderRadius
andhoverBorderRadius
scriptable options onBarDataset
class. - enable
stepped
scriptable option onLine
element andLineDataset
classes. - add
spacing
property toArc
element andPieDataset
andDoughnutDataset
classes. - add
originalMin
andoriginalMax
properties toScaleLimit
object in theZoomPlugin
. - add
getZoomLevel
method to theZoomPlugin
class. - add
threshold
andmodifierKey
properties toDrag
configuration in theZoomPlugin
. - add new events items to
Event
enumeration. - add
globalCompositeOperation
property toContext2dItem
andChartBackgroundColorOptions
plugin. - add options builder for
ChartBackgroundColor
plugin. - add options builder for
ChartPointer
plugin. - add options builder for
HtmlLegend
plugin. - add
Canvas
object as possible value forpointStyle
option to enable custom point styles. - add
toCanvas
method toCastHelper
class in order to enable castingHTMLCanvasElement
instance toCanvas
object. - add
numberFormat
scriptable options to all numeric axes configuration (cartesian linear, cartesian logarithmic, radial linear). - add
threshold
option toDecimation
configuration. - add
stack
andstackWeight
options toCartesianAxis
configuration. - add
pointLabel
item toContextType
enumeration class. - add
middle
item toBorderSkipped
enumeration class. - add
datasetIndex
,startDataIndex
andendDataIndex
properties to segment context for Segment callbacks. - add
hide
andshow
methods to chart classes in order to hide and/or show specific data element.
Developing
- change dependency for Google Closure Compiler, version v20210601.
- add
parse
method toJSON
utility class. - add
clipArea
andunclipArea
methods toHelpers
utility class. - hide java script property visibility of
$H
hash code property in java script object mapped by aNativeObjectContainer
, when new object has been created.