Skip to content

Version 2.1.5

Compare
Choose a tag to compare
@etimberg etimberg released this 12 Jun 17:41
· 2652 commits to master since this release

Deprecations

  • #2752 Chart.pluginService has been renamed to Chart.plugins.

Enhancements

  • #2580 Allow disabling lines on a per dataset. Use showLine property in the dataset.
  • #2657 Added a new tooltip callback to all customizing the colors shown. Modify the labelColor callback in the tooltip to change the colors.
  • #2661 Added a way to sort tooltip items using a callback.
  • #2732 The grid lines color option can now be passed an array of colors.
  • Converted legend and title blocks to use plugin system. This means that builds without these could be made.
  • New plugin hooks: resize, beforeDatasetsDraw, afterDatasetsDraw, beforeDatasetsUpdate, and afterDatasetsUpdate.
  • Plugins can now return false to cancel actions. Currently only the beforeDatasetsUpdate plugin call supports this.
  • Added a config callback onResize that runs when the chart resizes.
  • The on canvas legend can now be placed on the left or the right. Simply add position: 'right' to the legend config to make this happen. The Horizontal Bar sample includes this.

Issues Fixed

  • #2607 Fixed an issue where the 'rectRot' point style drew incorrectly.
  • #2613 Fixed an issue where destroying the chart did not stop animations.
  • #2639 Fixed a crash in the pie-customTooltips sample file.
  • #2647 Fixed an issue where lines with tension 0 did not animate.
  • #2673 Fixed the syntax in the docs scale section. Thanks @zachpanz88
  • #2675 Fixed link in Readme to advanced docs section. Thanks @FROGGS
  • #2278 Fixed issues with points being clipped at the edges.
  • #2483 Improved importing in Common JS scenarios.
  • #2686 Fixed an issue where the chart title did not change during update. Thanks @NoelOConnell
  • #2697 Fixed an issue that prevented the legend from rendering. Thanks @dennybiasiolli
  • #2298 Fixed an issue with AMD builds. Thanks @sassomedia
  • #2724 Fixed a typo in the tooltip docs. Thanks @fwolfst
  • #2730 Fixed an issue with the tooltip font color. Thanks @duerahan
  • #2739 Fixed an issue with the font family for point labels in the radial linear scale. Thanks @msimulcik
  • Fixed an issue with line bezier points that were forced inside the chart area. This affected zoom and pan and caused lines to be distorted