github pepstock-org/Charba 5.0
Version 5.0

latest releases: 6.5, 6.4, 6.3...
2 years ago

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 and onAfterLabel methods to TooltipLabelCallback interface in order to return a List<String> instead of String instances to enable tooltip multilines labels.
  • change invokeTooltipsCallbackOnLabel method to Defaults class in order to return a List<String> instead of String instances.
  • refactoring of Meter and Gauge controller:
    • add ValueLabel and DescriptionLabel 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 by ValueLabel and the label can be configured in DescriptionLabel.
  • remove CornerRadiusCallback class. Use BorderRadiusCallback one.
  • change signature of BorderRadiusCallback, adding the generic for scriptable options context class.
  • rename cornerRadius option to borderRadius in LineLabel and BoxAnnotation classes.
  • remove divider* and groupDividers options from TreemapDataset class in favor of Dividers node.
  • remove font, hoverFont, color, hoverColor and groupLabels options from TreemapDataset class in favor of Labels and Captions nodes.
  • remove Dash class from TreemapDataset 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 and ColorAxis (GEO charts) as scriptable ones.
  • add projection and projectionInvert methods to GEO charts in order to translates latitude and longitude in XY coordinates and viceversa.
  • add getColorForValue and getColorForValueAsString 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 by BarBorderRadius object.
  • add boxPadding option to Tooltips options and configuration classes.
  • add inflateAmount option to Bar options and configuration classes and to BarDataset class.
  • add autoPadding option to Layout options and configuration classes.
  • enable the capability to hide the opened toast items programmatically.
  • add formatNumber methods to Helpers, provided out-of-the-box by CHART.JS.
  • add isZoomedOrPanned method to ZoomPlugin in order to get if the chart is zoomed or panned.
  • add rotation option to EllipseAnnotation class.
  • enable to set a BarBorderRadius object to borderRadius option in LineLabel and BoxAnnotation classes.
  • add borderCapStyle, borderColor, borderDash, borderDashOffset, borderJoinStyle and borderWidth options to LineLabel class.
  • add align, position and formatter options to Labels node in TreemapDataset class in order to improve labels rendering.
  • add align and formatter options to Captions node in TreemapDataset 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.

Don't miss a new Charba release

NewReleases is sending notifications on new releases.