Version 2.1
API JavaDoc: https://pepstock-org.github.io/Charba/2.1/index.html.
Features
- new Pattern implementation for dataset
- new Gradient implementation for dataset
- full implementation of DataLabels plugin included as Charba component
- full implementation of Labels plugin included as Charba component
- new DataLabels plugin callbacks provided out-of-the-box
- full implementation of filling mode
- new AnnotationBuilder utility to add HTML code on chart and its canvas.
- chart background color plugin accepts
Pattern
andGradient
- replace invalid plugin id and controller type exception with illegal argument exception
- new charts lifecycle listeners
- add replacer function into
JSON
utility - add
stringifyWithReplacer
methods toJSON
utility with out-of-the-box replacer to avoidTypeError cycle object
- add
dir
anddirxml
methods inConsole
utility - set images as point styles in all configuration elements
- add
fireEventOnClearSelection
property of the datasets items selector plugin options to enable or disale firing events on clear selection - add
clearSelection
element into datasets items selector plugin options in order to have into chart a point to click for clearing the selection
Fixed Bugs
- #17 with new annotation builder you can add HTML to canvas. Thanks @nseb
- #26 clean of canvas to fix errors, in datasets selector plugin, when chart has got a transparent background color. Thanks @niekvanderkooy
Documentation
- new and update Wiki pages
- DataLabels and Labels plugins
- implementation out of the box (callbacks)
- utilities
- added gradients and filling mode to color page
- added available color tables to color page
- changes all links to javadoc instead of source code
Development
null
pointer exception avoidance on arrays- disable global plugins, imported as component, by default
- fix
toJSON
method ofChartNode
to avoidTypeError cycle object
- added chart defaults to dataset entity when created by
newDataset
chart method - fix bug of
getValueOrArray
ofNativeObjectContainer
- refactoring of
Labels
dataset object - Charba implemented plugins expose the own ID and FACTORY as static references
- multiple plugin options (as list) stored into chart options
- add
set
to padding scale and layout to set the same value for all dimensions - fix
hasOptions
method for plugin options - clean up of all handle registrations when chart is destroying
- add internal property to know the type of plugin options
- add internal property to know the type of data in a dataset
- remove
merge
method to options to add object (was implemented for plugins which not compliant with Chart.js rules) - remove setting of the default cursor from chart pointer plugin
- remove some
merge
methods fromMerger
class because not used - improve data items selector to change when data url image is changed
- Charba java script helper minify
- fix wrong parameter (object type) on events methods of a plugin
- prevent click event after drawing datasets items selection area
- new dataset methods to get data, datapoints and datastrings to add items without creating own list or array
- add sRGB value to IsColor interface and to its implementation.