Skip to content

Releases: chartjs/Chart.js

Version 2.2.2

27 Aug 12:36
Compare
Choose a tag to compare

This release fixes a number of issues and adds a few small enhancements.

Enhancements

  • Documentation improvements to a number of issues. #3110 Thanks @zachpanz88
  • Line charts now support monotone cubic interpolation. This is like bezier interpolation, but ensures that the line only changes monoticity at data points. #3086 Thanks @MatthieuRivaud
  • When a line chart has only 1 data point, the item is now drawn in the center of the chart. #3044 Thanks @roicos

Bug Fixes

  • Fixed an issue with drawing a line where all points were skipped #3066
  • Changed "Data Structure" to "Dataset Structure" in the docs to improve clarity. #3046 Thanks @sibennayak
  • Removed deprecated Chart.pluginService from docs and replace with Chart.plugins. #3088 Thanks @djhuistra
  • Fixed a grammatical error in the docs. #3103 Thanks @laviniaclare
  • Added a section to the docs on how to generate patterns for charts. #1323 Thanks @ashiguruma
  • The hidden iframe used to detect resizing was focusable during tab. #3090
  • The tooltip itemSort function needs to get passed the chart data. #3127 Thanks @vermeeca
  • Always use the time scale custom parser #3131 Thanks @Lighnat0r
  • When drawTicks == false for a scale, the size of the scale was incorrectly calculated. #2872
  • When a category scale was used and there were repeated labels, the chart drew incorrectly. #2994

Version 2.2.1

30 Jul 17:07
Compare
Choose a tag to compare

This release fixes a line drawing bug identified in v2.2.0 along with a few other issues.

Bug Fixes

  • Fixed a line drawing issue when the first or last points were null and the spanGaps option was turned on. #3056
  • Fixed a typo in the docs #3030
  • Fixed a crash when no data existed for a dataset in a doughnut chart #2631
  • Recalculate the size of the time scale in the underlying units when the last tick is set. #2560 and #2964
  • Fixed a typo in the colors section of the docs #3058 Thanks @benpdavison

Version 2.2.0

28 Jul 22:28
Compare
Choose a tag to compare

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

Version 2.1.6

14 Jun 23:33
Compare
Choose a tag to compare

Fixes an issue identified in V2.1.5 where returning arrays from tooltip callbacks was broken. #2775

Version 2.1.5

12 Jun 17:41
Compare
Choose a tag to compare

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

Version 2.1.4

26 May 23:00
Compare
Choose a tag to compare

This release adds a new call that plugins can use afterScaleUpdate which is useful for performing actions that require the scales to be in their final sizes.

Enhancements

  • Performance and minification improvements. See #2491 #2545 #2549 #2551 #2578 #2612 Thanks to @simonbrunel and @niemyjski for their help with performance improvements.
  • Provide default tooltip callback implementations for horizontal bar charts #2536
  • Added bubble chart docs #2594
  • Added a new setting, gridLines.drawBorder to allow hiding the border along the edge of an axis. #2574 Thanks @ceane
    Documentation files have been improved for basic configuration and axes. See #2625

Issues Fixed

  • Fixed horizontal bar outline #2537
  • Fixed line tension docs #2535
  • Fixed a syntax error in a sample #2568 Thanks @niemyjski
  • Error when the first data point for a chart using a time scale was null #2519
  • Fix an issue where the last tick overlapped. #2589 Thanks @haschu
  • Fix an issue with bar widths when there are a lot of bars. #2216
  • Fix an issue with scatter lines charts when the X value is passed as a moment js object. #2588 Thanks @AllenJB
  • Fixed an issue with the doughnut doc labels. #2406
  • Doc did not have a note about selecting the correct build #2288
  • Null data affected tooltip position #2567
  • Documentation chart colours were inconsistent. #2593

Version 2.1.3

12 May 22:47
Compare
Choose a tag to compare

This release adds a new call that plugins can use afterScaleUpdate which is useful for performing actions that require the scales to be in their final sizes.

Enhancements

  • Adds a ticks.minRotation to control the minimum tick rotation on axes. Thanks @tomduncalf
  • Adds new plugin call for afterScaleUpdate. Thanks @Tarqwyn

Issues Fixed

  • Fixed a documentation issue regarding stacked bars. Thanks @cw0102
  • Fixed a typo in the scale documentation. Thanks @matt-watson90
  • Allow canvas pattern objects to be passed as colours. Thanks @ashiguruma

Version 2.1.2

08 May 15:31
Compare
Choose a tag to compare

Issues Fixed

  • Fixed an issue with bars on the time scale #2492
  • Fixed a scale size issue when labels were mirrored #2480
  • if beginAtZero is set and there is no data, the linear scale will be all positive. #2476
  • Scales that are not displayed should not shrink the chart area #2472

Enhancements

You can now easily update the default configuration for different scale types using the updateScaleDefaults function. The new defaults you pass in will be merged with the old defaults. See https://github.com/chartjs/Chart.js/blob/master/docs/01-Scales.md#update-default-scale-config

Chart.scaleService.updateScaleDefaults(type, defaults)

Version 2.1.1

07 May 12:18
Compare
Choose a tag to compare

This release only contains bug fixes.

Issues Fixed

  • Remove all comments from minified build #2462. Thanks to @zachpanz88
  • Fix an issue with custom tooltips not rendering #2384 Thanks to @brizido
  • Minified file size reduction of 2KB #2463
  • Updated legend documentation to better indicate what is passed to generateLabels
  • Fix an issue with line tensions not working #2467
  • Fix an issue in the time scale where grid lines were not drawn at the correct spot #2471

Version 2.1.0

03 May 23:19
Compare
Choose a tag to compare

This release of Chart.js adds horizontal bars (big thanks to @potatopeelings) and the ability to create plugins that fit into the lifecycle of a chart.

New Features

  • Horizontal Bars!! Thanks to @potatopeelings
  • You can now share data between charts. Thanks to @simonbrunel! Note that this will require changes if dataset.metadata or dataset.metaDataset were being used. There is now a helper function to retrieve the correct meta data for a given dataset
  • Doughnut and Pie charts no longer need to fill the entire circle. Thanks @mdehoog
  • Plugins! You can now create plugins that fit into the chart lifecycle. See docs

Fixed Issues

  • Fixed axis sizing when grid lines were not displayed. Added configurable tick length. #2229
  • Fixed an issue in the doughnut / polar area legend callbacks when no background color was set #2143
  • Typo in line chart docs #2289 Thanks @tKammy
  • Fix error in tooltip interface docs #2300 Thanks to @HuwSy
  • Fix doughnut html legend span placement #2308 Thanks to @pwavg
  • Fix typo in plugin destroy call. #2318 Thanks @Janpot
  • Improved logic for calculating bar width. #2326 Thanks to @johnw86
  • Ensured that built file has header comment at very top. #2329 Thanks to @zachpanz88
  • Fix typo in Contributing.md #2332 Thanks to @sashamjolnir
  • Fix label mode tooltips in radar charts #2023
  • Make docs clearer for nested properties. #2338 Thanks to @DaanDeMeyer
  • Fix the time scale when the first value is null #2176
  • Fix legend sizing #2152
  • Added documentation on what can be passed as colors to Chart.js
  • Added documentation on which properties can be added to each dataset
  • Fix an issue in the time scale where the last point was sometimes cutoff #2277
  • Only use visible datasets for the time scale limit determination. #2394 Thanks @Lighnat0r
  • Fix an issue in the docs where the pie chart had sensitive click areas #2389 Thanks to @dougmolineux
  • Pie chart sample now randomizes colors as well. #2421 Thanks to @mchateloin

Config Changes

The old options will still work in this release.