Chart.js v2.8.0 Release Notes

Release Date: 2019-03-14 // about 5 years ago
  • ๐Ÿ“š Documentation: http://www.chartjs.org/docs/2.8.0/

    ๐Ÿ—„ Deprecations

    • ๐Ÿ—„ #5868 Deprecate Chart.{Type} classes
    • ๐Ÿ—„ #6022 Deprecate configMerge and scaleMerge helpers

    โœจ Enhancements

    • #5741 Add minBarLength option for bar chart. Thanks @adube
    • #5780 Bar options are now scriptable
    • #5841 Draw inner border for arc elements
    • ๐Ÿ‘ #5850 Add support for gridLines/angleLines borderDash for polar area and radar charts
    • ๐Ÿšš #5855 Moved drawing of radial lines before drawing the tick labels. Thanks @fhp
    • ๐Ÿ‘ #5885 Add support for hiding axis when all datasets are hidden. Thanks @davesalomon
    • ๐Ÿ‘ #5905 Add support for typed arrays
    • #5908 Add midpoint interpolation to stepped line. Thanks @veggiesaurus
    • ๐Ÿ‘ #5927 Add reverse support to time scale
    • #5938 Improve tick generation for linear scales
    • #5951 New weight option for pie and doughnut charts
    • #5960 Implement adapter to abstract date/time features
    • #5966 Doughnut options are now scriptable
    • #5973 Line options are now scriptable
    • #5976 Polar area options are now scriptable
    • ๐Ÿ— #5978 Make moment optional from our UMD builds
    • ๐Ÿšš #5982 Remove date auto type conversions
    • ๐ŸŽ #6019 Improve time scale performances
    • #6041 Radar options are now scriptable
    • ๐Ÿšš #6048 Move CSS in a separate file to be CSP-compliant
    • #6059 Add onLeave callback to legend. Thanks @jonrimmer
    • ๐Ÿ”ง #6077 Allow configuration of borderWidth as object
    • โšก๏ธ #6105 Optimize the npm package by removing useless files

    ๐Ÿ›  Issues Fixed

    • ๐Ÿ’ป #5331 Make animation duration consistent across browsers. Thanks @serhii-yakymuk
    • #5609 Fix offsetGridLine behavior with a single data point
    • #5750 Ensure that the time scale safely accesses data.labels
    • #5751 Handle axis lineWidth as an array
    • #5752 Ensure that new Number() is correctly handled
    • #5776 Fix legend layout padding at the start of columns. Thanks @jtagscherer
    • ๐Ÿ‘ #5786 Support decimal stepSize
    • #5790 Add error margin for detecting if a point or line is in the chart area
    • #5816 Fix legend item layout issue
    • #5828 Improve shadow root detection. Thanks @karaxuna
    • #5846 Correct calculation of padding in percent. Thanks @chtheis
    • #5848 Fix radial scale topmost tick label and the bottom of the chart area that were cut off
    • #5857 Fix nearest interaction mode
    • #5858 Adjust the size of rectRounded/rectRot points to fit the circle with pointRadius
    • ๐Ÿ‘ #5865 Support CanvasGradient for hover colors
    • ๐Ÿ‘ #5869 Tooltip support for CanvasPattern and CanvasGradient
    • #5880 Fix the rounding issue of floating point numbers in category scale
    • ๐Ÿšš #5884 Remove gaps on the left and right when the axis offset is set to true
    • ๐Ÿšš #5891 Remove autoSkip logic to always display last tick. Thanks @sgray
    • ๐Ÿšš #5909 Remove innerHTML usage from our DOM platform
    • #5913 Re-allow modifying ticks in afterBuildTicks
    • #5914 Add scale.pointLabels.lineHeight and scale.ticks.lineHeight options
    • #5920 Return correct label for value type axis
    • #5922 Properly calculate space needed by tick label when autoSkip is true
    • #5925 Align title, body and footer inside tooltip
    • #5933 Fix time scale ticks.reverse issue
    • ๐Ÿ‘ป #5936 Fix "RangeError" exception when labels are big (>125000). Thanks @ckyycc
    • #5937 Prevent Bezier points from being capped when a data point is off the chart
    • #5947 Cast getRightValue to number in bar chart
    • #5948 Fix ticks generation when working with tiny numbers
    • #5963 Fix fitWithPointLabels calculation in radial linear scale
    • #5996 Replace tooltip item xLabel and yLabel with label and value
    • ๐Ÿ’… #6006 Enhance legend label color point when usePointStyle is true. Thanks @alfiehd
    • #6007 Prevent drawing radial linear scale twice
    • #6008 Supply correct start parameter to insertElements
    • #6011 Prevent infinite resize when vertical scrollbar appears
    • #6021 Fix padding of horizontal axes when labels are rotated
    • #6027 Provide a rectangle getArea implementation for horizontal bars
    • ๐Ÿšš #6046 Rename addEventListener and removeEventListener
    • ๐ŸŒฒ #6058 Ignore invalid log scale min and max
    • #6060 Handle frozen dataset.data arrays
    • ๐Ÿ“ฑ #6063 Fix responsive resize on RTL page

    ๐Ÿ“š Documentation

    • ๐Ÿ“š #5756 Add documentation the aspectRatio property. Thanks @danielcb29
    • ๐Ÿ—„ #5769 Use parser instead of the deprecated format option. Thanks @Niladri24dutta
    • #5795 Document tick padding option. Thanks @JEphron
    • #5796 Consistent use of punctuation. Thanks @bartdeslagmulder
    • ๐Ÿ”Œ #5813 Add a link to chartjs-plugin-colorschemes
    • #5831 Correct a spelling mistake. Thanks @bakert
    • ๐Ÿ“„ #5854 Add docs for barThickness. Thanks @jedrekdomanski
    • #5876 Fix descriptions in bar chart doc
    • #5877 Replace repeated function call with compact function, generateData. Thanks @generic-github-user
    • #5912 Add omi-chart to the doc. Thanks @dntzhang
    • ๐Ÿ“š #5915 Use HTTPS in documentation links where possible
    • #5958 Use Chart.min.js in samples
    • โšก๏ธ #5962 Update contributors guide and issue templates
    • ๐Ÿ“„ #5968 Fix contribution docs. Thanks @mojoaxel
    • #5974 Add a note about maintainAspectRatio. Thanks @janelledement
    • ๐Ÿ“„ #5975 Fix typo / grammar in docs
    • #5979 Fix labelOffset description
    • #6013 Set pointBackgroundColor in radar sample
    • โœ๏ธ #6020 Fix typos and minor doc issues
    • #6026 Omit inconsistent note. Thanks @janelledement
    • โšก๏ธ #6030 Update doc on label types for TooltipItem
    • #6038 Fix duplicate anchor
    • #6042 Add examples of scriptable charts. Thanks @janelledement
    • #6053 Fix typo in broken url. Thanks @janelledement
    • #6054 Simple spelling error fix. Thanks @JABedford
    • ๐Ÿ”Œ #6070 Add a link to chartjs-plugin-crosshair. Thanks @AbelHeinsbroek
    • โœ… #6073 Add instructions for image-based tests to the contributors guide
    • ๐Ÿ“š #6079 Improve autoSkip documentation
    • ๐Ÿ”Œ #6081 Add a link to chartjs-plugin-rough
    • #6089 Improve financial sample tooltips and interactions
    • #6096 Revamp the README.md and add link to the awesome list
    • #6099 Fix document errors related to ticks
    • #6107 Add a note about how to include an example against master

    Development

    • #5624 Radar code cleanup
    • โœ… #5777 Support *.js test fixture configs
    • ๐Ÿšš #5794 Remove dead code from the gulpfile. Thanks @HendrikRoehm
    • #5827 Change .editorconfig file to include newlines at EOF. Thanks @jtagscherer
    • โœ… #5833 Use the pixel comparer for logarithmic tests. Thanks @jtagscherer
    • โฌ†๏ธ #5840 Upgrade dev dependencies to reduce vulnerabilities
    • โœ… #5842 Use short labels for the legend tests so as not to be affected by the font width
    • #5871 Make Chart.controllers.* importable
    • ๐Ÿ #5872 Fix test failures on Windows
    • ๐Ÿšš #5875 Remove gulp-connect and add jsdelivr/unpkg paths
    • ๐Ÿ’ป #5904 Migrate from Browserify to rollup
    • ๐Ÿ‘ #5953 Cleanup scales export for better import strategy
    • ๐Ÿ”จ #5965 Refactoring using helpers.options.resolve
    • โšก๏ธ #5967 Update controller.scatter.test.js to test default tooltip callbacks. Thanks @MadRussian
    • #5969 Make the main controller importable
    • ๐Ÿšš #5970 Remove unused parameter when calling removeResizeListener. Thanks @DanielRuf
    • #5991 Trigger mouse events at the center of arc
    • ๐Ÿ‘€ #5994 _resolveElementPoint utility for triggerMouseEvent
    • #6005 Common logic for resolving element options
    • #6017 Fix typo in comment
    • ๐Ÿšš #6032 Replace deprecated gulp-util and remove unused watchify
    • #6033 Use lowercase for primitives in jsdocs
    • ๐Ÿ‘• #6040 Remove unused ESLint directive
    • #6043 Autoskip cleanup
    • โœ… #6061 Fix randomly failing tooltip test

    โœ… Thanks to the maintainers and collaborators for their help to improve and test Chart.js (@nagix, @kurkle, @benmccann, @etimberg and @simonbrunel).

    ๐Ÿš€ More details in the release PR: #6092