Changelog History
Page 2
-
v2.9.3 Changes
November 14, 2019๐ Bug Fixes
โ Thanks to the maintainers and collaborators for their help to improve and test Chart.js (@kurkle, @benmccann, and @etimberg).
-
v2.9.2 Changes
November 02, 2019๐ Bug Fixes
- ๐ #6641 IE11 & Edge compatible style injection
- 0๏ธโฃ #6655 Backwards compatible default fill for radar charts
- #6660 Improve clipping of line charts when border widths are large
- #6661 When a legend item is clicked, make sure the correct item is hidden
- ๐ #6663 Refresh package-lock file to pick up new dependency
๐ Documentation
- ๐ #6643 Combine performance documentation sections
โ Thanks to the maintainers and collaborators for their help to improve and test Chart.js (@nagix, @kurkle, @benmccann, @etimberg and @simonbrunel).
-
v2.9.1 Changes
October 27, 2019๐ Bug Fixes
- ๐ #6603 Fix deprecation warnings for horizontal bar charts
- ๐ #6608 Fix zoom plugin by no longer clipping
scale.getDecimalForPixel
to the chart area - #6617 Non numeric Y axes did not work
๐ Documentation
- ๐ #6613 Add link to performance documentation
Development
- โ #6609 - Tests no longer use deprecated options
โ Thanks to the maintainers and collaborators for their help to improve and test Chart.js (@nagix, @kurkle, @benmccann, @etimberg and @simonbrunel).
-
v2.9.0 Changes
October 26, 2019๐ฅ Breaking changes
- #6131
helpers._decimalPlaces
is now private
โจ Enhancements
- #6527 Hover styling for dataset in 'dataset' mode
- #6268 Implement
dataset.order
- #6509 Make
autoSkip
aware of major ticks - ๐ #6460 Implemented RTL support for legends and tooltips
- ๐ #6490 HTML DOM building
- #6326 Draw the rightmost grid line when
offsetGridLines
is true - ๐ #6343 Handle reverse support in core.scale
- ๐ #6289 Support
spanGaps
in radar charts - ๐ #6323 Support object values for bar charts
- ๐
#6287 Support rotation for
pointStyle
image - #6257 Allow specifying labels in time scale options
- ๐ #6281 Support boundary filling modes in radialLinear scale
- ๐ #6056 Add support for floating bar chart (
[start, end]
) - #6241 Implement layers (z-index) for layout items
- #5621 Make legend appearance consistent with chart elements
- 0๏ธโฃ #5999 Implement per-dataset type (default and per-chart) options
- #6097 Specify time scale
min
andmax
in standard manner - #6141 Legend align option. Thanks @dkichler
- #6128 Make line options scriptable. Thanks @janelledement
๐ Performance
- ๐ #6594 Remove a couple calls to
helpers.each
- ๐ #6247 Remove duplicate scale building
- #6579 Cache resolved data element options
- #6575 Simplify line drawing
- #6508 Add
ticks.sampleSize
option - #6354 Perf improvement for
ticks.source:'labels'
- #6301 Replace
helpers.each
with for-loops - ๐จ #6304 Refactor
core.layout
- #6307 Faster major tick calculation
- #6250 Cache
getScaleForId()
calls in the line controller - #6148 Replace
helpers.extend
๐ Bug Fixes
- #6249 Bar options should be defined on dataset instead of scale
- ๐ #6556 Inject styles into Shadow DOM when inside Shadow DOM
- #6583 Fix unit determination when
autoSkip
is enabled - #6581 Return correct index/value id in radar/polarArea
- โ #6580 Fix logarithmic test to use correct scale
- #6528 Make sure
zeroLineIndex
is defined - #6523 Fix right side scale ticks
- #6423 Clamp argument of
toExponential
between 0 and 20. Thanks @veggiesaurus - #6328 Fix
getValueForPixel
in time scale - #6292 Adjust vertical alignment of tooltip items
- ๐ #6321 Update dataset metadata when axisID changes
- #6291 Assign unique scale IDs
- #6288 Fix regression in
lineTension
- #6282 Treat null as NaN in radialLinear scale
- #6285 Keep lines on the left and right edges from being cut
- ๐ #6269 Apply lineJoin style at the first point in radar charts
- #6280 Fix point label counting in radialLinear scale
- #6279 Treat 0 as a valid point label
- #6265 Utilize
tick.major
intickFormatFunction
- #6264 Apply offset regardless of min/max setting
- #6258 Fix ticks generation for vertical time scale
- #6259 Fix
determineUnitForFormatting
floating point error - #6115 Fix overlapping auto-generated ticks on time scale
- #6238 Fix tooltip title in radar charts
- #6224 Fix arc size calculation when circumference is under 2*PI
- #6215 Fix arc border with circumference over 2*PI
- #5961 Fix tick label rotation and layout issues
- #6182 Use the appropriate time format for auto tick generation
- #6208 Fill before drawing lines
- #6209 Fix missing tooltip value in radar charts
- #6177 Normalize angle for index in radialLinear scale
- #6102 Fix
ticks.minor
andticks.major
issues - #6129 Fix hover animation
- #6120 Improved
helpers.almostWhole
๐ Documentation
- ๐ #6585 Add a note to the perf documentation about rotation
- #6554 Add link to linear radial axis for radar chart doc
- ๐ #6491 Add
elements.arc.angle
in documentation - ๐ #6466 Fixed incorrect spelling in pie dataset options. Thanks @SeppPenner
- ๐ #6435 Add link back to home page from docs
- #6393 Add radar chart config options
- #6293 Correct descriptions on
ticks.display
and addpointLabels.display
- #6263 Add sample for radar scriptable options
- #6244 Fix data in timeseries sample
- ๐ #6186 Typo in doughnut documentation. Thanks @joshuamcewen
- ๐ #6132 Make docs consistent for
cubicInterpolationMode
andfill
. Thanks @stockiNail - #6119 Demonstrate multiple units on timeseries example
- #6139 Documented tooltip alignment options
- #6134 Documented date adapter
Development
- #6507 Improved minimization when calling helpers
- #6497 Reduce indentation
- โก๏ธ #6355 Do
autoSkip
inupdate
- โฌ๏ธ #6493 Upgrade rollup and plugins
- #6362 Improved code minimization
- #6360 Create
helpers.math._factorize
- #6351 Lazily compute label sizes
- โ #6347 Render charts only once in time scale tests
- โ #6246 Avoid time related deprecation warnings in tests
โ Thanks to the maintainers and collaborators for their help to improve and test Chart.js (@nagix, @kurkle, @benmccann, @etimberg and @simonbrunel).
- #6131
-
v2.8.0 Changes
March 14, 2019๐ Documentation: http://www.chartjs.org/docs/2.8.0/
๐ Deprecations
โจ 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
andscale.ticks.lineHeight
options - #5920 Return correct label for value type axis
- #5922 Properly calculate space needed by tick label when
autoSkip
istrue
- #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
andyLabel
withlabel
andvalue
- ๐
#6006 Enhance legend label color point when
usePointStyle
istrue
. 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
andremoveEventListener
- ๐ฒ #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 deprecatedformat
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
- #5741 Add
-
v2.8.0-rc.1
March 04, 2019 -
v2.7.3 Changes
October 15, 2018๐ Documentation: http://www.chartjs.org/docs/2.7.3/
โจ Enhancements
- #4841 Add
ticks.precision
option to linear scale - #5279 Added 'angle' option to Polar Charts. Thanks @slinhart
- #5319 Enable arbitrary rotation of datapoints. Thanks @joelhamilton5
- #5324 Enable running on virtual canvas on node. Thanks @SeanSobey
- #5363 Skip point outside the clipping area. Thanks @veggiesaurus
- #5521 Handle '\n' as new line in tooltips. Thanks @CWSites
- ๐ #5585 Add support for Shadow DOM. Thanks @reda-alaoui
- โก๏ธ #5592 Call update() and render() with a config object. Thanks @nagix
- โจ #5597 Enhance the rounded rectangle implementation
- #5613 Add 15 minutes time steps. Thanks @fenichelar
- ๐จ #5623 Refactor helpers.canvas.drawPoint(). Thanks @nagix
๐ Issues Fixed
- ๐ฑ #4620 Fixed responsive in IE11 with padding as percentage. Thanks @andi-b
- โก๏ธ #5172 Avoid updating Chart when
responsive: true
and Chart is hidden. Thanks @jcopperfield - ๐ #5209 Fixed min and max option checks in linear scales. Thanks @teroman
- ๐ #5321 Fixed line clipping at the chart area borders. Thanks @serhii-yakymuk
- #5401 Proper tick position for right positioned axis
- ๐ #5570 Restore original styles when removing hover
- #5575 Event handling to use target instead currentTarget. Thanks @teroman
- ๐ #5723 Fixed scale when data is all small numbers. Thanks @costerwi
๐ Documentation
- ๐ #5309 Link to streaming plugin. Thanks @nagix
- #5326 Document circumference and rotation options. Thanks @pgiraud
- ๐ #5328 Fixed time point data sample
- ๐ #5348 Fixed typo in legend documentation. Thanks @whoan
- ๐ #5454 Fixed positioning in the custom tooltip example. Thanks @jung35
- ๐ #5504 Fixed typo in README.md. Thanks @dkm
- ๐ #5507 Fixed time documentation. Thanks @antoine-aumjaud
- #5528 Clarify moment.js included in bundle cannot be used outside of chartjs. Thanks @gdvalderrama
- ๐ #5555 Replace ES6 by Webpack in the integration docs. Thanks @slokhorst
- ๐ #5571 Direct questions and support to StackOverflow
- โก๏ธ #5600 Update the descriptions of barThickness, offsetGridLines and offset. Thanks @nagix
- #5625 Add label for first dataset in progress-bar example. Thanks @bartdeslagmulder
- ๐ #5633 Fixed the example of Linear Radial Axis. Thanks @nagix
- ๐ #5637 Add circular option documentation for grid lines. Thanks @nielmistry
- ๐ #5638 Add a link to chartjs-plugin-style to extensions.md. Thanks @nagix
- #5661 Add color to financial time series sample. Thanks @TPullen21
- ๐ #5663 Fixed adding and removing datasets in bar samples. Thanks @TPullen21
- ๐ #5719 Add "Accessibility" documentation page. Thanks @wuweiweiwu
- #5734 Add Wicked-Charts to the extensions page. Thanks @maximAtanasov
- ๐ #5736 Add scatter link in charts documentation. Thanks @miguelms95
Development
- #5382 Make
Chart.Animation/animations/Tooltip
importable - #5383 Make
Chart.Scale/scaleService
importable - โก๏ธ #5478 Update gulpfile.js to use in strict mode. Thanks @ksokolowski7
- #5595 Use comment for pull request template Thanks @DanielRuf
- โ #5629 Disable hardware acceleration for unit tests
- ๐ #5724 Add gulp watch task for docs @wuweiweiwu
- ๐ #5732 Add "point style" image tests
๐ More details in the release PR: #5732
- #4841 Add
-
v2.7.2 Changes
March 01, 2018๐ Documentation: http://www.chartjs.org/docs/2.7.2/
โจ Enhancements
- #4891 Relax dependencies versions. Thanks @jsg2021
- #4923 Reset only when animating (optimization)
- #4994 Equally sized bars for bar charts
- ๐ #5062 Improve
point.xRange
andpoint.yRange
performance. Thanks @fanthos - #5076 Prevent double ticks array reverse for logarithmic scale (optimization). Thanks @jcopperfield
- 0๏ธโฃ #5095 Better default tooltip label format in the time scale
- ๐ #5240 Support multiple font colors for radial chart labels. Thanks @flaurida
๐ Issues Fixed
- #3998 Avoid tooltip truncation. Thanks @kaidohallik
- โก๏ธ #4198 Fixed updating scale options. Thanks @xg-wang
- ๐ #4874 Fixed setting canvas dimensions. Thanks @andersponders
- ๐ #4913 Fixed log scale when value is 0. Thanks @jcopperfield
- ๐ #4937 Fixed non-adjacent stacked groups. Thanks @jcopperfield
- ๐ #4942 Fixed y-axis labels partially hidden. Thanks @jcopperfield
- #4943 Round values in linear tick generator. Thanks @jcopperfield
- ๐ #4944 Fixed bumpy line on smooth dataset. Thanks @jcopperfield
- ๐ #4959 Fixed out of memory error when all data points are 0. Thanks @jcopperfield
- ๐ฑ #4959 Fixed unresponsive bubble chart. Thanks @jcopperfield
- ๐ #5005 Fixed tooltip changing while animating. Thanks @jcopperfield
- ๐ #5041 Fixed infinite loop due to insufficient bounds checking. Thanks @jcopperfield
- 0๏ธโฃ #5045 Use
time.unit
option to create default min/max for empty chart. Thanks @jcopperfield - #5088 Re-expose
Chart.Ticks.formatters
- โก๏ธ #5144 Fixed updating plugin options
- #5165 Treat negative values in doughnut charts as positive
- #5178 Don't draw tick across axis/border. Thanks @jhaenchen
- #5248 Fix label vertical alignment on vertical scales. Thanks @MPierre9
- #5275 Improve polyfill function of log10 to return whole powers of 10. Thanks @jcopperfield
๐ Documentation
- ๐ #4914 Fixed samples titles. Thanks @aspaldiko
- ๐ #4921 Add link to chartjs-plugin-waterfall. Thanks @MartinDawson
- ๐ #4930 Remove extra space. Thanks @MartinDawson
- ๐ #4979 Fixed link to time axis documentation in bar chart
- #4984 Link to Ember/Chart.js integration. Thanks @jpsirois
- #5006 Link to Angular2+ libraries (1 & 2). Thanks @realshaft
- โ๏ธ #5010 Fixed typos and broken links. Thanks @beiz23
- #5094 Add note about
legendCallback
. Thanks @cameroncf - ๐ #5166 Improve custom tooltip docs and samples
- ๐จ #5167 Add docs on how to resize charts manually for printing
- #5168 Add example on how to use the tooltip label callback
- ๐ #5169 Fixed error in polar area and doughnut chart docs
- ๐ #5173 Better variable name in API snippet. Thanks @jonquach
- #5225 Add Charba GWT integration to extensions.md. Thanks @stockiNail
- ๐ #5227 Remove trailing spaces
- #5256 Improve title of GitBook pages. Thanks @wmzhong
- #5274 Make both README.md and installation.md clearer. Thanks @wla80
Development
- #4699 Suppress coveralls errors in forks. Thanks @andig
- โฌ๏ธ #4738 Upgrade to ESLint 4
- โก๏ธ #5053 Update license year and copyright holders
- ๐ #5112 Use the Chart.js shared ESLint config
- #5113 Make
Chart.layout(Service)
importable - ๐ #5114 Make
Chart.plugins
importable - #5118 Rename
Chart.layout
toChart.layouts
- ๐ #5138 Ignore
package-lock.json
- ๐ฒ #5143 Log gulp error. Thanks @loicbourgois
- โ
#5150 Test for
showLines
in scatter chart. Thanks @loicbourgois - ๐ #5195 Setup HTML and JS linters for samples. Thanks @loicbourgois
- #5217 Fix Slack invitation link
๐ More details in the release PR: #5145
-
v2.7.1 Changes
October 28, 20172.7.1 is a bug fix release and also includes numerous documentation improvements
๐ Documentation: http://www.chartjs.org/docs/2.7.1/
โจ Enhancements
- ๐ #4793 Added
beforeTooltipDraw
andafterTooltipDraw
to plugins. Thanks @JewelsJLF
๐ Issues Fixed
- ๐ #4295 Fixed min and max in time scale
- ๐ #4762 Fixed regression in x-axis interaction mode
- ๐ฑ #4774 Fixed chart responsiveness
- ๐ #4779 Fixed unit used for auto ticks in time scale
- ๐
#4781 Fixed handling of
null
style. Thanks @Rydori - ๐ #4783 Fixed color settings for BeforeLabel and BeforeBody. Thanks @Rittyan
- ๐ #4795 Fixed handling of null labels
- ๐ #4878 Fixed rollup issue caused by early access of the
extend
andinherits
helpers - ๐ #4840 Fixed tooltip reset
๐ Documentation
- #4736 Expand scale jsdocs
- #4765 Consistent formatting for cartesian options
- ๐ #4818 Update supported browser section of documentation
- #4819 Typo in code comments. Thanks @einfallstoll
- #4826 Clarification for using x/y coordinates with bar chart
- #4851 Improved rendering of tables describing options. Thanks @minusf
Development
- โ #4880 Address test flakiness
๐ More details in the release PR: #4876
- ๐ #4793 Added
-
v2.7.0 Changes
September 10, 2017Version 2.7 brings better stability, and powerful new features to Chart.js. The bubble chart options are now completely scriptable. This means that you can pass a function to a bubble chart dataset property and have the function be called as needed. This simplifies array properties, and allows quick and easy rendering changes based on data values. Check out the sample for details. If these options prove useful, they can be extended to other chart types in the future.
๐ Building off the time scale rewrite in version 2.6, the time scale now supports options for configuring how labels generate ticks, how interpolation between the points is handled and the scale boundary strategy. Users can now configure ticks to be generated for each label, or be determined automatically from the data limits. Users can also change how ticks are distributed along the axis] to make non-linear time axes. Check out the sample for details.
๐ Documentation: http://www.chartjs.org/docs/2.7.0/
๐ฅ Breaking Changes
- โช #4079 Doughnut, polarArea and radar charts aspect ratio changed to
2
to be consistent with other charts and are not square anymore by default. Use theaspectRatio: 1
option to restore the previous behaviour.
๐ Deprecations
- ๐ #4401 Deprecated time scale
unitStepSize
, usestepSize
instead.
๐ New Features
- #4199 Add tooltip
labelTextColor
callback. Thanks @apoorvasrinivasan - #4267 #4268 New time scale
major
unit options. Thanks @hurskiy-andriy - #4270 New
devicePixelRatio
option. Thanks @OlduwanSteve - #4646 Implemented scale label padding. Thanks @andig
- #4456 Allow specifying bar chart via {x, y} data points. Thanks @benmccann
- #4458 Add interaction
axis: 'x', 'y', 'xy'
options. - #4506 Allow category labels definition at scale level. Thanks @andig
- #4507 New time scale
distribution
andticks.source
options. - #4533 Allow specifying the time axis via t attribute. Thanks @benmccann
- #4556 New time scale
bounds
option. - #4671 Introduced scriptable options (bubble chart only).
โจ Enhancements
- โก๏ธ #4362 Add support for configurable update. Thanks @ricardocosta89
- 0๏ธโฃ #4381 Scatter chart doesn't anymore display lines by default.
- ๐ #4382 Add support for multiple lines text in the chart title.
- ๐ #4531 Add support for line height CSS values.
- #4545 New
offset
scale option. Thanks @nagix - โก๏ธ #4586 Allow updating dataset types. Thanks @benmccann
- ๐ #4591 Add support for detached canvas element.
- #4596 Replace the IFRAME resizer by scrollable DIVs.
- #4632 Ticks
callback
is now called withthis
as scope. Thanks @andig - #4708 Add platform fallback implementation.
- ๐ #4733 Update
chartjs-color
dependency to version 2.2.0
๐ Issues Fixed
- ๐ #4079 Fixed inconsistent aspect ratio (
2
for all charts). Thanks @jtblin - ๐ #4249 Fixed
labelOffset
not working for vertical axes. Thanks @suheb - #4295 Fixed missing IE
*_SAFE_INTEGER
constants. Thanks @OlduwanSteve - ๐ #4297 Fixed
onHover
event not being triggered. Thanks @ricardocosta89 - ๐ #4318 Fixed disabled legend items alignment.
- 0๏ธโฃ #4319 Fixed default
layout
options (empty object). - ๐ #4341 Fixed tooltip color box border width.
- ๐ #4348 Fixed time scale
round
option. - ๐ #4360 Fixed filling between datasets of different lengths.
- ๐ #4402 Fixed error when legend
labels
option is undefined. - #4403
ticks.padding
option now applies to vertical and horizontal scales. - #4406 Ensured that chart dimensions are always >= 0. Thanks @Peter-Van-Drunen
- โ #4424 Fixed non-passive event listener warning in Chrome.
- ๐ #4425 Fixed range calculation when all datasets hidden and axis minimum set.
- #4448 Radius is now clamped when drawing rounded rectangle.
- #4451 Chart area is now clipped before filling.
- ๐ #4457 Fixed
reverse
option in radial linear scale. - ๐ #4459 Line chart
pointBorderWidth
now supports array. - #4522 Honour time scale min/max settings. Thanks @andig
- #4545 Make
offsetGridLines
consistent. Thanks @nagix - ๐ #4655 Removed redundant tooltip initialize. Thanks @xg-wang
- #4682 Show radial scale labels correctly when rotated.
- ๐ #4697 Fixed filling datasets when stepped line. Thanks @nagix
๐ Documentation
- ๐ #4320 Fixed
stepSize
documentation (previouslyunitStepSize
). - ๐ #4325 Fixed animations link. Thanks @raquelguimaraes
- ๐ #4353 Fixed typo in labelling. Thank @MuseofMoose
- ๐ #4365 Fixed typo in title. Thanks @moortaube
- ๐ #4383 Fixed HighCharts comparison. Thanks @brother
- #4386 Add note regarding non-existant fonts.
- ๐ #4404 Fixed wording in line. Thanks @uok
- โก๏ธ #4417 Add dataset update plugin hooks. Thanks @nagix
- โก๏ธ #4418 Updated the time display format table. Thanks @nagix
- ๐ #4442 Better example of using script tag. Thanks @justinledford
- #4456 Add a note on how to use
getElementAtEvent
in a click handler. - ๐ #4465 Updated link to documentation for previous versions. Thanks @alex-paterson
- #4527 Add link to Java integration. Thanks @mdewilde
- #4554 Add a financial time series sample. Thanks @benmccann
- โ Add doc about accessing development build and resources. Thanks @andig
Development
- โฌ๏ธ #4272 Upgraded development dependencies. Thanks @benmccann
- #4346 Switched Travis to use Node 6. Thanks @benmccann
- #4419 Cleaned up and reorganize core and canvas helpers.
- ๐ #4421 Increased ESLint complexity and add config for tests.
- ๐ #4422 Rewrote the clone and merge helpers.
- 0๏ธโฃ #4423 Changed
valueAtIndexOrDefault
behavior. - ๐ #4427 Removed
.js
extensions when requiring a file. Thanks @let-aurn - ๐ #4475 Moved easing effects in separate file + unit tests.
- ๐ #4477 Fixed many link anchors. Thanks @adrianliaw
- #4479
Chart.helpers
is now importable. - ๐ #4485 Fixed ESLint errors. Thanks @benmccann
- #4509
Chart.platform
is now importable. - 0๏ธโฃ #4512
Chart.defaults/Ticks/Interaction
are now importable. - #4540
Chart.Element/elements.*
are now importable. - ๐ #4542 Removed duplicate npm install. Thanks @benmccann
- ๐จ #4544 Refactored padding parsing in
helpers.options
. - #4547 Enforced spaces around infix/unary words operators.
- โ
#4566 Rewrote unit test
waitForResize
helper. - ๐ #4610 Enforced variable declaration coding style.
- ๐จ #4614 Refactored autoskip functionality into a separate method. Thanks @benmccann
- โ #4617 Fixed tests on OSX with retina screen. Thanks @andig
- ๐ #4654 Better CodeClimate integration.
- โ #4698 Improved controller test stability. Thanks @andig
๐ More details in the release PR: #4706
- โช #4079 Doughnut, polarArea and radar charts aspect ratio changed to