Releases: pepstock-org/Charba
Version 6.5
6.5 is the last stable release.
Documentation: https://pepstock-org.github.io/Charba-Wiki.
API JavaDoc: https://pepstock-org.github.io/Charba/6.5.
Showcase GWT: https://pepstock-org.github.io/Charba-Showcase.
Showcase J2CL: https://pepstock-org.github.io/Charba-Showcase-J2CL.
Features
- import CHART.JS version v4.4.1.
- import CHART.JS GEO controller version v4.2.8.
- import LUXON datetime library version v3.4.4.
Fixed Bugs
- #91: remove storing of internal label on doughnut because useless and the label drawing is invoked after chart drawing. Thanks @AHijner.
Development
Version 6.4
6.4 is the last stable release.
API JavaDoc: https://pepstock-org.github.io/Charba/6.4.
Breaking changes
- remove
isDisplay
method fromPointLabels
options andRadialPointLabels
configuration classes. UsegetDisplay
instead, to get the display policy.
Features
- import CHART.JS version v4.3.0.
- import CHART.JS GEO controller version v4.2.0.
- import CHART.JS ANNOTATION plugin version v3.0.1.
- enable
Window.requestAnimationFrame
. - enable position of cartesian axes by a relation to another axis, by
AxisPositionItem
class.
Development
- change dependency for Google Closure Compiler, version v20230502.
Version 6.3
6.3 is the last stable release.
API JavaDoc: https://pepstock-org.github.io/Charba/6.3.
Breaking changes
- remove
AnimationCollectionKey
. UseKey
instead. - remove
AnimationPropertyKey
. UseKey
instead. - rename
has
method tocontains
inAnimations
options and configuration classes andUpdateConfiguration
class. - rename
remove
method todelete
inAnimations
options and configuration classes andUpdateConfiguration
class. - rename
TransitionKey
class toTransitionMode
one. - rename
DefaultTransitionKey
class toDefaultTransitionMode
one. - remove
Font
class from annotation plugin package in favor toIsFont
interface. - move
FontsCallback
interface from treemap package to the callbacks (common) ones. - move
ColorsCallback
interface from treemap package to the callbacks (common) ones.
Features
- import CHART.JS ANNOTATION plugin version v2.2.1.
- import CHART.JS ZOOM plugin version v2.0.1.
- import LUXON datetime library version v3.3.0.
- add
Animations
options and configuration to annotation plugin. - enable curve line annotation, adding
curve
andcontrolPoint
options to annotation plugin. - add
imageOpacity
option to label and inner label annotations configuration. - enable multiple fonts on the label and inner label annotations configuration for multiple lines content.
- enable multiple colors on the label and inner label annotations configuration for multiple lines content.
- add
beforeDraw
andafterDraw
hook options to all annotations configuration. - add
init
option to all annotations configuration in order to define the init animation of the annotation elements. - add
interpolator
option toAnimationCollection
class in order to enable a custom interpolation during the animation. - enable
DatasetItemsSelector
plugin to X axes in reverse and/or stacked mode. - add
fillArea
option to chart background color plugin in order to color everything excluding the chart area.
Development
- change dependency for Google Closure Compiler, version v20230228.
- remove dependency from GWT DEV package.
Version 6.2
6.2 is the last stable release.
API JavaDoc: https://pepstock-org.github.io/Charba/6.2.
Breaking changes
- rename
InteractionMode
enumeration toDefaultInteractionMode
. - rename
InteractionItem
enumeration toInteractionOptions
. - change the generic type from
Date
toObject
forMinMaxCallback
instance on time and time series axes. In this way the callback can return also aNumber
(i.e. a double) as epoch.
Features
- import CHART.JS version v4.2.1.
- add
Fill.SHAPE
item to the filling options. - add
FillBaseline
class to enable the baseline on axis for filling. - add
FillColors
class to enable different colors above and below the baseline. - add
interpolate
methods toHelpers
class to enable the values interpolation for numbers, colors and booleans. - add
register
method toGlobalPlugin
class to inject and register CHART.JS plugins not included in this library. - add
group
option toCrosshairOptions
class byCrosshair
plugin to enable crosshairs on linked chart instances. - enable the capabilities to create and use custom interaction mode. All classes needed for that are available in new package
org.pepstock.charba.client.interaction
. - add
getSortedVisibleDatasetMetas
method to the chart classes to get all dataset items in the order that they are drawn on the canvas that are not hidden.
Fixed Bugs
- #87: remove check, which tested if the epoch must be greater than 1, when dates are managed. Thanks @Speykious.
- #88: add
register
method toGlobalPlugin
class to inject and register CHART.JS plugins not included in this library. Thanks @Speykious. - #89: change the generic type from
Date
toObject
forMinMaxCallback
instance on time and time series axes. In this way the callback can return also aNumber
(i.e. a double) as epoch. Thanks @Speykious.
Development
- change dependency for Google Closure Compiler, version v20230206.
Version 6.1
6.1 is the last stable release.
API JavaDoc: https://pepstock-org.github.io/Charba/6.1.
Features
- import CHART.JS version v4.2.0.
- import CHART.JS GEO controller version v4.1.2.
- import CHART.JS MATRIX controller version v2.0.1.
- import CHART.JS TREEMAP controller version v2.3.0.
- import CHART.JS ANNOTATION plugin version v2.1.2.
- import CHART.JS LUXON adapter version v1.3.1.
- import LUXON datetime library version v3.2.1.
- add
Visibility
enumeration with values forvisibility
CSS style option. - add
isPluginEnabled
method to the chart classes. - add
format
method to the time scale item classes. - add
fit
item toOverflow
enumeration for treemap charts. - add
sumKeys
option to the treemap datasets.
Fixed Bugs
Development
- change dependency for Google Closure Compiler, version v20230103.
Version 6.0
6.0 is the last stable release.
API JavaDoc: https://pepstock-org.github.io/Charba/6.0.
Breaking changes
- remove
stepSize
option fromTime
configuration and options class. UsestepSize
option in theTicks
configuration and options. - remove
drawBorder
option fromGrid
configuration and options. Usedisplay
option in theborder
object in the axes or scales configuration. - remove
borderWidth
option fromGrid
configuration and options. Usewidth
option in theborder
object in the axes or scales configuration. - remove
borderColor
option fromGrid
configuration and options. Usecolor
option in theborder
object in the axes or scales configuration. - remove
borderDash
option fromGrid
configuration and options. Usedash
option in theborder
object in the axes or scales configuration. - remove
borderDashOffset
option fromGrid
configuration and options. UsedashOffset
option in theborder
object in the axes or scales configuration. - change
z
option default value ofGrid
options from0
to-1
.
Features
- import CHART.JS version 4.1.1.
- import CHART.JS TREEMAP controller version v2.2.0.
- import CHART.JS GEO controller version v4.1.0.
- import CHART.JS DATALABELS plugin version v2.2.0.
- import CHART.JS GRADIENT plugin version v0.6.1.
- add
autoColors
option to the configuration of the chart and to global options in order to enablecolors
plugin. - add
autoColorsForceOverride
option to the configuration of the chart and to global options in order to force to usecolors
plugin. - add
border
object option to axes or scales configuration in order to manage the options for the border that run perpendicular to the axis. - add
borderRadius
anduseBorderRadius
options toLegendLabels
configuration and options classes. - add
enabledClearByEscape
option toDatasetsItemsSelectorOptions
plugin configuration in order to enable or disable the selection clearing pressingEscape
key. - enable the change of maximum value at runtime in the
Meter
andGauge
datasets. - add
FALSE
item toPointStyle
enumeration. - add
getLabelItems
method toScaleItem
.
Development
- change Apache Software License header in source code as defined.
- add
NOTICE
file, defined for Apache Software License adoption. - add all javascript bundled resources with the dependency's license within the distribution and a short note summarizing its licensing defined for Apache Software License adoption.
- move
LICENSE
andNOTICE
files toMETA-INF
folder in all distribution files.
Version 5.8
5.8 is the last stable release.
API JavaDoc: https://pepstock-org.github.io/Charba/5.8.
Breaking changes
- remove color and font callbacks from treemap labels. Use
ColorsCallback
andFontsCallback
instead, in order to return a list of colors and fonts.
Features
- import CHART.JS TREEMAP controller version v2.1.3.
- import CHART.JS MATRIX controller version v1.3.0.
- import CHART.JS SANKEY controller version v0.12.0.
- import CHART.JS ANNOTATION plugin version v2.1.0.
- import CHART.JS ZOOM plugin version v2.0.0.
- import CHART.JS LUXON adapter version v1.3.0.
- import LUXON datetime library version v3.1.1.
- enable
Zoom
plugin use for sankey and treemap charts. - enable
Annotation
plugin use for matrix charts. - add
treeLeafKey
andborderRadius
option to TreeMapDataset class. - add
overflow
option to TreeMapDataset labels class. - change
color
andhoverColor
options in TreeMapDataset labels class in order to enable to set different colors on multiple lines labels. - change
font
andhoverFont
options in TreeMapDataset labels class in order to enable to set different fonts on multiple lines labels. - enable
events
option to be set by a Set of objects in the chart, legend and tooltip configuration. - enable
label
option to ellipse annotation configuration. - enable
caption
option to the label of line annotation configuration. - add
scaleMode
option to the zoom plugin configuration. - add
drawTime
option toDrag
option of the zoom plugin configuration. - add
zoomRect
methods to zoom programmatically in the zoom plugin.
Development
- change dependency for Google Closure Compiler, version v20221102.
Version 5.7
5.7 is the last stable release.
API JavaDoc: https://pepstock-org.github.io/Charba/5.7.
Breaking changes
- remove
StackedOptions
class, going to specific chart options,StackedLineOptions
andStackedBarOptions
classes, in order to expose all configuration options.
Features
- import CHART.JS MATRIX controller version v1.2.0.
- import CHART.JS GEO controller version v3.10.0.
- import CHART.JS SANKEY controller version v0.11.0.
- import LUXON datetime library version v3.0.4.
- add
hoverColorFrom
andhoverColorTo
options toSankeyDataset
andSankeyElementOptions
classes. - add
StackedHorizontalBarChart
andStackedVerticalLineChart
classes.
Fixed Bugs
- #77 with event refactoring, the
Datasets items selector
plugin cannot selected an area by APIs. - #79
StackedBarChart
andStackedLineChart
didn't manage horizontal and vertical drawing.StackedHorizontalBarChart
andStackedVerticalLineChart
classes added. Thanks @Anschke
Development
- change dependency for Google Closure Compiler, version v20221004.
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.
Version 5.5
5.5 is the last stable release.
API JavaDoc: https://pepstock-org.github.io/Charba/5.5.
Breaking changes
- change default value of
xScaleID
andyScaleID
options tonull
, in the Annotation plugin. - remove
DoubleClickCallback
class becausedblclick
event handler is not supported in the Annotation plugin anymore. - remove
LabelElement
class because is not supported in the Annotation plugin anymore. UseAnnotationElement.getLabel().getOptions()
instead. - enable annotation event handlers (
EnterCallback
,LeaveCallback
,ClickCallback
) to indicate chart should be re-drawn.
Features
- import CHART.JS version v3.9.1.
- import CHART.JS GEO controller version v3.8.1.
- import CHART.JS ANNOTATION plugin version v2.0.0.
- import CHART.JS DATALABELS plugin version v2.1.0.
- import CHART.JS LUXON adapter version v1.2.0.
- add
pointStyleWidth
option toLegendLabels
options and configuration classes. - add
center
option toGeoDataPoint
configuration class. - enable annotation event handlers (
EnterCallback
,LeaveCallback
,ClickCallback
) to indicate chart should be re-drawn. - add
set
methods toAnnotationElement
class in order to enable the change of annotation dimension at runtime. - add
z
option to all annotations options classes. - add
interaction
option toAnnotationOptions
configuration class. - enable the management of annotation types defaults stored as elements.
- add
borderDash
option as scriptable option inGrid
configuration. - add
BorderSkipped.TRUE
item in order to skip all borders for bars drawing. - add
circular
option toArc
element options and configuration and toPolarAreaDataset
classes.
Development
- built and tested on GWT Web toolkit, version 2.10.0.
- change dependency for Google Closure Compiler, version v20220719.
- remove dependency from Google Closure Stylesheets because the project is not maintained anymore.