5.2 is the last stable release.
Documentation: https://pepstock-org.github.io/Charba-Wiki.
API JavaDoc: https://pepstock-org.github.io/Charba/5.2.
Showcase GWT: https://pepstock-org.github.io/Charba-Showcase.
Showcase J2CL: https://pepstock-org.github.io/Charba-Showcase-J2CL.
Breaking changes
- hide public CHART.JS hooks of Charba out-of-the-box plugins (ChartBackgroundColor, ChartPointer, ColorSchemes, HtmlLegend and DatasetsItemsSelector).
- rename
DisplayCallback
toSimpleDisplayCallback
class name (packageorg.pepstock.charba.client.callbacks
) where the display can be set simply with a boolean. - remove
DisplayCallback
class fromorg.pepstock.charba.client.datalabels.callbacks
in order to use the commonDisplayCallback
(packageorg.pepstock.charba.client.callbacks
) where the display can be set by a boolean or aDisplay
enumeration value. - change
graceAsPercentage
option in theCartesianLinearAxis
class in order to be adouble
(value between 0 and 1) instead of astring
when set as percentage.
Features
- add new Crosshair Charba plugin in order to enable the crosshair on the charts with cartesian axes.
- add CHART.JS GRADIENT plugin version v0.4.0.
- import CHART.JS SANKEY controller version v0.9.0.
- import CHART.JS ANNOTATION plugin version v1.4.0.
- import CHART.JS ZOOM plugin version v1.2.1.
- import LUXON library version v2.3.1.
- add
StackedLineChart
andStackedLineChartWidget
classes in order to manage the stacked chart for line (no filled not default). - add
AreaChart
andAreaChartWidget
classes in order to manage the area chart (filled by default). - add
PlginContainer
interface in order to set plugin implementations without exposing the plugin public methods. - add
areaBackgroundColor
option to chart background color plugin (ChartBackgroundColor) in order to enable the coloring of the chart area as well. - add a shared map to annotation context in order to manage common instances cross annotations.
- add
column
option to the Sankey dataset configuration. - add
rotation
option to box and label annotation options in the annotation plugin. - add
rotation
option to label options of box annotation in the annotation plugin. - add
textStrokeColor
andtextStrokeWidth
options to label annotation and to box and line labels options in the annotation plugin. - add events callbacks options to
AnnotationOptions
class in order to enable to events management for all defined annotations. - add scriptable options to all axes for the following options:
display
byDisplayCallback
(packageorg.pepstock.charba.client.callbacks
) classbackgroundColor
byColorCallback
(packageorg.pepstock.charba.client.callbacks
) classreverse
by newReverseCallback
(packageorg.pepstock.charba.client.callbacks
) classalignToPixels
by newAlignToPixelsCallback
(packageorg.pepstock.charba.client.callbacks
) classweight
by newScaleWeightCallback
(packageorg.pepstock.charba.client.callbacks
) classmin
,max
,suggestedMin
andsuggestedMax
by newMinMaxCallback
(packageorg.pepstock.charba.client.callbacks
) class
- add scriptable options to all cartesian axes for the following options:
bounds
by newBoundsCallback
(packageorg.pepstock.charba.client.callbacks
) classoffset
by newScaleOffsetCallback
(packageorg.pepstock.charba.client.callbacks
) classposition
by newScalePositionCallback
(packageorg.pepstock.charba.client.callbacks
) classstacked
by newStackedCallback
(packageorg.pepstock.charba.client.callbacks
) classstack
by newStackCallback
(packageorg.pepstock.charba.client.callbacks
) classstackWeight
by newScaleWeightCallback
(packageorg.pepstock.charba.client.callbacks
) class
- add scriptable options to cartesian linear axes for the following options:
beginAtZero
by newBeginAtZeroCallback
(packageorg.pepstock.charba.client.callbacks
) classgrace
by newGraceCallback
(packageorg.pepstock.charba.client.callbacks
) class
- add scriptable options to radial linear axes for the following options:
beginAtZero
by newBeginAtZeroCallback
(packageorg.pepstock.charba.client.callbacks
) classstartAngle
by newStartAngleCallback
(packageorg.pepstock.charba.client.callbacks
) class
- add
getDistanceFromCenterForValue
andgetValueForDistanceFromCenter
methods toScaleItem
class, enabled ONLY for radial linear scale. - enable global plugins if there are plugin options to configure the dataset and not only in the chart options (as is till now).
Fixed Bugs
- #69 set
fill
option totrue
as initial value onStackeAreaChart
class in order to have the area chart by default. Thanks @salmonb. - #70 add an empty configuration when a plugin is added without any initial configuration.
- #71 fixes the value of the property because was wrong.