github pepstock-org/Charba 5.2
Version 5.2

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

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 to SimpleDisplayCallback class name (package org.pepstock.charba.client.callbacks) where the display can be set simply with a boolean.
  • remove DisplayCallback class from org.pepstock.charba.client.datalabels.callbacks in order to use the common DisplayCallback (package org.pepstock.charba.client.callbacks) where the display can be set by a boolean or a Display enumeration value.
  • change graceAsPercentage option in the CartesianLinearAxis class in order to be a double (value between 0 and 1) instead of a string 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 and StackedLineChartWidget classes in order to manage the stacked chart for line (no filled not default).
  • add AreaChart and AreaChartWidget 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 and textStrokeWidth 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 by DisplayCallback (package org.pepstock.charba.client.callbacks) class
    • backgroundColor by ColorCallback (package org.pepstock.charba.client.callbacks) class
    • reverse by new ReverseCallback (package org.pepstock.charba.client.callbacks) class
    • alignToPixels by new AlignToPixelsCallback (package org.pepstock.charba.client.callbacks) class
    • weight by new ScaleWeightCallback (package org.pepstock.charba.client.callbacks) class
    • min, max, suggestedMin and suggestedMax by new MinMaxCallback (package org.pepstock.charba.client.callbacks) class
  • add scriptable options to all cartesian axes for the following options:
    • bounds by new BoundsCallback (package org.pepstock.charba.client.callbacks) class
    • offset by new ScaleOffsetCallback (package org.pepstock.charba.client.callbacks) class
    • position by new ScalePositionCallback (package org.pepstock.charba.client.callbacks) class
    • stacked by new StackedCallback (package org.pepstock.charba.client.callbacks) class
    • stack by new StackCallback (package org.pepstock.charba.client.callbacks) class
    • stackWeight by new ScaleWeightCallback (package org.pepstock.charba.client.callbacks) class
  • add scriptable options to cartesian linear axes for the following options:
    • beginAtZero by new BeginAtZeroCallback (package org.pepstock.charba.client.callbacks) class
    • grace by new GraceCallback (package org.pepstock.charba.client.callbacks) class
  • add scriptable options to radial linear axes for the following options:
    • beginAtZero by new BeginAtZeroCallback (package org.pepstock.charba.client.callbacks) class
    • startAngle by new StartAngleCallback (package org.pepstock.charba.client.callbacks) class
  • add getDistanceFromCenterForValue and getValueForDistanceFromCenter methods to ScaleItem 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 to true as initial value on StackeAreaChart 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.

Development

  • use Reflect built-in object to manage the properties of the native objects.
  • change dependency for Google Closure Compiler, version v20220301.
  • add dependency for Google Closure Compiler Unshaded, version v20220301.

Don't miss a new Charba release

NewReleases is sending notifications on new releases.