github pepstock-org/Charba 4.1
Version 4.1

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

4.1 is the last stable release.

API JavaDoc: https://pepstock-org.github.io/Charba/4.1.

Breaking changes

  • rename AxisType to ChartAxisType in order to enable custom axes type.
  • rename AxisCalculateTickRotationCallback class to AxisCalculateLabelRotationCallback.
    • rename onBeforeAxisCalculateTickRotation method of the interface to onBeforeAxisCalculateLabelRotation.
    • rename onAfterAxisCalculateTickRotation method of the interface to onAfterAxisCalculateLabelRotation.
    • rename setAxisCalculateTickRotation method of the Axis class to setAxisCalculateLabelRotation.
    • rename getAxisCalculateTickRotation method of the Axis class to getAxisCalculateLabelRotation.

Features

  • import CHART.JS version 3.5.0.
  • import CHART.JS DATALABELS plugin version 2.0.0.
  • import CHART.JS ZOOM plugin version 1.1.1.
  • import Luxon library version 2.0.1.
  • import CHART.JS GEO controller version v3.1.0
    • enable geographic map chart types such as choropleth and bubble map.
  • add Subtitle options and configuration items.
  • add hover, enter and leave axes events.
  • add enter and leave title events.
  • add backgroundColor, borderColor and borderWidth scriptable options to all Elements configuration (bar, line, point, arc).
  • add hoverBackgroundColor, hoverBorderColor and hoverBorderWidth scriptable options to all Elements configuration (bar, line, point, arc).
  • add borderAlign, borderRadius, angle, offset and hoverOffset scriptable options to Arc configuration.
  • add pointStyle, borderSkipped, borderRadius, hoverBorderRadius and enableBorderRadius scriptable options to Bar configuration.
  • add borderCapStyle, borderDash, borderDashOffset, borderJoinStyle, fill and cubicInterpolationMode scriptable options to Line configuration.
  • add radius, hitRadius, hoverRadius, pointStyle and rotation scriptable options to Point configuration.
  • add parsing and normalized options to Dataset configuration.
  • enable the feature to create custom axes types (for injected controller).
  • enable enableBorderRadius and hoverBorderRadius scriptable options on BarDataset class.
  • enable stepped scriptable option on Line element and LineDataset classes.
  • add spacing property to Arc element and PieDataset and DoughnutDataset classes.
  • add originalMin and originalMax properties to ScaleLimit object in the ZoomPlugin.
  • add getZoomLevel method to the ZoomPlugin class.
  • add threshold and modifierKey properties to Drag configuration in the ZoomPlugin.
  • add new events items to Event enumeration.
  • add globalCompositeOperation property to Context2dItem and ChartBackgroundColorOptions plugin.
  • add options builder for ChartBackgroundColor plugin.
  • add options builder for ChartPointer plugin.
  • add options builder for HtmlLegend plugin.
  • add Canvas object as possible value for pointStyle option to enable custom point styles.
  • add toCanvas method to CastHelper class in order to enable casting HTMLCanvasElement instance to Canvas object.
  • add numberFormat scriptable options to all numeric axes configuration (cartesian linear, cartesian logarithmic, radial linear).
  • add threshold option to Decimation configuration.
  • add stack and stackWeight options to CartesianAxis configuration.
  • add pointLabel item to ContextType enumeration class.
  • add middle item to BorderSkipped enumeration class.
  • add datasetIndex, startDataIndex and endDataIndex properties to segment context for Segment callbacks.
  • add hide and show methods to chart classes in order to hide and/or show specific data element.

Developing

  • change dependency for Google Closure Compiler, version v20210601.
  • add parse method to JSON utility class.
  • add clipArea and unclipArea methods to Helpers utility class.
  • hide java script property visibility of $H hash code property in java script object mapped by a NativeObjectContainer, when new object has been created.

Don't miss a new Charba release

NewReleases is sending notifications on new releases.