Skip to content

Version 2.2.0

Compare
Choose a tag to compare
@etimberg etimberg released this 28 Jul 22:28
· 2519 commits to master since this release

New Build System

Starting with v2.2.0-rc.1 Chart.js uses a new build system. We no longer include the checked in files (dist folder) in the repository. When a tagged release is made, a build will occur and will be published on NPM automatically. A huge thanks to @simonbrunel for getting this set up and working.

This change means that installing via bower needs to use the bower npm resolver. Detailed instructions can be found in the docs

Enhancements

  • New build system #2555
  • Adds a new tooltip and hover mode that replicates the label mode of Chart.js V1. #2299 Thanks @Mesonyx
  • Allow stacked scatter charts #2878 Thanks @mtanda
  • Can now manually configure the thickness of a bar in a bar chart. Use a new barThickness option on the correct axis to set the thickness of a bar. #2910 Thanks @Joshuabaker2
  • You can now configure the starting angle for radar charts #1012 Thanks @slinhart
  • You can now configure the starting angle for polar area charts #524

Issues Fixed

  • Fixed JSHint warnings #2734 Thanks @simonbrunel
  • Fixed the tooltip average position calculation #2826
  • Allow passing the value property to the time scale getPixelForValue function #2604 #2916
  • If no config is passed to the chart, gracefully fail. #2526
  • spanGaps option for line chart can now be specified per chart instead of only per dataset
  • Polar area charts used to be off center #2708
  • Fixed typo in tooltip section of docs #2839
  • Fixed scale title display in samples #2848 Thanks @ronaldgrn
  • Fixed an issue when the time scale had only one point #2741 Thanks @duerahan
  • Fixed an issue with tooltip display when one dataset does not have a value. #2789 Thanks @awallat
  • Scale docs linked to wrong session #2859 Thanks @azranel
  • Default to a 0 starting point for polar area graphs #2809
  • Fixed an issue with pie and doughnut chart hover border clipping #2844 Thanks @neilmacintyre
  • Fixed a typo in the docs #2888
  • Fixed a typo in the bar chart docs #2897 Thanks @jimkring
  • Improve documentation regarding offsetGridLines option #2894 Thanks @moberwasserlechner
  • Fix an issue when clicking on the label of a category scale #2802
  • Tooltip xAlign and yAlign were swapped. #2923 Thanks @jeffesp
  • Fix typo in the docs #2936 Thanks @gitname
  • Add wikipedia link for DRY acronym #2905 Thanks @shuson
  • Fix null labels affecting tooltips #2875 Thanks @Mesonyx
  • Fix docs typo #2961 Thanks @moberwasserlechner
  • Fixed an issue with numerical data sent to the chart as strings when the axis was stacked #2915
  • Fix an issue when hovering a point on the chart where not all datasets have data. #2990 Thanks @tiagoroldao
  • Fix an issue in the docs where the pie chart was difficult to click on #2983 Thanks @sibennayak
  • Removed an unused property from the radar chart sample #3027 Thanks @moberwasserlechner
  • Correct doc spelling mistakes #3032 Thanks @Neabfi
  • Prevent the time scale getLabelMoment method from going out of bounds #3039 Thanks @ianks
  • Duplicate stepSize property in docs #3048 Thanks @mdewilde
  • getElementAtEvent could return more than 1 item #2981, #2884 Thanks @IonutLaceanu
  • Fixed spanGaps option to work with bezier curves #2812