5.0 is the last stable release.
API JavaDoc: https://pepstock-org.github.io/Charba/5.0.
Breaking changes
- drop support for Java 8 going to Java 11 as minimum requirement.
- change
onBeforeLabel
,onLabel
andonAfterLabel
methods toTooltipLabelCallback
interface in order to return aList<String>
instead ofString
instances to enable tooltip multilines labels. - change
invokeTooltipsCallbackOnLabel
method toDefaults
class in order to return aList<String>
instead ofString
instances. - refactoring of
Meter
andGauge
controller:- add
ValueLabel
andDescriptionLabel
elements in the meter and gauge dataset in order to configure how to render the labels. - move all methods to configure the value label from options to dataset class.
- remove
Render
enumeration because is not used anymore because the rendering as percentage can be set byValueLabel
and the label can be configured inDescriptionLabel
.
- add
- remove
CornerRadiusCallback
class. UseBorderRadiusCallback
one. - change signature of
BorderRadiusCallback
, adding the generic for scriptable options context class. - rename
cornerRadius
option toborderRadius
inLineLabel
andBoxAnnotation
classes. - remove
divider*
andgroupDividers
options fromTreemapDataset
class in favor ofDividers
node. - remove
font
,hoverFont
,color
,hoverColor
andgroupLabels
options fromTreemapDataset
class in favor ofLabels
andCaptions
nodes. - remove
Dash
class fromTreemapDataset
because not needed anymore.
Features
- import CHART.JS version v3.6.1.
- import CHART.JS GEO controller version v3.6.0.
- import CHART.JS TREEMAP controller version v2.0.0.
- import CHART.JS ZOOM plugin version v1.2.0.
- import CHART.JS ANNOTATION plugin version v1.1.0.
- enable all options of
SizeAxis
andColorAxis
(GEO charts) as scriptable ones. - add
projection
andprojectionInvert
methods to GEO charts in order to translates latitude and longitude in XY coordinates and viceversa. - add
getColorForValue
andgetColorForValueAsString
methods to GEO color axis in order to get the color for a specific value. - add
getSizeForValue
method to GEO size axis in order to get the size for a specific value. - enable the capability to set
cornerRadius
of the tooltip byBarBorderRadius
object. - add
boxPadding
option toTooltips
options and configuration classes. - add
inflateAmount
option toBar
options and configuration classes and toBarDataset
class. - add
autoPadding
option toLayout
options and configuration classes. - enable the capability to hide the opened toast items programmatically.
- add
formatNumber
methods toHelpers
, provided out-of-the-box by CHART.JS. - add
isZoomedOrPanned
method toZoomPlugin
in order to get if the chart is zoomed or panned. - add
rotation
option toEllipseAnnotation
class. - enable to set a
BarBorderRadius
object toborderRadius
option inLineLabel
andBoxAnnotation
classes. - add
borderCapStyle
,borderColor
,borderDash
,borderDashOffset
,borderJoinStyle
andborderWidth
options toLineLabel
class. - add
align
,position
andformatter
options toLabels
node inTreemapDataset
class in order to improve labels rendering. - add
align
andformatter
options toCaptions
node inTreemapDataset
class in order to improve captions rendering.
Developing
- change dependency for Google Closure Compiler, version v20211107.
- add consistent checking for scriptable options which are returning a number.