chore(deps): update dependency chart.js to v4 #8

Open
renovate wants to merge 1 commit from renovate/chart.js-4.x into main
Contributor

This PR contains the following updates:

Package Update Change
Chart.js (source) major 1.1.1 -> 4.5.0

Release Notes

chartjs/Chart.js (Chart.js)

v4.5.0

Compare Source

Enhancements

  • #​11470 Fix min js two renames
  • #​12054 [fix] #12048 - Add selfJoin option for doughnut graphs
  • #​12058 feature: make above/below colors in filler plugin work with pivoted line charts

Bugs Fixed

  • #​12070 Fix: display stacked bar with multiple x-Axis

Types

  • #​12064 Document requirement of 'this' when calling tick formatters
  • #​12063 Add type definition for beforeEvent changed

Documentation

  • #​12088 Fix grammar typo: 'only draw line' -> 'only draw lines'
  • #​12087 Fix minified URL for development builds in the docs
  • #​12084 fix: correct grammar in segment comments (an segment -> a segment)
  • #​12082 Update docs for Developers API
  • #​12068 Fix minor typo, missing period

Development

Thanks to @​FabTechAT, @​Jee-on, @​LeeLenaleee, @​R2Jeu-prive, @​dependabot[bot], @​ffdm, @​fulldecent, @​joshkel, @​lucasleung8, @​nakanoh, @​xavierleune and dependabot[bot]

v4.4.1

Compare Source

Bugs Fixed

  • #​11605 Update font spec type
  • #​11596 Tooltip fixes (getLabelAndValue on null controller, null getParsed)
  • #​11588 fix: Guard access to window in helpers.dom.ts for browserless rendering
  • #​11577 Fix backdrop padding
  • #​11488 Change type of mode in chart.update(mode)

Types

  • #​11605 Update font spec type
  • #​11572 fix: Property platform missing from chart configuration typings
  • #​11569 fix: pass Plugin TType down to hooks chart arg
  • #​11488 Change type of mode in chart.update(mode)

Documentation

  • #​11562 Fix migration docs links
  • #​11483 docs: Fix typo for documentation of plugins.tooltip.textDirection

Development

Thanks to @​CatchABus, @​Cazka, @​Connormiha, @​LeeLenaleee, @​Sengulair, @​bboy-chocomint, @​dependabot, @​dependabot[bot], @​jongwooo, @​joshkel and @​unverbraucht

v4.4.0

Compare Source

Enhancements

  • #​11404 Add clip option to scale configuration to allow unclipped scales

Bugs Fixed

  • #​11435 BorderRadius of Bar Chart issue on Firefox 116

Types

  • #​11348 fix: Add backgroundColor type on CoreScaleOptions

Documentation

  • #​11439 Replace html extension with md extension for docs

Development

Thanks to @​LeeLenaleee, @​Mer-cat, @​bogdankorshunov and @​stockiNail

v4.3.3

Compare Source

  • #​11432 Revert fix for monotone cubic interpolation

Development

  • #​11427 Bump pnpm/action-setup from 2.2.4 to 2.4.0

Thanks to @​dependabot, @​dependabot[bot] and @​stockiNail

v4.3.2

Compare Source

Types

  • #​11422 Revert feature to disable plugins by TS
  • #​11419 Updates to scale type definitions

Development

Thanks to @​LeeLenaleee, @​joshkel and @​stockiNail

v4.3.1

Compare Source

  • #​11417 Bump 4.3.1
  • #​11330 [docs] HTML Legend sample: add flex-shrink: 0 to color box

Bugs Fixed

  • #​11377 Fix curve path if scale limits are set for line chart
  • #​11388 Fix time series scale to have each data point is spread equidistant
  • #​11352 Fix mismatch between hit boxes and drawn items in legend plugin
  • #​11346 Add text stoke radial linear scale
  • #​11334 Fix toggling showLine option on scatter controller

Types

  • #​11403 Add missing feature for disabling plugins in TyeScript
  • #​11396 Fix type of tickBorderDash in GridLineOptions
  • #​11187 Split the TimeScaleOptions type into composable sub types
  • #​11383 fix: add pointStyleWidth to type definitions
  • #​11358 Add `beforeDraw` to drawtime type
  • #​11350 Add events property to Plugin defined type
  • #​11309 Export explicitly the plugin options definition which is augmented by plugins implementation

Documentation

  • #​11345 Clarify update docs
  • #​11324 Refined grammar and updated overall .md documentation files
  • #​11322 minor correction of documentation for 'Grace'
  • #​11284 Correct tooltip dates displaying incorrectly reported in #11229
  • #​11300 Expend note that chart must be in its own dedicated container

Development

Thanks to @​Frenzie, @​LeeLenaleee, @​etimberg, @​matthewhegarty, @​mukham12, @​skopz356 and @​stockiNail

v4.3.0

Compare Source

  • #​11257 Bump to 4.3.0
  • #​11217 Enable applying of gradients and pattern on line segments
  • #​11134 Use custom scale defaults and dataset axis ID options to determine the axis
  • #​11061 fix RTL tooltip colorBox placement

Enhancements

  • #​11055 Enable point labels hiding when overlapped
  • #​11180 Border is counted as part of ArcElement
  • #​11121 refactor: rewrite config helpers to ts
  • #​11100 refactor: rewrite canvas helpers to ts
  • #​11127 Add borderDash options to arc element

Bugs Fixed

  • #​11238 Check for isNaN before building number formatter options
  • #​11116 Fix: don't generate ticks > max if max is specified

Types

  • #​11121 refactor: rewrite config helpers to ts
  • #​11100 refactor: rewrite canvas helpers to ts
  • #​11143 Docs: fix tooltip model doc.

Documentation

  • #​11241 Add redirect for old V3 migration guides in release notes
  • #​11244 Fix documentation about how to manage own custom plugin for types
  • #​11220 docs: Fix a few typos
  • #​11154 Update tooltip.md

Development

  • #​11240 Add version specific urls to release template
  • #​11212 Update size limits
  • #​11209 chore: change pnpm version in engines field to be able to use 8.x.x
  • #​11174 Add colors plugin to size limit
  • #​11165 Disable canvas acceleration in Firefox 110 in test cases
  • #​11145 Simplify _arrayUnique
  • #​11135 Change labelColors to labelColor in tooltip drawColorBox method.

Thanks to @​CodingMarco, @​Connormiha, @​Demir-Utku, @​LeeLenaleee, @​dangreen, @​defunctzombie, @​etimberg, @​leo2436, @​olenderhub, @​shahabhm, @​stockiNail and @​timgates42

v4.2.1

Compare Source

  • #​11045 fix: decimation plugin data not writeable after clean

Bugs Fixed

  • #​11069 Use maxTicksLimit option to calculate the labels size on ticks

Types

  • #​11102 chore: #10963 revert
  • #​11115 Add colors plugin TS options to be configured
  • #​11081 fix: add bgColor type in RadialLinearScaleOptions
  • #​11095 🐛 fixes compilation error when option --isolatedModules is set

Documentation

Development

  • #​11130 Bump to 4.2.1
  • #​11124 Remove circumference property retrieving from arc element for center calculation because not used
  • #​11113 Update link to new template

Thanks to @​LeeLenaleee, @​choichoijin, @​dangreen, @​etimberg, @​jljouannic, @​johakr, @​n1313 and @​stockiNail

v4.2.0

Compare Source

  • #​11054 Add pointLabel context type documentation
  • #​11043 chore: Add Chart.js meetup announcement to README

Enhancements

  • #​11063 Add format method to time scale to format timestamp using scale options

Bugs Fixed

  • #​11003 Check colors definition in the chart options

Types

  • #​11017 Change 'normal' update mode to 'default' as documented
  • #​11051 fix: updated type for doughnut offset

Documentation

Development

Thanks to @​ankane, @​igorlukanin, @​mlankamp and @​stockiNail

v4.1.2

Compare Source

Types

Documentation

  • #​11006 Fixes missing markdown links in docs

Development

Thanks to @​LeeLenaleee, @​dangreen and @​matveycodes

v4.1.1

Compare Source

  • #​10988 chore: Revert "Add Product Hunt button (temporarily)"

Bugs Fixed

  • #​10971 fix: avoid resize loop when browser zoom is set to 90%
  • #​10993 fix: move types to src dir to escape src / dist dirs in paths
  • #​10992 fix: hotfix chart.js/auto for commonjs

Types

  • #​10993 fix: move types to src dir to escape src / dist dirs in paths

Development

Thanks to @​dangreen, @​etimberg, @​gbaron and @​igorlukanin

v4.1.0

Compare Source

  • #​10980 chore: Add Product Hunt button (temporarily)
  • #​10917 fix: move @​kurkle/color to dependencies

Enhancements

Bugs Fixed

  • #​10942 Ensure that args are saved inside of the throttled helper
  • #​10766 fix: stacked bar chart minBarLength causes overlapping
  • #​10898 Set the transition mode to the context for scriptable options

Types

  • #​10963 fix: unbind instance config from chart type
  • #​10910 Add stepSize option to time scale options types

Documentation

Development

Thanks to @​Kit-p, @​LeeLenaleee, @​Simon-He95, @​benmccann, @​dangreen, @​etimberg, @​igorlukanin, @​letheri and @​stockiNail

v4.0.1

Compare Source

Bugs Fixed

Thanks to @​LeeLenaleee

v3.9.1

Compare Source

Bugs Fixed

Thanks to @​LeeLenaleee

v3.9.0

Compare Source

Enhancements

  • #​10439 feat: remove line element from scatter controller
  • #​10528 feat: pass some chart options to DateAdapter
  • #​10405 Add circular prop to arc element
  • #​10530 Skip all borders if borderSkipped === true
  • #​10517 parsing: support dot(s) in object keys
  • #​10519 Enable borderDash option in the grid as scriptable

Performance

  • #​10517 parsing: support dot(s) in object keys

Bugs Fixed

  • #​10524 pass boxWidth only if pointStyleWidth presents
  • #​10523 fix: calc visible points on update #10467

Documentation

  • #​10527 Add docs for changing from time scale to logarithmic/linear scale
  • #​10518 Improve docs radial linear grid
  • #​10522 Fix Stack Overflow tag: chart.js
  • #​10520 Fix Stack Overflow tag: chart.js
  • #​10515 Fix dead link on reload or open in new tab
  • #​10516 Clarifying threshold requirement in the docs for decimation

Development

Thanks to @​LeeLenaleee, @​M4sterShake, @​benmccann, @​dangreen, @​kurkle, @​peterhauke, @​stockiNail, @​thabarbados and @​touletan

v3.8.2

Compare Source

Bugs Fixed

  • #​10513 Explicitly include package.json files for subpackages

Development

  • #​10513 Explicitly include package.json files for subpackages

Thanks to @​etimberg

v3.8.1

Compare Source

Enhancements

  • #​10495 Improve error message with id of the canvas
  • #​10412 Add pointStyleWidth option for legend

Bugs Fixed

  • #​10484 Resolve plugin defaults for local plugins
  • #​10489 draw tooltip with object borderwidth
  • #​10451 Fix options update when changing to shared opts
  • #​10454 Fix crash with skipNull and uneven datasets
  • #​10414 Respect `fill: false` with custom draw times

Types

  • #​10494 Allow clip to be configurable in options object typescript
  • #​10436 Add index to legendItem interface
  • #​10404 Add padding to pointLabels type, add type to scriptable context
  • #​10387 Allow for each dataset to be individually typed without a main type

Documentation

  • #​10490 document defaults for plugins
  • #​10497 Update link to be able to use within github
  • #​10446 Add a stale version warning + a link to the latest version of docs
  • #​10470 Update integration.md
  • #​10447 Enforce maximum width on chart editor blocks in the docs
  • #​10456 Update aspectRatio documentation
  • #​10415 Update responsive.md
  • #​10434 Clarify helpers need to be imported when using bundlers
  • #​10410 Fix typo in link to documentation from sample
  • #​10400 Fix default value of 'includeInvisible' option in the documentation
  • #​10392 Clarify api docs

Development

Thanks to @​LeeLenaleee, @​Pourbahrami, @​andrewl64, @​dependabot, @​dependabot[bot], @​etimberg, @​ideabrian, @​igorlukanin, @​kurkle, @​naveensrinivasan, @​stockiNail and @​touletan

v3.8.0

Compare Source

  • #​10341 Correct auto.esm.js import to allow module to work in browser
  • #​10316 Use abs() when comparing for spanGaps
  • #​10320 Bump async from 2.6.3 to 2.6.4
  • #​10290 Bump moment from 2.29.1 to 2.29.2
  • #​10260 Bump minimist from 1.2.5 to 1.2.6
  • #​10204 Bump karma from 6.3.14 to 6.3.16
  • #​10200 Bump url-parse from 1.5.7 to 1.5.10
  • #​10198 Bump prismjs from 1.25.0 to 1.27.0
  • #​10181 Bump url-parse from 1.5.3 to 1.5.7
  • #​10146 Bump karma from 6.3.9 to 6.3.14
  • #​10150 Bump log4js from 6.3.0 to 6.4.1
  • #​10152 Bump engine.io from 6.1.0 to 6.1.2
  • #​10151 Bump node-fetch from 2.6.6 to 2.6.7
  • #​10149 Bump follow-redirects from 1.14.6 to 1.14.8

Enhancements

  • #​10362 Add option to include invisible points
  • #​10328 Resolve canvasGradient is undefined in node
  • #​10293 Enable configuration of radial scale point label border radius
  • #​10278 Allow time scale to offset using skipped ticks
  • #​10046 Interaction functions
  • #​10182 Allow individual chart controllers to opt-in to the decimation plugin
  • #​10088 Make object notation usable for polarArea and radar
  • #​10106 Add new align 'inner' for X axis

Bugs Fixed

  • #​10371 Update to v0.2.1 color dependency to fix bug with invalid colours
  • #​10340 Update scale polarArea correctly on data hide
  • #​10289 display tooltips only at points in chart area
  • #​10328 Resolve canvasGradient is undefined in node
  • #​10301 Trigger legend onLeave when the mouse leaves the canvas
  • #​10276 Document tooltip draw hooks and only call hooks when the tooltip draws
  • #​10157 minimum bar length setting keeps bar base in view

Types

  • #​10364 Types: Allow font to be partial scriptable and individually scriptable
  • #​10283 Types: add 'middle' to borderSkipped
  • #​10275 Export types for cartesian and radial tick options
  • #​10269 add startAngle to radial scale options typings
  • #​10254 Add missing fields to the ScriptableContext type
  • #​10179 Allow array for line opts in dataset

Documentation

  • #​10308 Add links to docs in all the samples
  • #​10259 Fix a typo in data-structures.md
  • #​10266 Correct chart initialization flow
  • #​10250 Update link to filler plugin
  • #​10184 Fix broken link in Animations docs page.
  • #​10158 remove hardcoded licenseYear in docs
  • #​10156 update link to license and bump license year
  • #​10154 Document scale update plugin hooks

Development

  • #​10377 Bump to 3.8.0
  • #​10247 Resolve circulair import filler plugin
  • #​10243 Replace deprecated String.prototype.substr()
  • #​10040 Refactor filler plugin for easier maintenance

Thanks to @​CommanderRoot, @​LeeLenaleee, @​Talla2XLC, @​akiraaso, @​dependabot, @​dependabot[bot], @​etimberg, @​joshkel, @​kurkle, @​kylejonesdev, @​linkviii, @​luke-heberling, @​msteiger, @​pzelnip, @​t-mangoe and @​yhvicey

v3.7.1

Compare Source

Bugs Fixed

  • #​10024 Fix using above/below filling option with discontinuous lines

Types

  • #​10124 Add missing mouse events to CoreChartOptions.events type
  • #​10133 Allow spanGaps to be specified on LineOptions
  • #​10137 Ensure that min/max of TimeScaleOptions can be a string
  • #​10075 fix: allow colors as array
  • #​10131 Correct type for updateHoverStyle
  • #​10130 Type Chart.legend property
  • #​10111 Change repeating alingment string to single type
  • #​10078 Move scriptable and array to helper function in types
  • #​10057 add typing and docs for maxTicksLimit all scales

Documentation

  • #​10138 Sort docs sub menus alphabetically, add line and plugin sample
  • #​10100 Sort line and bubble dataset options alphabetically
  • #​10103 Fix typos found by codespell
  • #​10057 add typing and docs for maxTicksLimit all scales
  • #​10045 typo Cofiguration

Development

Thanks to @​DimitriPapadopoulos, @​LeeLenaleee, @​LovelyAndy, @​caub, @​charlesmass2, @​etimberg, @​jmorel and @​stockiNail

v3.7.0

Compare Source

Enhancements

  • #​9949 Add centerPointLabels option for linear radial scale
  • #​9970 Limit active element changes to chartArea
  • #​9944 Improvements to tooltip positioners
  • #​9933 add beforeDestroy hook
  • #​9919 Support "r" axis for non-intersecting interaction
  • #​9920 Feature/active elements on top
  • #​9877 Add borderJoinStyle option for arc elements

Bugs Fixed

  • #​10021 radialLinear: fix positioning & scaling
  • #​10020 radialLinear: fix getIndexAngle when there are no labels (left)
  • #​10018 radialLinear: Hide pointLabels of hidden data
  • #​9992 Fix setActiveElements behavior after a mouse event
  • #​9970 Limit active element changes to chartArea
  • #​9969 Pass object from array as value to _fallback

Types

  • #​9986 Types/ type suggestedMin and suggestedMax for time scale
  • #​9985 Types/Allow min-max as string timescale
  • #​9937 Types/allow for multiline labels in tick callback

Documentation

  • #​10013 Docs/Add sample for centered point labels
  • #​9994 Docs/clarify usage of ticks callback (#9991)
  • #​9960 Docs/clarify samples
  • #​9952 Try to improve documentation for new users

Development

  • #​10011 Bump version to 3.7.0, update deps

Thanks to @​LeeLenaleee, @​doug-a-brunner, @​joshkel, @​kurkle, @​luukdv and @​t-mangoe

v3.6.2

Compare Source

Bugs Fixed

  • #​9939 Stop modifying options in interaction handlers
  • #​9938 Fix resolver caching issue when setting values

Development

Thanks to @​kurkle

v3.6.1

Compare Source

  • #​9683 Update stale documentation for axis titles

Bugs Fixed

  • #​9922 Fix tooltip caret position when it is positioned at the corners
  • #​9921 Category: Track automatically added labels
  • #​9915 Chart area boxes receive 0 margin during the final layout process
  • #​9876 Detect detach/attach in same observation
  • #​9857 Synchronize data visibility with data changes
  • #​9871 Fix inRange for full circle arc
  • #​9872 Configure all datasets before updating any
  • #​9861 Prevent proxying CanvasGradient in Node platform
  • #​9855 Fix incomplete TS type for Chart.register + others
  • #​9831 Pass number format to tooltip
  • #​9794 Remove scriptability from defaults.font types

Types

  • #​9917 Add a note about the type parameters of the ChartData type
  • #​9916 Doughnut chart options have an offset property
  • #​9858 Types: add autopadding to typing
  • #​9855 Fix incomplete TS type for Chart.register + others
  • #​9837 update animation event to include currentStep instead of currentState
  • #​9834 Types: include initial variable in the AnimationEvent
  • #​9794 Remove scriptability from defaults.font types
  • #​9800 Fix object notation border width barchart

Documentation

  • #​9923 Add notes about more specific options for axes
  • #​9917 Add a note about the type parameters of the ChartData type
  • #​9900 Fix a typo in index.md
  • #​9893 Fix a typo in contributing.md
  • #​9866 docs: Add a link to front-end integrations
  • #​9865 Update misleading sample comment
  • #​9812 Docs/update scale position type
  • #​9803 Define with let to avoid "assignment to constant" errors
  • #​9798 New sample: Progressive Line With Easing
  • #​9791 Update namespace and charts for legend override
  • #​9787 Add warning about chart types overriding plugin defaults

Development

Thanks to @​LeeLenaleee, @​NorthBlue333, @​benmccann, @​carsonalh, @​erictheise, @​etimberg, @​fishmandev, @​igorlukanin and @​kurkle

v3.6.0

Compare Source

  • #​9757 ci(workflow): add cache to workflows using actions/setup-node
  • #​9587 Ensure that controllers derived from the bar controller work correct in stacked charts

Enhancements

  • #​9761 Add chart, p0.raw, p1.raw to segment context
  • #​9758 Support nested scriptable options for datasets
  • #​9751 Disable animations for BasicPlatform (offcreen)
  • #​9716 Add layout.autoPadding option
  • #​9679 Add sanity check for stepSize
  • #​9625 Configurable tooltip box padding
  • #​9624 Add sanity checks for scale options
  • #​9622 Add parsing support to pie/doughnut charts
  • #​9620 Enable per-corner border radius in tooltip
  • #​9557 Detect attach/detach from any level

Performance

  • #​9661 cache also undefined values in option resolver

Bugs Fixed

  • #​9656 Fix cleaning up metasets
  • #​9767 Fix stacked fill with lines over multiple scales
  • #​9764 Bubble: Properly parse radius for non-object data
  • #​9770 Support nested scriptable defaults for datasets
  • #​9766 Fix controller.getMinMax for stacked charts
  • #​9729 Types: Move tooltip methods to model from plugin
  • #​9719 Linear: determine grace amount from range
  • #​9718 Fix chart crashing when only min is defined
  • #​9641 Fix chart crashing when max is defined but ticks are empty
  • #​9678 Bar: fix too thick borders
  • #​9644 Fix segment styling with gaps
  • #​9613 Fix plugin event filtering of renamed events
  • #​9592 Fix control points on animated line w/o border

Types

  • #​9729 Types: Move tooltip methods to model from plugin
  • #​9699 Support false for doughnut and polar area chart animation options
  • #​9680 Fix some typings issues
  • #​9634 Add align to interface of scale title config
  • #​9610 fix getRelativePosition type definition
  • #​9617 Remove offscreen canvas types
  • #​9570 Add missing typings of helpers, add automatic test

Documentation

Development

Thanks to @​0xflotus, @​Flupp, @​KurtPreston, @​Prashoon123, @​SandeepKrSuman, @​aha-oretama, @​atharva01903, @​davidsandoz, @​etimberg, @​gautammsuthar, @​igolskyi, @​joshkel, @​kurkle, @​mikidoodle, @​nikethanrai, @​oscard0m and @​shubham242k

v3.5.1

Compare Source

  • #​9563 support crossAlign on mirrored y-axis

Bugs Fixed

  • #​9525 Keep track of parsed array changes when parsing===false
  • #​9489 Fix _isPointInArea helper when no area is provided
  • #​9469 Remove index interaction override barChart

Types

  • #​9550 Grid line z property in TS types
  • #​9546 Add number to the title scale padding as type
  • #​9490 Types: Add `tooltip` to chart instance
  • #​9477 Types: Change `context.chart` to plain `Chart`

Documentation

  • #​9555 Fix broken link.
  • #​9549 Ensure that docs have more width in the page
  • #​9516 fix 2 broken links, clarify order property
  • #​9524 Add more details on legend sort function
  • #​9503 Fix typo in docs on axes labelling
  • #​9479 Move pointStyle types and update plugin link&render chart
  • #​9465 Longhand labels key in getting started
  • #​9475 Adjust text to code example
  • #​9472 Update charts.md

Development

  • #​9565 Update to 3.5.1 version number
  • #​9556 Remove chart.scale property (always undefined)

Thanks to @​LeeLenaleee, @​M4sterShake, @​Yash-Singh1, @​etimberg, @​ewanmellor, @​juan-cortes, @​kurkle, @​niklasnoldin and @​snoozbuster

v3.5.0

Compare Source

Enhancements

  • #​9452 Bar: add 'middle' option for borderSkipped
  • #​9450 Add ability to hide specific data element
  • #​9451 Add data/dataset indices to line segment context
  • #​9364 Layout: support box stacking
  • #​9360 Add 'shape' mode for filler-plugin
  • #​9327 Adding threshold option to decimation plugin

Bugs Fixed

  • #​9431 Ensure getPrototypeOf will not crash on plugin options with no scopes
  • #​9448 Fix DomPlatform.isAttached
  • #​9447 Apply segment styles with only single segment
  • #​9446 Fix interaction on partially visible bar
  • #​9444 Typescript 4.2+ compatibility
  • #​9443 Don't draw points outside chartArea
  • #​9442 Fix: config.platform was ignored
  • #​9433 Linear scale handle min === max when abs(max) > Number.MAX_SAFE_INTEGER
  • #​9426 lower default value of grid z index so it draws behind chart elements
  • #​9425 Properly update stacks when datasets index changes
  • #​9413 Fix center axis title positions
  • #​9410 Limit Math.asin inputs to the range [-1, 1]
  • #​9399 Bar: inflate rects by 0.33px to avoid artifacts
  • #​9400 Fix bar direction when minBarLength is applied
  • #​9394 Fix stacked box dimension calculation with weights
  • #​9353 Adjust legend hitboxes when RTL and each item has a different size
  • #​9373 Point label specific scriptable context
  • #​9367 Decimation: Prevent buffer overflow

Types

  • #​9462 Update radar dataset option typings
  • #​9444 Typescript 4.2+ compatibility
  • #​9432 Allow dataset specific ChartMeta type extensions
  • #​9438 Define bounds as a field common to all cartesian axes options
  • #​9403 Add missing resizeDelay option to types
  • #​9386 Indicate that `SubTitle` is a plugin in TS types
  • #​9385 Fix type linting for merge between two PRs
  • #​9363 Resolve warnings from typings
  • #​9376 Improve LegendElement and TooltipItem type definitions

Documentation

  • #​9458 Adds HTMLCanvasElement as possible value for pointStyle option in the documentation
  • #​9384 Add SubTitle to the list of all esm imports

Development

Thanks to @​LeeLenaleee, @​Nico-DF, @​boreq, @​drewsonne, @​etimberg, @​kurkle and @​stockiNail

v3.4.1

Compare Source

Bugs Fixed

  • #​9345 Timeseries: support panning
  • #​9343 Account for floating point error in niceNum helper
  • #​9341 Enable pointStyle for doughnut, pie, and polar area charts
  • #​9340 Ensure correct item is clicked when a horizontal legend is in RTL mode
  • #​9326 Fix comma causing Terser issue

Types

  • #​9348 Add type tests for float bar / object data arrays
  • #​9336 Update types with more possible events
  • #​9330 Fix typing of the isoWeekday field

Documentation

  • #​9338 Fixes spacing options in the documentation for doughnuts charts

Development

Thanks to @​LeeLenaleee, @​TriPSs, @​etimberg, @​kurkle and @​stockiNail

v3.4.0

Compare Source

Enhancements

  • #​9294 New plugin: subtitle
  • #​9277 Apply maxTicksLimit to grid when ticks are hidden
  • #​9286 Fix: Don't use clip/unclipArea when `clip: false`
  • #​9262 Docs: Add copy button to code blocks
  • #​9208 Bar width and height are always defined regardless of orientation

Bugs Fixed

  • #​9290 Legend: fix layout padding handling
  • #​9291 Bar: ignore not-grouped bars from group bar count
  • #​9287 Filler: skip NaN points from end of segment
  • #​9261 Fix updating of active elements
  • #​9260 Replace [...set] with Array.from(set)
  • #​9252 `null` or `undefined` should skip grid lines in the time scale
  • #​9199 Fix rtl legend text alignment
  • #​9191 Tick backdrop padding is not scriptable

Types

  • #​9318 fix typings
  • #​9317 Change callback name in typing and documentation
  • #​9292 resolve auto register typescript failure
  • #​9284 added fill type to line in options object and to radar dataset options
  • #​9263 Fix type definitions and docs for `getPixelForValue`
  • #​9226 Add missing types to legend

Documentation

  • #​9319 Clarify how to import and use the helper functions with bundlers
  • #​9318 fix typings
  • #​9317 Change callback name in typing and documentation
  • #​9315 Fix broken link in scatter chart doc
  • #​9296 Docs: describe catching events with plugin
  • #​9263 Fix type definitions and docs for `getPixelForValue`
  • #​9262 Docs: Add copy button to code blocks
  • #​9237 Docs: fix broken and inconsistent links
  • #​9228 Fix broken guidelines url in PR template
  • #​9219 Update custom legend onClick example
  • #​9207 Add explanation on how to run the samples locally

Development

  • #​9322 Bump to version 3.4.0
  • #​9276 Refactor radialLinear scale and renderText helper

Thanks to @​DPS0340, @​LeeLenaleee, @​akeinhell, @​benlumley, @​etimberg, @​joshkel and @​kurkle

v3.3.2

Compare Source

Bugs Fixed

  • #​9187 Make sure data is parsed before updateElements
  • #​9183 Fix error when swapping dataset locations

Development

Thanks to @​kurkle

v3.3.1

Compare Source

Bugs Fixed

  • #​9181 Linear: Respect bounds option in tick generation
  • #​9172 Add declaration for Decimation plugin
  • #​9170 Fix clearStacks with custom scaleId
  • #​9171 Ignore items outside chart area for interaction
  • #​9153 Stop mutating arc state while drawing
  • #​9152 Fix: Arc getCenterPoint when full circle

Types

  • #​9172 Add declaration for Decimation plugin

Documentation

  • #​9173 Add documentation about default scales
  • #​9168 Update pointstyle type and default value
  • #​9160 show the utils file in the samples page to clarify what the functions do

Development

Thanks to @​LeeLenaleee, @​etimberg and @​kurkle

v3.3.0

Compare Source

Enhancements

  • #​9084 Support monotone cubic interpolation for vertical line charts
  • #​9088 Fix element reset animations in vertical line and bubble charts
  • #​9020 Add includeBounds option for cartesian ticks

Bugs Fixed

  • #​9129 Further improve linear tick collision estimation
  • #​9122 Show correct decimal places when using count but `min` is not an integer
  • #​9118 Fix arc offset calculation
  • #​9120 Fix animations when data is replaced
  • #​9121 Fix doughnut rotation on float edge cases
  • #​9105 Delay data to elements synchronization to update
  • #​9101 Make sure context indices are up to date
  • #​9062 Fix setting options in array of objects
  • #​9067 Fix polar area tooltip item label
  • #​9060 add derived axis default values
  • #​9050 Fix detecting changed events
  • #​9015 Round canvas.style dimensions to avoid blurring
  • #​9046 Types: Export DecimationAlgorithm as const
  • #​9045 Allow scale to auto-adjust it's min when stacked
  • #​9042 Fix line segments with alignToPixel
  • #​9027 Fix: Avoid negative layout dimensions

Types

  • #​9124 Correctly extend ExtendedPlugin interface
  • #​9123 Add missing props to ChartArea type
  • #​9046 Types: Export DecimationAlgorithm as const

Documentation

  • #​9147 Improved error message when no date adapter provided
  • #​9146 Fix scales option in example
  • #​9126 Add attribute to custom legend onclick sample
  • #​9115 Add documentation note about only styling the parent div
  • #​9111 remove double sentence and adjust scale to scales.r
  • #​9044 HTML legend handles doughnut/pie charts
  • #​9030 fix typo on api.md
  • #​9024 Docs update file location pointers

Development

Thanks to @​Flupp, @​LeeLenaleee, @​esuEichi, @​etimberg, @​jonrimmer, @​joshkel, @​kurkle, @​nagix and @​sylhare

v3.2.1

Compare Source

Bugs Fixed

  • #​9012 Enable scriptable element chart options
  • #​9008 Fix for enabling monotone cubicInterpolationMode when tension is 0
  • #​8995 Ignore truncated pixels in bar width calculation
  • #​8983 Improve linear tick generators collision estimation

Types

  • #​9012 Enable scriptable element chart options
  • #​9010 Add test for DecimationAlgorithm type

Documentation

  • #​9011 Add documentation on tooltip xAlign and yAlign

Development

Thanks to @​etimberg, @​kurkle and @​nagix

v3.2.0

Compare Source

Enhancements

  • #​8973 Add drawTime: beforeDraw option to filler
  • #​8941 Only enable the bar borderRadius at the end of the stacks
  • #​8936 Scale: draw border on separate layer after grid
  • #​8931 Cartesian scale tick backdrop
  • #​8926 Add `initial` property to animation callbacks

Performance

  • #​8933 Time: cache options needed by parse

Bugs Fixed

  • #​8972 Fix skipNull for subsequent datasets
  • #​8934 Fix for allowing parsing:false with stacks
  • #​8928 Allow the events option to be changed at runtime

Types

Documentation

  • #​8971 In html tooltip sample padding is read from the options
  • #​8942 Add example plugins for border and quadrants

Development

Thanks to @​TinfoilPancakes, @​etimberg and @​kurkle

v3.1.1

Compare Source

Performance

  • #​8898 Do not redraw endlessly on mouse move

Bugs Fixed

  • #​8919 Fix: Fill vertical lines
  • #​8913 Scale: Make sure grace is applied only once
  • #​8918 Fix: Initialize data object when replaced
  • #​8914 Skip ticks by callback value as documented
  • #​8911 Fix: don't draw segments out of bounds
  • #​8898 Do not redraw endlessly on mouse move
  • #​8883 Setting correct decimated values when below threshold
  • #​8882 Update @​simonbrunel/vuepress-plugin-versions

Types

  • #​8909 Fix tooltip positioners and scriptable signature
  • #​8891 add number, null and undefined as valid return types

Documentation

  • #​8910 Fix minor issues in docs
  • #​8907 Fix javascript syntax error in docs/general/padding.md
  • #​8904 Update v3-migration.md
  • #​8887 Docs: Update version menu title
  • #​8882 Update @​simonbrunel/vuepress-plugin-versions

Development

Thanks to @​DaaGER, @​LeeLenaleee, @​Nico-DF, @​etimberg and @​kurkle

v3.1.0

Compare Source

  • #​8856 Update dependencies (excluding typescript)
  • #​8843 Filtering data before decimation

Enhancements

  • #​8876 Enable event filtering per plugin
  • #​8875 Legend boxes support borderRadius
  • #​8874 Tooltip colorbox supports configurable borderWidth, borderRadius, and dash effect
  • #​8867 Support mirror option on x-axis
  • #​8864 Filler: support segment backgroundColor
  • #​8844 Allow styling of line segments
  • #​8839 Apply scale context to ticks scriptable options instead of chart context
  • #​8823 Dissociate border options from grid options

Bugs Fixed

  • #​8794 Limit onHover to chartArea
  • #​8877 Font: validate style, move defaults to `weight`
  • #​8872 Handle animating stacked bars from null values
  • #​8867 Support mirror option on x-axis
  • #​8868 Consider dynamically positioned scales for padding
  • #​8838 _boundSegments did not work on rising line
  • #​8832 Fix: update line options on resize, for gradients
  • #​8822 Time: Use callback helper on ticks.callback

Types

  • #​8847 Include `grace` in LinearScaleOptions type definition

Documentation

  • #​8866 Add version menu in documentation
  • #​8869 Document the no-parsing requirement of decimation
  • #​8863 Docs/broken link
  • #​8850 Docs migration register options
  • #​8837 Fix typos in canvas-background.md
  • #​8836 Fix typo in migration guide
  • #​8829 complete the first 'getting-started' example
  • #​8828 Document plugin event handling

Development

Thanks to @​LeeLenaleee, @​MosesMendoza, @​Nico-DF, @​etimberg, @​kurkle, @​m-ahmadi, @​mjcross and @​stockiNail

v3.0.2

Compare Source

Bugs Fixed

  • #​8811 Fix: tick spacing when min=0 | niceMin or max=0
  • #​8801 Correct decimation plugin documentation
  • #​8793 Logarithmic: handle null/NaN values

Documentation

  • #​8791 Docs small update
  • #​8803 Update documentation for getElementsAtEventForMode
  • #​8801 Correct decimation plugin documentation
  • #​8798 Update ticks.callback documentation

Thanks to @​LeeLenaleee, @​etimberg and @​kurkle

v3.0.1

Compare Source

Bugs Fixed

  • #​8789 Patch: option scope might not be an object

Thanks to @​kurkle

v3.0.0

Compare Source

Bugs Fixed

  • #​8787 Proxy: make sure set value ends up in first scope
  • #​8782 Fix tooltip align & external types

Types

  • #​8782 Fix tooltip align & external types

Documentation

  • #​8693 Update readme links and bug issue template
  • #​8788 Tweak redirect urls
  • #​8785 Vuepress HTML redirect for samples folder
  • #​8786 Adds scriptable column to options table in the title documentation
  • #​8784 Add vuepress-plugin-flexsearch
  • #​8783 Redirect to first sample
  • #​8780 Make samples more inline with eachother

Development

Included pre-releases

Thanks to @​LeeLenaleee, @​etimberg, @​kurkle and @​stockiNail

v2.9.4

Compare Source

This is the last release of v2 and focused on fixing bugs identified in the v2.9.3 release.

Bugs Fixed

v2.9.3

Compare Source

Bug Fixes

  • #​6698 Fix undefined variable
  • #​6719 Don't make legend empty when fill is false

Thanks to the maintainers and collaborators for their help to improve and test Chart.js (@​kurkle, @​benmccann, and @​etimberg).

v2.9.2

Compare Source

Bug Fixes

  • #​6641 IE11 & Edge compatible style injection
  • #​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

Performance

  • #​6671 Stop unnecessary line calculations

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

Compare Source

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

Compare Source

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
  • #​5999 Implement per-dataset type (default and per-chart) options
  • #​6097 Specify time scale min and max 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 in tickFormatFunction
  • #​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 and ticks.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 add pointLabels.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 and fill. 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 in update
  • #​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).

v2.8.0: Version 2.8.0

Compare Source

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

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

v2.7.3: Version 2.7.3

Compare Source

Documentation: http://www.chartjs.org/docs/2.7.3/

Enhancements

Issues Fixed

Documentation

Development

More details in the release PR: #​5732

v2.7.2: Version 2.7.2

Compare Source

Documentation: http://www.chartjs.org/docs/2.7.2/

Enhancements

Issues Fixed

Documentation

Development

More details in the release PR: #​5145

v2.7.1: Version 2.7.1

Compare Source

2.7.1 is a bug fix release and also includes numerous documentation improvements

Documentation: http://www.chartjs.org/docs/2.7.1/

Enhancements

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 and inherits helpers
  • #​4840 Fixed tooltip reset

Documentation

Development

More details in the release PR: #​4876

v2.7.0: Version 2.7.0

Compare Source

Version 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 the aspectRatio: 1 option to restore the previous behaviour.

Deprecations

  • #​4401 Deprecated time scale unitStepSize, use stepSize instead.

New Features

Enhancements

Issues Fixed

Documentation

Development

More details in the release PR: #​4706

v2.6.0: Version 2.6.0

Compare Source

Version 2.6 brings better stability, improved documentation, and powerful new features to Chart.js. It's now possible to create advanced area chart thanks to a new filler plugin: stacked area charts can now fill to another dataset in a configurable manner. Check out the samples to see the all the new options.

The time scale internals have been rewritten, improving performance by reducing the number of operations on each tick value. These changes also fixed a number of time scale related issues that users have been experiencing.

Our new documentation has been rewritten using GitBook and reorganized into smaller topics to improve clarity and allow topics to be more intuitively found. The online documentation is now organized by release version going forward: http://www.chartjs.org/docs/{version}/.

Breaking Changes

  • #​3782 The lineArc setting for the radial linear scale has been removed and replaced by gridLines.circular and pointLabels.display.
  • #​4044 The bar controller internals has been refactored, therefore custom chart types that extend from the bar controller will need to be updated. More details can be found in this PR.

Deprecations

  • #​3839 Chart.chart has been merged in Chart.
  • #​3839 Chart.Controller has been merged in Chart.
  • #​3959 Chart.Animation.animationObject has been merged in Chart.Animation.
  • #​3959 Chart.Animation.chartInstance has been removed, use Chart.Animation.chart instead.
  • #​4008 'zero', 'top', 'bottom' fill modes has been replaced by 'origin', 'start', 'end'.

New Features

Enhancements

  • #​2043 Added documentation for high performance charting.
  • #​2325 Updated documentation for extending chart types.
  • #​2362 Added documentation for multi-chart and multi-axis.
  • #​2386 Updated documentation for custom tooltips implementation.
  • #​3274, #​3299 Improved documentation on axis range settings.
  • #​3662 Added documentation for extending scales.
  • #​3751 Documentation has been fully rewritten and is now based on Gitbook.
  • #​3826 Improved performance for time scale label parsing. Thanks @​tredston.
  • #​3893 Improved axis default positions so that x axes default to bottom and y axes default to left.
  • #​3897 Chart data can now be entirely replaced using chart.data = {...}.
  • #​3960 Improved element transitioning by removing color exceptions.
  • #​4034 Tooltips with no content are not anymore drawn. Thanks @​samueljo
  • #​4043, #​4153 Added a showcase page for samples.
  • #​4078 Added a better error message when the chart type is incorrect.
  • #​3914 Time scale internals improved to be simpler and more efficient. Thanks @​tredston
  • #​4166 Enhanced the responsive documentation.
  • #​4167 Made it clear that labels need to be specified when using a category axis on a line chart.
  • #​4170 Added documentation for updating data.
  • #​4178 Reorganize extension docs. Thanks @​benmccann
  • #​4183 Removed unnecessary variable. Thanks @​benmccann

Issues Fixed

  • #​2481 chart instanceof Chart now returns true.
  • #​3118 Fixed documentation for scatter chart.
  • #​3237 Fixed getElementAtEvent() return type documentation.
  • #​3490 Added documentation for axes autoSkipPadding option.
  • #​3585 Fixed stacked bar charts with log axes.
  • #​3792 Fixed stacked bar displaying NaN when all datasets are hidden. Thanks @​Jareechang
  • #​3842 Removed trailing ':' in tooltip label when dataset label is undefined.
  • #​3856 Tooltip callbacks were called on mouse move even if data did not change. Thanks @​Jareechang
  • #​3883 Fixed deprecated Chart.PluginBase definition.
  • #​3860 Correctly handle decimal canvas display size.
  • #​3899 Grouped bars that are not stacked are now displayed correctly. Thanks @​potatopeelings
  • #​3909 Avoid fails from server-side renderings. Thanks @​khorolets
  • #​3911 Fixed missing onComplete animation argument and updated associated doc.
  • #​3945 Fixed use of native reserved keyword as a parameter name.
  • #​3960 Fixed element initial implicit transition.
  • #​4032 Radar chart are now centered horizontally. Thanks @​shirosaki
  • #​4039 Fixed line-customTooltips.html example scroll offset. Thanks @​el-ee
  • #​4062 Fixed misplaced data points on category scale. Thanks @​martinzuern
  • #​4064 Fixed scale min and max when dataset contains no values. Thanks @​GabrielMancik
  • #​4086 Fixed pointRadius and pointHitRadius config for radar charts.
  • #​4100 Updated the documentation bar chart example to begin at zero.
  • #​4105 Ensured that scale width cannot be greater than maxWidth. Thanks @​tredston
  • #​4140 Fixed shorthand legend: false and title: false.
  • #​4149, #​4155 Fixed and merged contributing documentation. Thanks @​benmccann
  • #​4165 Fixed failing instanceof when reading context from iframe or a protected environment.
  • #​4192 Fixed legend and title layout options update.
  • #​4254 Fixed images being used as a pointStyle not rendering at custom dimensions

Development

  • #​3839 Added unit tests for deprecations.
  • #​3986 Cleaned up and upgraded unit tests environment.
  • #​3988 Introduced unit test based on image comparison.
  • #​4075 Refactored gulp coverage task in gulp unittest --coverage.
  • #​4076 Moved legend and title in the plugins folder.
  • #​4222 Removed executable bit from js files. Thanks @​benmccann

More details in the release PR: #​4236

v2.5.0: Version 2.5.0

Compare Source

Version 2.5 brings some exciting new features to Chart.js. Now, configuration options can be updated at runtime (with some exceptions) just by changing the chart.config.options object and calling chart.update().

More powerful plugins that can be added to an individual chart (instead of globally), but also disabled on a per chart basis. This gives you fine grained control over when plugins interact with your charts. The plugins were changed to support cancelling actions by returning false from any before* plugin calls.

Two new extensions have been added: beforeEvent and afterEvent, respectively called before and after the chart responds to an input event such as a mousemove or a click. The plugin is passed a wrapped version of the event, that implements IEvent.

Breaking Changes

  • #​3570 Removed unused Chart.helpers.cancelAnimFrame method.
  • #​3669 onHover callback now has 3 parameters. The 2nd parameter is the event that triggered the hover. This was done for consistency with the onClick callback.

Deprecations

  • #​3819 IPlugin.afterScaleUpdate: use IPlugin.afterLayout hook instead.
  • #​3819 Extending Chart.PlugingBase is not anymore required and is strongly discouraged, instead create/register plugins using plain JavaScript objects (see this example).

New Features

Enhancements

Issues Fixed

  • #​2478 Large x axis labels created odd gaps in the chart
  • #​2780 Bar chart when data is 0. Thanks @​KoyoSE
  • #​2879, #​3354 Rotated labels caused issues on the category axis
  • #​3141 Axis width incorrectly used ticks.padding option when measuring
  • #​3199 Line Chart border width of 0 was ignored.
  • #​3412 Long y axis tick text was cutoff
  • #​3381 Infinite loop when in certain cases when generating logarithmic ticks.
  • #​3387 Fixed legend text alignment
  • #​3408 Monotone cubic interpolation broke when two adjacent points had the same x value
  • #​3528 null data caused incorrect tooltips for the time scale. Thanks @​Jareechang
  • #​3585 Logarithmic stacked bar charts don't draw the first dataset
  • #​3589 Wrong category size of bars when x axis has min and max options. Thanks @​KoyoSE
  • #​3591 Correct radar chart tension settings
  • #​3592 Correct radar chart documentation name for point radius setting
  • #​3603 Fix crash in dataset interaction mode
  • #​3605 Documentation for x-axis interaction mode was incorrect. Thanks @​weareoutman
  • #​3607 Correct link in animation section of documentation. Thanks @​38elements
  • #​3618 Tooltip label is incorrect on Bar chart when min is defined. Thanks @​KoyoSE
  • #​3685 bug when calculating if steps fit into scale as a whole number. Thanks @​Tarqwyn
  • #​3713 Axis label was cutoff when axis was at top of chart. Thanks @​KoyoSE
  • #​3717 Removed jQuery code from samples. Thanks @​KoyoSE
  • #​3739 Incorrect use of animation options in doughnut chart docs. Thanks @​NtsDK
  • #​3741 Axis labels placed incorrectly when axis is at the top of the chart. Thanks @​KoyoSE
  • #​3763 Pie charts incorrectly calculated the inner radius when cutout percentage was 0.
  • #​3772 Fix incorrect anchor link in docs. Thanks @​mdewilde
  • #​3788 Fixed docs for using Chart.js with CommonJS and ES6 imports. Thanks @​Jareechang
  • #​3801 Ignore .gitignore file for Bower

Development

  • #​3610 Updated documentation for plugin renames. Thanks @​compwright
  • #​3635 Upgrade to gulp-uglify v2.0.0 to improve build speed. Thanks @​jeffcarey
  • #​3718, #​3795 Refactoring to move platform specific code into it's own module. The ultimate goal is to allow builds for non browser platforms

More details in the release PR: #​3840

v2.4.0: Version 2.4.0

Compare Source

This version focuses on improving the interactivity of Chart.js. We have new and improved modes for interacting with the graph. For instance, you can now highlight the nearest item easily. It is also easy to define your own tooltip modes with a few simple functions. See all the new modes in the docs. Data animations when adding and removing data have been improved: points now animate in cleanly by default.

Breaking Changes

  • #​3356 The default aspect ratio is now correctly applied, meaning that polar, doughnut and radar charts are now rendered with an aspect ratio of 1 (square). The old behavior can be obtained by globally changing the default aspectRatio for each chart type (e.g. Chart.defaults.doughnut.aspectRatio = 2).

New Features

  • #​3201 Expose data points info for custom tooltip. Thanks @​bydooweedoo
  • #​3400 New tooltip and hover interaction modes.
  • #​3411 New displayColors option to turn off tooltip color boxes.
  • #​3453 New tooltip average and nearest positioning modes.
  • #​3460 New line chart fill modes.
  • #​3472 Add new caretX and caretY properties to tooltip point.
  • #​3474 Charts can now be created from the canvas id.
  • #​3476 Layout service now supports configurable padding.
  • #​3477 New method to reset() the chart to its initial state.
  • #​3494 New tooltips.filter option to filter tooltip items.

Enhancements

  • #​3281 Better number formatting for the radial linear scale.
  • #​3326 Make charts vertically responsive.
  • #​3364 Inject iframe for responsive charts only.
  • #​3399 Better animation when adding or removing data.
  • #​3400 Improve tooltip and hover Interactions.
  • #​3411 Display tooltip color boxes for all tooltips.
  • #​3417 Expose the drawBackground tooltip method. Thanks @​mjeanroy
  • #​3468 Bar chart performance improvements.
  • #​3504 Reorganize, cleanup and enhance samples.
  • Update installation instructions in README.

Issues Fixed

  • #​3133 Skip non finite data points when determining scale sizes. Thanks @​bcongdon
  • #​3323 Fix the legend drawing when labels.usePointStyle is true.
  • #​3324 Compute correct tooltip size when there is no title present.
  • #​3325 Specifically handle multiline strings for doughnut charts.
  • #​3341 Fix scale documentation.
  • #​3356 Fix initial aspect ratio when not responsive.
  • #​3356 Fix radar default aspect ratio and samples.
  • #​3357 Fix documentation typos. Thanks @​kant
  • #​3358 Fix title overflow by using maxWidth fillText() argument. Thanks @​dylan-kerr
  • #​3361 Fix HTML legend string for polar area charts to match doughnut charts.
  • #​3409 Generate ticks using only min, max and stepSize when all specified. Thanks @​fewstera
  • #​3421 Fix bubble chart tooltip callback to use correct labels.
  • #​3443 Properly merge colors for the tooltip labels.
  • #​3444 Fix documentation comparison table "check" character. Thanks @​tiesont
  • #​3446 Fix tooltip caret position.
  • #​3450 Fix options.events option merging.
  • #​3474 Prevent exception when an invalid canvas/context/id is provided.
  • #​3490 Add missing tick autoSkipPadding option documentation. Thanks @​bretjb
  • #​3516 Fix a documentation typo. Thanks @​varatep
  • #​3522 Fix code and documentation typos. Thanks @​jsoref
  • #​3527 Fix iframe resize handler when re-attached to DOM.
  • Move reverse option for labels to correct section in docs.

Development

More details in the release PR: #​3551

v2.3.0: Version 2.3.0

Compare Source

This version adds back native bower support. We were able to get a name that matches in case with npm. bower install chart.js. Huge props to @​simonbrunel for getting our build system working and fully automated.

New Features

  • Support a minimum unit on the time scale. Set time.minUnit to one of the time scale units to use. #​3254 Thanks @​ianks

Issues Fixed

Development

More details in the release PR: #​3321

v2.2.2: Version 2.2.2

Compare Source

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

v2.2.1: Version 2.2.1

Compare Source

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

v2.2.0: Version 2.2.0

Compare Source

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

v2.1.6: Version 2.1.6

Compare Source

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

v2.1.5: Version 2.1.5

Compare Source

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

v2.1.4: Version 2.1.4

Compare Source

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

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

v2.1.3: Version 2.1.3

Compare Source

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

v2.1.2: Version 2.1.2

Compare Source

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)

v2.1.1: Version 2.1.1

Compare Source

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

v2.1.0: Version 2.1.0

Compare Source

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.

v2.0.2: Version 2.0.2

Compare Source

The release of Chart.js 2.0.2 provides a few new enhancements . Documentation is available at http://nnnick.github.io/Chart.js/docs-v2/

Enhancements

  • Added rotation and circumference properties to doughnut/pie charts (See #​2271)
  • Better default settings for tick rotation for better space utilization and legibility

v2.0.1: Version 2.0.1

Compare Source

The release of Chart.js 2.0.1 consists of mostly bug fixes. Documentation is available at http://nnnick.github.io/Chart.js/docs-v2/

Enhancements

Fixed Issues

  • Better documentation of point radius setting. Thanks @​jamiepenney
  • Incorrect string measurements when the scale callback returned null or undefined
  • Incorrect main file path in package.json. Thanks @​troywarr
  • Incorrect HTML legend generation. Thanks @​dibsyjr1

v2.0.0: Version 2.0.0

Compare Source

The release of Chart.js 2.0.0 adds many new features over version 1. Documentation is available at http://nnnick.github.io/Chart.js/docs-v2/

Major new features

  • Charts that combine visual types such as bars and lines
  • Chart titles
  • Built-in legends that are interactive by default
  • New scale types including native logarithmic and time/date support
  • Multiple X and Y axes are supported
  • Stacked bar and area charts
  • Tooltip customization
  • Enhanced ability to modify the chart data dynamically.
  • Generic layout system for placing objects on the canvas
  • Controllers for each dataset that are easy to extend

Features since 2.0.0-beta2

  • Allow setting the number of tick marks using ticks.maxTicksLimit (#​1859) Thanks @​morleyzhi
  • Performance improvements when charts have a lot of data (#​1882). Big thanks to @​mathiask88
  • Allow custom point styles including any canvas image object. (#​1905). Thanks @​mathiask88
  • Improved test coverage for dataset controllers
  • Added global default font options to customize all fonts at once
  • Added ticks.stepSize to the linear scale. Allows setting a fixed delta between tick marks . (#​1978). Thanks @​roben
  • Added browserify build. dist folder now has bundled versions that include moment.js (#​2007) Thanks @​tannerlinsley
  • Updated all sample files to consistent style (#​2018). Big thanks to @​hamalaiv
  • Allow the time scale to use multiples of the base units (second, minute, etc). (#​2101)
  • Exposed xAlign and yAlign options for tooltips. (#​2116). Thanks @​100000001
  • Clip chart objects outside of chart area in preparation for zoom and pan support. #​2209
  • Added ticks.min and ticks.max support to the category scale. The value of these settings must be something in the data.labels array. #​2209
  • Allow percentages as max-width and max-height styles on parent container (#​2081)

Bug fixes since 2.0.0-beta2

  • Draw borders at edge of scales (#​1740)
  • Improved scale fitting (#​1766)
  • Prevent flickering of bars that represent NaN data (#​1822)
  • Add suggestedMin, suggestedMax, min, and max options to radial linear scale (#​1461)
  • Better support for stacking bars correctly (#​1862)
  • Don't use undefined axis constructors (#​1871)
  • Allow drawing a line chart with points on (#​1882). Thanks @​mathiask88
  • First and last ticks are always shown on the axis. (#​1884)
  • Fixed an issue with undefined functions when trying to align tooltips. (#​1891). Thanks @​davis
  • Fixed an issue with numerical error on the linear axis (#​1890)
  • Fixed an issue when an axis was reversed (#​1907)
  • Fixed an issue when resizing and the animation duration was 0ms. (#​1910). Thanks @​mathiask88
  • Fixed an issue where the last grid line of an axis was drawn differently. (#​1914)
  • Fixed an issue when a new dataset was added to a chart with time scales (#​1917)
  • Fixed min and max settings for time scales (#​1941)
  • Made it easier to use axis callbacks to change ticks array (#​1942)
  • Disabled auto-skipping in time scale by default (#​1962)
  • Fixed an issue with stacked bar charts (#​1963)
  • Fixed an issue where lines were not shown in combo charts (#​1971)
  • Take padding into account when calculating model coordinates from event coordinates (#​1996)
  • Fixed bar and doughnut chart animations (#​2022)
  • Fixed stacking tooltip order (#​2027). Thanks @​tannerlinsley
  • Allow the user to specify the alpha value for tooltip colours. (#​2036) Thanks @​hamalaiv
  • Fixed animation bug where tooltips did not always fade away (#​2037)
  • Allow line chart point radius to be set to 0. (#​2040)
  • Fixed on-canvas legend generation when no datasets are present (#​2070)
  • Improved custom time parsing (#​2086). Thanks @​MatthiasWinkelmann
  • Fixed an issue when reseting the page zoom to 100% (#​1904)
  • Throw an error in the time scale when created if moment is not defined. (#​2110)
  • Better support when there is no datasets object in the chart data (#​2115)
  • Fixed missing whitespace & code markup errors in documentation. (#​2125). Thanks @​The-Smallest
  • Allow borders on rectanges to be skipped (#​2128). Thanks @​The-Smallest
  • Fixed axis IDs error in documentation (#​2131)
  • Add support for v2 branch in composer.json (#​2133). Thanks @​borancar
  • Better use of default scale types (#​2154)
  • Better merging when the xAxes object is specified but the type is not (#​2157)
  • Removed unnecessary default padding (#​2173). Thanks @​niemyjski

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Update | Change | |---|---|---| | [Chart.js](http://www.chartjs.org) ([source](https://github.com/chartjs/Chart.js)) | major | `1.1.1` -> `4.5.0` | --- ### Release Notes <details> <summary>chartjs/Chart.js (Chart.js)</summary> ### [`v4.5.0`](https://github.com/chartjs/Chart.js/releases/tag/v4.5.0) [Compare Source](https://github.com/chartjs/Chart.js/compare/v4.4.1...v4.5.0) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/4.5.0/migration/v4-migration.html) - [Docs](https://www.chartjs.org/docs/4.5.0/) - [API](https://www.chartjs.org/docs/4.5.0/api/) - [Samples](https://www.chartjs.org/docs/4.5.0/samples/information.html) #### Enhancements - [#&#8203;11470](https://github.com/chartjs/Chart.js/issues/11470) Fix min js two renames - [#&#8203;12054](https://github.com/chartjs/Chart.js/issues/12054) \[fix] #<!---->12048 - Add selfJoin option for doughnut graphs - [#&#8203;12058](https://github.com/chartjs/Chart.js/issues/12058) feature: make above/below colors in filler plugin work with pivoted line charts #### Bugs Fixed - [#&#8203;12070](https://github.com/chartjs/Chart.js/issues/12070) Fix: display stacked bar with multiple x-Axis #### Types - [#&#8203;12064](https://github.com/chartjs/Chart.js/issues/12064) Document requirement of 'this' when calling tick formatters - [#&#8203;12063](https://github.com/chartjs/Chart.js/issues/12063) Add type definition for beforeEvent changed #### Documentation - [#&#8203;12088](https://github.com/chartjs/Chart.js/issues/12088) Fix grammar typo: 'only draw line' -> 'only draw lines' - [#&#8203;12087](https://github.com/chartjs/Chart.js/issues/12087) Fix minified URL for development builds in the docs - [#&#8203;12084](https://github.com/chartjs/Chart.js/issues/12084) fix: correct grammar in segment comments (an segment -> a segment) - [#&#8203;12082](https://github.com/chartjs/Chart.js/issues/12082) Update docs for Developers API - [#&#8203;12068](https://github.com/chartjs/Chart.js/issues/12068) Fix minor typo, missing period #### Development - [#&#8203;12090](https://github.com/chartjs/Chart.js/issues/12090) bump version to 4.5.0 - [#&#8203;12025](https://github.com/chartjs/Chart.js/issues/12025) Bump pnpm/action-setup from 4.0.0 to 4.1.0 Thanks to [@&#8203;FabTechAT](https://github.com/FabTechAT), [@&#8203;Jee-on](https://github.com/Jee-on), [@&#8203;LeeLenaleee](https://github.com/LeeLenaleee), [@&#8203;R2Jeu-prive](https://github.com/R2Jeu-prive), [@&#8203;dependabot](https://github.com/dependabot)\[bot], [@&#8203;ffdm](https://github.com/ffdm), [@&#8203;fulldecent](https://github.com/fulldecent), [@&#8203;joshkel](https://github.com/joshkel), [@&#8203;lucasleung8](https://github.com/lucasleung8), [@&#8203;nakanoh](https://github.com/nakanoh), [@&#8203;xavierleune](https://github.com/xavierleune) and [dependabot\[bot\]](https://github.com/apps/dependabot) ### [`v4.4.1`](https://github.com/chartjs/Chart.js/releases/tag/v4.4.1) [Compare Source](https://github.com/chartjs/Chart.js/compare/v4.4.0...v4.4.1) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/4.4.1/migration/v4-migration.html) - [Docs](https://www.chartjs.org/docs/4.4.1/) - [API](https://www.chartjs.org/docs/4.4.1/api/) - [Samples](https://www.chartjs.org/docs/4.4.1/samples/) #### Bugs Fixed - [#&#8203;11605](https://github.com/chartjs/Chart.js/issues/11605) Update font spec type - [#&#8203;11596](https://github.com/chartjs/Chart.js/issues/11596) Tooltip fixes (getLabelAndValue on null controller, null getParsed) - [#&#8203;11588](https://github.com/chartjs/Chart.js/issues/11588) fix: Guard access to window in helpers.dom.ts for browserless rendering - [#&#8203;11577](https://github.com/chartjs/Chart.js/issues/11577) Fix backdrop padding - [#&#8203;11488](https://github.com/chartjs/Chart.js/issues/11488) Change type of mode in chart.update(mode) #### Types - [#&#8203;11605](https://github.com/chartjs/Chart.js/issues/11605) Update font spec type - [#&#8203;11572](https://github.com/chartjs/Chart.js/issues/11572) fix: Property platform missing from chart configuration typings - [#&#8203;11569](https://github.com/chartjs/Chart.js/issues/11569) fix: pass Plugin TType down to hooks chart arg - [#&#8203;11488](https://github.com/chartjs/Chart.js/issues/11488) Change type of mode in chart.update(mode) #### Documentation - [#&#8203;11562](https://github.com/chartjs/Chart.js/issues/11562) Fix migration docs links - [#&#8203;11483](https://github.com/chartjs/Chart.js/issues/11483) docs: Fix typo for documentation of plugins.tooltip.textDirection #### Development - [#&#8203;11606](https://github.com/chartjs/Chart.js/issues/11606) Bump 4.4.1 - [#&#8203;11599](https://github.com/chartjs/Chart.js/issues/11599) Remove size limit from CI - [#&#8203;11570](https://github.com/chartjs/Chart.js/issues/11570) Replace deprecated command with environment file - [#&#8203;11560](https://github.com/chartjs/Chart.js/issues/11560) Bump actions/setup-node from 3 to 4 - [#&#8203;11490](https://github.com/chartjs/Chart.js/issues/11490) fix: simplify check hasFunction Thanks to [@&#8203;CatchABus](https://github.com/CatchABus), [@&#8203;Cazka](https://github.com/Cazka), [@&#8203;Connormiha](https://github.com/Connormiha), [@&#8203;LeeLenaleee](https://github.com/LeeLenaleee), [@&#8203;Sengulair](https://github.com/Sengulair), [@&#8203;bboy-chocomint](https://github.com/bboy-chocomint), [@&#8203;dependabot](https://github.com/dependabot), [@&#8203;dependabot](https://github.com/dependabot)\[bot], [@&#8203;jongwooo](https://github.com/jongwooo), [@&#8203;joshkel](https://github.com/joshkel) and [@&#8203;unverbraucht](https://github.com/unverbraucht) ### [`v4.4.0`](https://github.com/chartjs/Chart.js/releases/tag/v4.4.0) [Compare Source](https://github.com/chartjs/Chart.js/compare/v4.3.3...v4.4.0) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/4.4.0/migration/v4-migration.html) - [Docs](https://www.chartjs.org/docs/4.4.0/) - [API](https://www.chartjs.org/docs/4.4.0/api/) - [Samples](https://www.chartjs.org/docs/4.4.0/samples/) #### Enhancements - [#&#8203;11404](https://github.com/chartjs/Chart.js/issues/11404) Add clip option to scale configuration to allow unclipped scales #### Bugs Fixed - [#&#8203;11435](https://github.com/chartjs/Chart.js/issues/11435) BorderRadius of Bar Chart issue on Firefox 116 #### Types - [#&#8203;11348](https://github.com/chartjs/Chart.js/issues/11348) fix: Add backgroundColor type on CoreScaleOptions #### Documentation - [#&#8203;11439](https://github.com/chartjs/Chart.js/issues/11439) Replace html extension with md extension for docs #### Development - [#&#8203;11461](https://github.com/chartjs/Chart.js/issues/11461) Bump 4.4.0 Thanks to [@&#8203;LeeLenaleee](https://github.com/LeeLenaleee), [@&#8203;Mer-cat](https://github.com/Mer-cat), [@&#8203;bogdankorshunov](https://github.com/bogdankorshunov) and [@&#8203;stockiNail](https://github.com/stockiNail) ### [`v4.3.3`](https://github.com/chartjs/Chart.js/releases/tag/v4.3.3) [Compare Source](https://github.com/chartjs/Chart.js/compare/v4.3.2...v4.3.3) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/4.3.3/migration/v4-migration.html) - [Docs](https://www.chartjs.org/docs/4.3.3/) - [API](https://www.chartjs.org/docs/4.3.3/api/) - [Samples](https://www.chartjs.org/docs/4.3.3/samples/) * [#&#8203;11432](https://github.com/chartjs/Chart.js/issues/11432) Revert fix for monotone cubic interpolation #### Development - [#&#8203;11427](https://github.com/chartjs/Chart.js/issues/11427) Bump pnpm/action-setup from 2.2.4 to 2.4.0 Thanks to [@&#8203;dependabot](https://github.com/dependabot), [@&#8203;dependabot](https://github.com/dependabot)\[bot] and [@&#8203;stockiNail](https://github.com/stockiNail) ### [`v4.3.2`](https://github.com/chartjs/Chart.js/releases/tag/v4.3.2) [Compare Source](https://github.com/chartjs/Chart.js/compare/v4.3.1...v4.3.2) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/4.3.2/migration/v4-migration.html) - [Docs](https://www.chartjs.org/docs/4.3.2/) - [API](https://www.chartjs.org/docs/4.3.2/api/) - [Samples](https://www.chartjs.org/docs/4.3.2/samples/) #### Types - [#&#8203;11422](https://github.com/chartjs/Chart.js/issues/11422) Revert feature to disable plugins by TS - [#&#8203;11419](https://github.com/chartjs/Chart.js/issues/11419) Updates to scale type definitions #### Development - [#&#8203;11423](https://github.com/chartjs/Chart.js/issues/11423) Bump 4.3.2 Thanks to [@&#8203;LeeLenaleee](https://github.com/LeeLenaleee), [@&#8203;joshkel](https://github.com/joshkel) and [@&#8203;stockiNail](https://github.com/stockiNail) ### [`v4.3.1`](https://github.com/chartjs/Chart.js/releases/tag/v4.3.1) [Compare Source](https://github.com/chartjs/Chart.js/compare/v4.3.0...v4.3.1) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/4.3.1/migration/v4-migration.html) - [Docs](https://www.chartjs.org/docs/4.3.1/) - [API](https://www.chartjs.org/docs/4.3.1/api/) - [Samples](https://www.chartjs.org/docs/4.3.1/samples/) * [#&#8203;11417](https://github.com/chartjs/Chart.js/issues/11417) Bump 4.3.1 * [#&#8203;11330](https://github.com/chartjs/Chart.js/issues/11330) \[docs] HTML Legend sample: add flex-shrink: 0 to color box #### Bugs Fixed - [#&#8203;11377](https://github.com/chartjs/Chart.js/issues/11377) Fix curve path if scale limits are set for line chart - [#&#8203;11388](https://github.com/chartjs/Chart.js/issues/11388) Fix time series scale to have each data point is spread equidistant - [#&#8203;11352](https://github.com/chartjs/Chart.js/issues/11352) Fix mismatch between hit boxes and drawn items in legend plugin - [#&#8203;11346](https://github.com/chartjs/Chart.js/issues/11346) Add text stoke radial linear scale - [#&#8203;11334](https://github.com/chartjs/Chart.js/issues/11334) Fix toggling showLine option on scatter controller #### Types - [#&#8203;11403](https://github.com/chartjs/Chart.js/issues/11403) Add missing feature for disabling plugins in TyeScript - [#&#8203;11396](https://github.com/chartjs/Chart.js/issues/11396) Fix type of tickBorderDash in GridLineOptions - [#&#8203;11187](https://github.com/chartjs/Chart.js/issues/11187) Split the TimeScaleOptions type into composable sub types - [#&#8203;11383](https://github.com/chartjs/Chart.js/issues/11383) fix: add pointStyleWidth to type definitions - [#&#8203;11358](https://github.com/chartjs/Chart.js/issues/11358) Add \`beforeDraw\` to drawtime type - [#&#8203;11350](https://github.com/chartjs/Chart.js/issues/11350) Add events property to Plugin defined type - [#&#8203;11309](https://github.com/chartjs/Chart.js/issues/11309) Export explicitly the plugin options definition which is augmented by plugins implementation #### Documentation - [#&#8203;11345](https://github.com/chartjs/Chart.js/issues/11345) Clarify update docs - [#&#8203;11324](https://github.com/chartjs/Chart.js/issues/11324) Refined grammar and updated overall .md documentation files - [#&#8203;11322](https://github.com/chartjs/Chart.js/issues/11322) minor correction of documentation for 'Grace' - [#&#8203;11284](https://github.com/chartjs/Chart.js/issues/11284) Correct tooltip dates displaying incorrectly reported in #<!---->11229 - [#&#8203;11300](https://github.com/chartjs/Chart.js/issues/11300) Expend note that chart must be in its own dedicated container #### Development - [#&#8203;11318](https://github.com/chartjs/Chart.js/issues/11318) Switch from Slack to Discord - [#&#8203;11301](https://github.com/chartjs/Chart.js/issues/11301) Update slack link - [#&#8203;11302](https://github.com/chartjs/Chart.js/issues/11302) Update size limits Thanks to [@&#8203;Frenzie](https://github.com/Frenzie), [@&#8203;LeeLenaleee](https://github.com/LeeLenaleee), [@&#8203;etimberg](https://github.com/etimberg), [@&#8203;matthewhegarty](https://github.com/matthewhegarty), [@&#8203;mukham12](https://github.com/mukham12), [@&#8203;skopz356](https://github.com/skopz356) and [@&#8203;stockiNail](https://github.com/stockiNail) ### [`v4.3.0`](https://github.com/chartjs/Chart.js/releases/tag/v4.3.0) [Compare Source](https://github.com/chartjs/Chart.js/compare/v4.2.1...v4.3.0) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/4.3.0/migration/v4-migration.html) - [Docs](https://www.chartjs.org/docs/4.3.0/) - [API](https://www.chartjs.org/docs/4.3.0/api/) - [Samples](https://www.chartjs.org/docs/4.3.0/samples/) * [#&#8203;11257](https://github.com/chartjs/Chart.js/issues/11257) Bump to 4.3.0 * [#&#8203;11217](https://github.com/chartjs/Chart.js/issues/11217) Enable applying of gradients and pattern on line segments * [#&#8203;11134](https://github.com/chartjs/Chart.js/issues/11134) Use custom scale defaults and dataset axis ID options to determine the axis * [#&#8203;11061](https://github.com/chartjs/Chart.js/issues/11061) fix RTL tooltip colorBox placement #### Enhancements - [#&#8203;11055](https://github.com/chartjs/Chart.js/issues/11055) Enable point labels hiding when overlapped - [#&#8203;11180](https://github.com/chartjs/Chart.js/issues/11180) Border is counted as part of ArcElement - [#&#8203;11121](https://github.com/chartjs/Chart.js/issues/11121) refactor: rewrite config helpers to ts - [#&#8203;11100](https://github.com/chartjs/Chart.js/issues/11100) refactor: rewrite canvas helpers to ts - [#&#8203;11127](https://github.com/chartjs/Chart.js/issues/11127) Add borderDash options to arc element #### Bugs Fixed - [#&#8203;11238](https://github.com/chartjs/Chart.js/issues/11238) Check for isNaN before building number formatter options - [#&#8203;11116](https://github.com/chartjs/Chart.js/issues/11116) Fix: don't generate ticks > max if max is specified #### Types - [#&#8203;11121](https://github.com/chartjs/Chart.js/issues/11121) refactor: rewrite config helpers to ts - [#&#8203;11100](https://github.com/chartjs/Chart.js/issues/11100) refactor: rewrite canvas helpers to ts - [#&#8203;11143](https://github.com/chartjs/Chart.js/issues/11143) Docs: fix tooltip model doc. #### Documentation - [#&#8203;11241](https://github.com/chartjs/Chart.js/issues/11241) Add redirect for old V3 migration guides in release notes - [#&#8203;11244](https://github.com/chartjs/Chart.js/issues/11244) Fix documentation about how to manage own custom plugin for types - [#&#8203;11220](https://github.com/chartjs/Chart.js/issues/11220) docs: Fix a few typos - [#&#8203;11154](https://github.com/chartjs/Chart.js/issues/11154) Update tooltip.md #### Development - [#&#8203;11240](https://github.com/chartjs/Chart.js/issues/11240) Add version specific urls to release template - [#&#8203;11212](https://github.com/chartjs/Chart.js/issues/11212) Update size limits - [#&#8203;11209](https://github.com/chartjs/Chart.js/issues/11209) chore: change pnpm version in engines field to be able to use 8.x.x - [#&#8203;11174](https://github.com/chartjs/Chart.js/issues/11174) Add colors plugin to size limit - [#&#8203;11165](https://github.com/chartjs/Chart.js/issues/11165) Disable canvas acceleration in Firefox 110 in test cases - [#&#8203;11145](https://github.com/chartjs/Chart.js/issues/11145) Simplify \_arrayUnique - [#&#8203;11135](https://github.com/chartjs/Chart.js/issues/11135) Change labelColors to labelColor in tooltip drawColorBox method. Thanks to [@&#8203;CodingMarco](https://github.com/CodingMarco), [@&#8203;Connormiha](https://github.com/Connormiha), [@&#8203;Demir-Utku](https://github.com/Demir-Utku), [@&#8203;LeeLenaleee](https://github.com/LeeLenaleee), [@&#8203;dangreen](https://github.com/dangreen), [@&#8203;defunctzombie](https://github.com/defunctzombie), [@&#8203;etimberg](https://github.com/etimberg), [@&#8203;leo2436](https://github.com/leo2436), [@&#8203;olenderhub](https://github.com/olenderhub), [@&#8203;shahabhm](https://github.com/shahabhm), [@&#8203;stockiNail](https://github.com/stockiNail) and [@&#8203;timgates42](https://github.com/timgates42) ### [`v4.2.1`](https://github.com/chartjs/Chart.js/releases/tag/v4.2.1) [Compare Source](https://github.com/chartjs/Chart.js/compare/v4.2.0...v4.2.1) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/migration/v4-migration.html) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) * [#&#8203;11045](https://github.com/chartjs/Chart.js/issues/11045) fix: decimation plugin data not writeable after clean #### Bugs Fixed - [#&#8203;11069](https://github.com/chartjs/Chart.js/issues/11069) Use maxTicksLimit option to calculate the labels size on ticks #### Types - [#&#8203;11102](https://github.com/chartjs/Chart.js/issues/11102) chore: #<!---->10963 revert - [#&#8203;11115](https://github.com/chartjs/Chart.js/issues/11115) Add colors plugin TS options to be configured - [#&#8203;11081](https://github.com/chartjs/Chart.js/issues/11081) fix: add bgColor type in RadialLinearScaleOptions - [#&#8203;11095](https://github.com/chartjs/Chart.js/issues/11095) 🐛 fixes compilation error when option --isolatedModules is set #### Documentation - [#&#8203;11110](https://github.com/chartjs/Chart.js/issues/11110) Remove override warning tooltips - [#&#8203;11093](https://github.com/chartjs/Chart.js/issues/11093) Remove meetup banner - [#&#8203;11077](https://github.com/chartjs/Chart.js/issues/11077) Fix documentation typo #### Development - [#&#8203;11130](https://github.com/chartjs/Chart.js/issues/11130) Bump to 4.2.1 - [#&#8203;11124](https://github.com/chartjs/Chart.js/issues/11124) Remove circumference property retrieving from arc element for center calculation because not used - [#&#8203;11113](https://github.com/chartjs/Chart.js/issues/11113) Update link to new template Thanks to [@&#8203;LeeLenaleee](https://github.com/LeeLenaleee), [@&#8203;choichoijin](https://github.com/choichoijin), [@&#8203;dangreen](https://github.com/dangreen), [@&#8203;etimberg](https://github.com/etimberg), [@&#8203;jljouannic](https://github.com/jljouannic), [@&#8203;johakr](https://github.com/johakr), [@&#8203;n1313](https://github.com/n1313) and [@&#8203;stockiNail](https://github.com/stockiNail) ### [`v4.2.0`](https://github.com/chartjs/Chart.js/releases/tag/v4.2.0) [Compare Source](https://github.com/chartjs/Chart.js/compare/v4.1.2...v4.2.0) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/migration/v4-migration.html) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) * [#&#8203;11054](https://github.com/chartjs/Chart.js/issues/11054) Add pointLabel context type documentation * [#&#8203;11043](https://github.com/chartjs/Chart.js/issues/11043) chore: Add Chart.js meetup announcement to README #### Enhancements - [#&#8203;11063](https://github.com/chartjs/Chart.js/issues/11063) Add format method to time scale to format timestamp using scale options #### Bugs Fixed - [#&#8203;11003](https://github.com/chartjs/Chart.js/issues/11003) Check colors definition in the chart options #### Types - [#&#8203;11017](https://github.com/chartjs/Chart.js/issues/11017) Change 'normal' update mode to 'default' as documented - [#&#8203;11051](https://github.com/chartjs/Chart.js/issues/11051) fix: updated type for doughnut offset #### Documentation - [#&#8203;11058](https://github.com/chartjs/Chart.js/issues/11058) Add banner to docs - [#&#8203;11057](https://github.com/chartjs/Chart.js/issues/11057) Update banner #### Development - [#&#8203;11070](https://github.com/chartjs/Chart.js/issues/11070) Bump to 4.2.0 - [#&#8203;11056](https://github.com/chartjs/Chart.js/issues/11056) Remove console.warn from a test case where not needed Thanks to [@&#8203;ankane](https://github.com/ankane), [@&#8203;igorlukanin](https://github.com/igorlukanin), [@&#8203;mlankamp](https://github.com/mlankamp) and [@&#8203;stockiNail](https://github.com/stockiNail) ### [`v4.1.2`](https://github.com/chartjs/Chart.js/releases/tag/v4.1.2) [Compare Source](https://github.com/chartjs/Chart.js/compare/v4.1.1...v4.1.2) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/migration/v4-migration.html) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) #### Types - [#&#8203;11016](https://github.com/chartjs/Chart.js/issues/11016) fix: fix Plugin interface - [#&#8203;11008](https://github.com/chartjs/Chart.js/issues/11008) Add Z index to border options #### Documentation - [#&#8203;11006](https://github.com/chartjs/Chart.js/issues/11006) Fixes missing markdown links in docs #### Development - [#&#8203;11034](https://github.com/chartjs/Chart.js/issues/11034) chore: version bump - [#&#8203;11004](https://github.com/chartjs/Chart.js/issues/11004) Update link to UMD bundle for master - [#&#8203;11000](https://github.com/chartjs/Chart.js/issues/11000) chore: replace cp with js code Thanks to [@&#8203;LeeLenaleee](https://github.com/LeeLenaleee), [@&#8203;dangreen](https://github.com/dangreen) and [@&#8203;matveycodes](https://github.com/matveycodes) ### [`v4.1.1`](https://github.com/chartjs/Chart.js/releases/tag/v4.1.1) [Compare Source](https://github.com/chartjs/Chart.js/compare/v4.1.0...v4.1.1) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/migration/v4-migration.html) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) * [#&#8203;10988](https://github.com/chartjs/Chart.js/issues/10988) chore: Revert "Add Product Hunt button (temporarily)" #### Bugs Fixed - [#&#8203;10971](https://github.com/chartjs/Chart.js/issues/10971) fix: avoid resize loop when browser zoom is set to 90% - [#&#8203;10993](https://github.com/chartjs/Chart.js/issues/10993) fix: move types to src dir to escape src / dist dirs in paths - [#&#8203;10992](https://github.com/chartjs/Chart.js/issues/10992) fix: hotfix chart.js/auto for commonjs #### Types - [#&#8203;10993](https://github.com/chartjs/Chart.js/issues/10993) fix: move types to src dir to escape src / dist dirs in paths #### Development - [#&#8203;10997](https://github.com/chartjs/Chart.js/issues/10997) Bump to 4.1.1 Thanks to [@&#8203;dangreen](https://github.com/dangreen), [@&#8203;etimberg](https://github.com/etimberg), [@&#8203;gbaron](https://github.com/gbaron) and [@&#8203;igorlukanin](https://github.com/igorlukanin) ### [`v4.1.0`](https://github.com/chartjs/Chart.js/releases/tag/v4.1.0) [Compare Source](https://github.com/chartjs/Chart.js/compare/v4.0.1...v4.1.0) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/migration/v4-migration.html) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) * [#&#8203;10980](https://github.com/chartjs/Chart.js/issues/10980) chore: Add Product Hunt button (temporarily) * [#&#8203;10917](https://github.com/chartjs/Chart.js/issues/10917) fix: move @&#8203;<!---->kurkle/color to dependencies #### Enhancements - [#&#8203;10966](https://github.com/chartjs/Chart.js/issues/10966) add getLabelItems public method - [#&#8203;10984](https://github.com/chartjs/Chart.js/issues/10984) feat: restore commonjs bundle - [#&#8203;10964](https://github.com/chartjs/Chart.js/issues/10964) Allow dynamic datasets to be colored - [#&#8203;10904](https://github.com/chartjs/Chart.js/issues/10904) Allow color plugin to work with custom dataset controllers - [#&#8203;10870](https://github.com/chartjs/Chart.js/issues/10870) feat: colors for mixed charts - [#&#8203;10886](https://github.com/chartjs/Chart.js/issues/10886) Pointstyle false #### Bugs Fixed - [#&#8203;10942](https://github.com/chartjs/Chart.js/issues/10942) Ensure that args are saved inside of the throttled helper - [#&#8203;10766](https://github.com/chartjs/Chart.js/issues/10766) fix: stacked bar chart minBarLength causes overlapping - [#&#8203;10898](https://github.com/chartjs/Chart.js/issues/10898) Set the transition mode to the context for scriptable options #### Types - [#&#8203;10963](https://github.com/chartjs/Chart.js/issues/10963) fix: unbind instance config from chart type - [#&#8203;10910](https://github.com/chartjs/Chart.js/issues/10910) Add stepSize option to time scale options types #### Documentation - [#&#8203;10976](https://github.com/chartjs/Chart.js/issues/10976) docs: Update Slack link - [#&#8203;10965](https://github.com/chartjs/Chart.js/issues/10965) Broken link is fixed. - [#&#8203;10955](https://github.com/chartjs/Chart.js/issues/10955) Update auto import in usage docs - [#&#8203;10903](https://github.com/chartjs/Chart.js/issues/10903) docs: add info about ESM into migration guide. - [#&#8203;10885](https://github.com/chartjs/Chart.js/issues/10885) update migration guide - [#&#8203;10884](https://github.com/chartjs/Chart.js/issues/10884) Move border opts to correct location for samples - [#&#8203;10872](https://github.com/chartjs/Chart.js/issues/10872) Remove V3 support, update readme #### Development - [#&#8203;10962](https://github.com/chartjs/Chart.js/issues/10962) test: turn on types linting - [#&#8203;10983](https://github.com/chartjs/Chart.js/issues/10983) bunp version to 4.1.0 - [#&#8203;10974](https://github.com/chartjs/Chart.js/issues/10974) chore: add lint cache - [#&#8203;10930](https://github.com/chartjs/Chart.js/issues/10930) Update react template to V4 vite - [#&#8203;10919](https://github.com/chartjs/Chart.js/issues/10919) Use UDM build for reproducible sample Thanks to [@&#8203;Kit-p](https://github.com/Kit-p), [@&#8203;LeeLenaleee](https://github.com/LeeLenaleee), [@&#8203;Simon-He95](https://github.com/Simon-He95), [@&#8203;benmccann](https://github.com/benmccann), [@&#8203;dangreen](https://github.com/dangreen), [@&#8203;etimberg](https://github.com/etimberg), [@&#8203;igorlukanin](https://github.com/igorlukanin), [@&#8203;letheri](https://github.com/letheri) and [@&#8203;stockiNail](https://github.com/stockiNail) ### [`v4.0.1`](https://github.com/chartjs/Chart.js/releases/tag/v4.0.1) [Compare Source](https://github.com/chartjs/Chart.js/compare/v3.9.1...v4.0.1) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/migration/v4-migration.html) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) #### Bugs Fixed - [#&#8203;10871](https://github.com/chartjs/Chart.js/issues/10871) Fix release Thanks to [@&#8203;LeeLenaleee](https://github.com/LeeLenaleee) ### [`v3.9.1`](https://github.com/chartjs/Chart.js/releases/tag/v3.9.1) [Compare Source](https://github.com/chartjs/Chart.js/compare/v3.9.0...v3.9.1) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/getting-started/v3-migration) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) #### Bugs Fixed - [#&#8203;10552](https://github.com/chartjs/Chart.js/issues/10552) fix import helpers Thanks to [@&#8203;LeeLenaleee](https://github.com/LeeLenaleee) ### [`v3.9.0`](https://github.com/chartjs/Chart.js/releases/tag/v3.9.0) [Compare Source](https://github.com/chartjs/Chart.js/compare/v3.8.2...v3.9.0) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/getting-started/v3-migration) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) #### Enhancements - [#&#8203;10439](https://github.com/chartjs/Chart.js/issues/10439) feat: remove line element from scatter controller - [#&#8203;10528](https://github.com/chartjs/Chart.js/issues/10528) feat: pass some chart options to DateAdapter - [#&#8203;10405](https://github.com/chartjs/Chart.js/issues/10405) Add circular prop to arc element - [#&#8203;10530](https://github.com/chartjs/Chart.js/issues/10530) Skip all borders if borderSkipped === true - [#&#8203;10517](https://github.com/chartjs/Chart.js/issues/10517) parsing: support dot(s) in object keys - [#&#8203;10519](https://github.com/chartjs/Chart.js/issues/10519) Enable borderDash option in the grid as scriptable #### Performance - [#&#8203;10517](https://github.com/chartjs/Chart.js/issues/10517) parsing: support dot(s) in object keys #### Bugs Fixed - [#&#8203;10524](https://github.com/chartjs/Chart.js/issues/10524) pass boxWidth only if pointStyleWidth presents - [#&#8203;10523](https://github.com/chartjs/Chart.js/issues/10523) fix: calc visible points on update #<!---->10467 #### Documentation - [#&#8203;10527](https://github.com/chartjs/Chart.js/issues/10527) Add docs for changing from time scale to logarithmic/linear scale - [#&#8203;10518](https://github.com/chartjs/Chart.js/issues/10518) Improve docs radial linear grid - [#&#8203;10522](https://github.com/chartjs/Chart.js/issues/10522) Fix Stack Overflow tag: chart.js - [#&#8203;10520](https://github.com/chartjs/Chart.js/issues/10520) Fix Stack Overflow tag: chart.js - [#&#8203;10515](https://github.com/chartjs/Chart.js/issues/10515) Fix dead link on reload or open in new tab - [#&#8203;10516](https://github.com/chartjs/Chart.js/issues/10516) Clarifying threshold requirement in the docs for decimation #### Development - [#&#8203;10541](https://github.com/chartjs/Chart.js/issues/10541) Bump to 3.9.0 Thanks to [@&#8203;LeeLenaleee](https://github.com/LeeLenaleee), [@&#8203;M4sterShake](https://github.com/M4sterShake), [@&#8203;benmccann](https://github.com/benmccann), [@&#8203;dangreen](https://github.com/dangreen), [@&#8203;kurkle](https://github.com/kurkle), [@&#8203;peterhauke](https://github.com/peterhauke), [@&#8203;stockiNail](https://github.com/stockiNail), [@&#8203;thabarbados](https://github.com/thabarbados) and [@&#8203;touletan](https://github.com/touletan) ### [`v3.8.2`](https://github.com/chartjs/Chart.js/releases/tag/v3.8.2) [Compare Source](https://github.com/chartjs/Chart.js/compare/v3.8.1...v3.8.2) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/getting-started/v3-migration) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) #### Bugs Fixed - [#&#8203;10513](https://github.com/chartjs/Chart.js/issues/10513) Explicitly include package.json files for subpackages #### Development - [#&#8203;10513](https://github.com/chartjs/Chart.js/issues/10513) Explicitly include package.json files for subpackages Thanks to [@&#8203;etimberg](https://github.com/etimberg) ### [`v3.8.1`](https://github.com/chartjs/Chart.js/releases/tag/v3.8.1) [Compare Source](https://github.com/chartjs/Chart.js/compare/v3.8.0...v3.8.1) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/getting-started/v3-migration) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) #### Enhancements - [#&#8203;10495](https://github.com/chartjs/Chart.js/issues/10495) Improve error message with id of the canvas - [#&#8203;10412](https://github.com/chartjs/Chart.js/issues/10412) Add pointStyleWidth option for legend #### Bugs Fixed - [#&#8203;10484](https://github.com/chartjs/Chart.js/issues/10484) Resolve plugin defaults for local plugins - [#&#8203;10489](https://github.com/chartjs/Chart.js/issues/10489) draw tooltip with object borderwidth - [#&#8203;10451](https://github.com/chartjs/Chart.js/issues/10451) Fix options update when changing to shared opts - [#&#8203;10454](https://github.com/chartjs/Chart.js/issues/10454) Fix crash with skipNull and uneven datasets - [#&#8203;10414](https://github.com/chartjs/Chart.js/issues/10414) Respect \`fill: false\` with custom draw times #### Types - [#&#8203;10494](https://github.com/chartjs/Chart.js/issues/10494) Allow clip to be configurable in options object typescript - [#&#8203;10436](https://github.com/chartjs/Chart.js/issues/10436) Add index to legendItem interface - [#&#8203;10404](https://github.com/chartjs/Chart.js/issues/10404) Add padding to pointLabels type, add type to scriptable context - [#&#8203;10387](https://github.com/chartjs/Chart.js/issues/10387) Allow for each dataset to be individually typed without a main type #### Documentation - [#&#8203;10490](https://github.com/chartjs/Chart.js/issues/10490) document defaults for plugins - [#&#8203;10497](https://github.com/chartjs/Chart.js/issues/10497) Update link to be able to use within github - [#&#8203;10446](https://github.com/chartjs/Chart.js/issues/10446) Add a stale version warning + a link to the latest version of docs - [#&#8203;10470](https://github.com/chartjs/Chart.js/issues/10470) Update integration.md - [#&#8203;10447](https://github.com/chartjs/Chart.js/issues/10447) Enforce maximum width on chart editor blocks in the docs - [#&#8203;10456](https://github.com/chartjs/Chart.js/issues/10456) Update aspectRatio documentation - [#&#8203;10415](https://github.com/chartjs/Chart.js/issues/10415) Update responsive.md - [#&#8203;10434](https://github.com/chartjs/Chart.js/issues/10434) Clarify helpers need to be imported when using bundlers - [#&#8203;10410](https://github.com/chartjs/Chart.js/issues/10410) Fix typo in link to documentation from sample - [#&#8203;10400](https://github.com/chartjs/Chart.js/issues/10400) Fix default value of 'includeInvisible' option in the documentation - [#&#8203;10392](https://github.com/chartjs/Chart.js/issues/10392) Clarify api docs #### Development - [#&#8203;10509](https://github.com/chartjs/Chart.js/issues/10509) Bump to 3.8.1 - [#&#8203;10493](https://github.com/chartjs/Chart.js/issues/10493) Bump terser from 4.8.0 to 4.8.1 - [#&#8203;10471](https://github.com/chartjs/Chart.js/issues/10471) Bump moment from 2.29.2 to 2.29.4 - [#&#8203;10431](https://github.com/chartjs/Chart.js/issues/10431) Bump actions/setup-node from 2 to 3 - [#&#8203;10430](https://github.com/chartjs/Chart.js/issues/10430) Bump actions/checkout from 2 to 3 - [#&#8203;10393](https://github.com/chartjs/Chart.js/issues/10393) Bump eventsource from 1.1.0 to 1.1.1 Thanks to [@&#8203;LeeLenaleee](https://github.com/LeeLenaleee), [@&#8203;Pourbahrami](https://github.com/Pourbahrami), [@&#8203;andrewl64](https://github.com/andrewl64), [@&#8203;dependabot](https://github.com/dependabot), [@&#8203;dependabot](https://github.com/dependabot)\[bot], [@&#8203;etimberg](https://github.com/etimberg), [@&#8203;ideabrian](https://github.com/ideabrian), [@&#8203;igorlukanin](https://github.com/igorlukanin), [@&#8203;kurkle](https://github.com/kurkle), [@&#8203;naveensrinivasan](https://github.com/naveensrinivasan), [@&#8203;stockiNail](https://github.com/stockiNail) and [@&#8203;touletan](https://github.com/touletan) ### [`v3.8.0`](https://github.com/chartjs/Chart.js/releases/tag/v3.8.0) [Compare Source](https://github.com/chartjs/Chart.js/compare/v3.7.1...v3.8.0) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/getting-started/v3-migration) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) * [#&#8203;10341](https://github.com/chartjs/Chart.js/issues/10341) Correct auto.esm.js import to allow module to work in browser * [#&#8203;10316](https://github.com/chartjs/Chart.js/issues/10316) Use abs() when comparing for spanGaps * [#&#8203;10320](https://github.com/chartjs/Chart.js/issues/10320) Bump async from 2.6.3 to 2.6.4 * [#&#8203;10290](https://github.com/chartjs/Chart.js/issues/10290) Bump moment from 2.29.1 to 2.29.2 * [#&#8203;10260](https://github.com/chartjs/Chart.js/issues/10260) Bump minimist from 1.2.5 to 1.2.6 * [#&#8203;10204](https://github.com/chartjs/Chart.js/issues/10204) Bump karma from 6.3.14 to 6.3.16 * [#&#8203;10200](https://github.com/chartjs/Chart.js/issues/10200) Bump url-parse from 1.5.7 to 1.5.10 * [#&#8203;10198](https://github.com/chartjs/Chart.js/issues/10198) Bump prismjs from 1.25.0 to 1.27.0 * [#&#8203;10181](https://github.com/chartjs/Chart.js/issues/10181) Bump url-parse from 1.5.3 to 1.5.7 * [#&#8203;10146](https://github.com/chartjs/Chart.js/issues/10146) Bump karma from 6.3.9 to 6.3.14 * [#&#8203;10150](https://github.com/chartjs/Chart.js/issues/10150) Bump log4js from 6.3.0 to 6.4.1 * [#&#8203;10152](https://github.com/chartjs/Chart.js/issues/10152) Bump engine.io from 6.1.0 to 6.1.2 * [#&#8203;10151](https://github.com/chartjs/Chart.js/issues/10151) Bump node-fetch from 2.6.6 to 2.6.7 * [#&#8203;10149](https://github.com/chartjs/Chart.js/issues/10149) Bump follow-redirects from 1.14.6 to 1.14.8 #### Enhancements - [#&#8203;10362](https://github.com/chartjs/Chart.js/issues/10362) Add option to include invisible points - [#&#8203;10328](https://github.com/chartjs/Chart.js/issues/10328) Resolve canvasGradient is undefined in node - [#&#8203;10293](https://github.com/chartjs/Chart.js/issues/10293) Enable configuration of radial scale point label border radius - [#&#8203;10278](https://github.com/chartjs/Chart.js/issues/10278) Allow time scale to offset using skipped ticks - [#&#8203;10046](https://github.com/chartjs/Chart.js/issues/10046) Interaction functions - [#&#8203;10182](https://github.com/chartjs/Chart.js/issues/10182) Allow individual chart controllers to opt-in to the decimation plugin - [#&#8203;10088](https://github.com/chartjs/Chart.js/issues/10088) Make object notation usable for polarArea and radar - [#&#8203;10106](https://github.com/chartjs/Chart.js/issues/10106) Add new align 'inner' for X axis #### Bugs Fixed - [#&#8203;10371](https://github.com/chartjs/Chart.js/issues/10371) Update to v0.2.1 color dependency to fix bug with invalid colours - [#&#8203;10340](https://github.com/chartjs/Chart.js/issues/10340) Update scale polarArea correctly on data hide - [#&#8203;10289](https://github.com/chartjs/Chart.js/issues/10289) display tooltips only at points in chart area - [#&#8203;10328](https://github.com/chartjs/Chart.js/issues/10328) Resolve canvasGradient is undefined in node - [#&#8203;10301](https://github.com/chartjs/Chart.js/issues/10301) Trigger legend onLeave when the mouse leaves the canvas - [#&#8203;10276](https://github.com/chartjs/Chart.js/issues/10276) Document tooltip draw hooks and only call hooks when the tooltip draws - [#&#8203;10157](https://github.com/chartjs/Chart.js/issues/10157) minimum bar length setting keeps bar base in view #### Types - [#&#8203;10364](https://github.com/chartjs/Chart.js/issues/10364) Types: Allow font to be partial scriptable and individually scriptable - [#&#8203;10283](https://github.com/chartjs/Chart.js/issues/10283) Types: add 'middle' to borderSkipped - [#&#8203;10275](https://github.com/chartjs/Chart.js/issues/10275) Export types for cartesian and radial tick options - [#&#8203;10269](https://github.com/chartjs/Chart.js/issues/10269) add startAngle to radial scale options typings - [#&#8203;10254](https://github.com/chartjs/Chart.js/issues/10254) Add missing fields to the ScriptableContext type - [#&#8203;10179](https://github.com/chartjs/Chart.js/issues/10179) Allow array for line opts in dataset #### Documentation - [#&#8203;10308](https://github.com/chartjs/Chart.js/issues/10308) Add links to docs in all the samples - [#&#8203;10259](https://github.com/chartjs/Chart.js/issues/10259) Fix a typo in data-structures.md - [#&#8203;10266](https://github.com/chartjs/Chart.js/issues/10266) Correct chart initialization flow - [#&#8203;10250](https://github.com/chartjs/Chart.js/issues/10250) Update link to filler plugin - [#&#8203;10184](https://github.com/chartjs/Chart.js/issues/10184) Fix broken link in Animations docs page. - [#&#8203;10158](https://github.com/chartjs/Chart.js/issues/10158) remove hardcoded licenseYear in docs - [#&#8203;10156](https://github.com/chartjs/Chart.js/issues/10156) update link to license and bump license year - [#&#8203;10154](https://github.com/chartjs/Chart.js/issues/10154) Document scale update plugin hooks #### Development - [#&#8203;10377](https://github.com/chartjs/Chart.js/issues/10377) Bump to 3.8.0 - [#&#8203;10247](https://github.com/chartjs/Chart.js/issues/10247) Resolve circulair import filler plugin - [#&#8203;10243](https://github.com/chartjs/Chart.js/issues/10243) Replace deprecated String.prototype.substr() - [#&#8203;10040](https://github.com/chartjs/Chart.js/issues/10040) Refactor filler plugin for easier maintenance Thanks to [@&#8203;CommanderRoot](https://github.com/CommanderRoot), [@&#8203;LeeLenaleee](https://github.com/LeeLenaleee), [@&#8203;Talla2XLC](https://github.com/Talla2XLC), [@&#8203;akiraaso](https://github.com/akiraaso), [@&#8203;dependabot](https://github.com/dependabot), [@&#8203;dependabot](https://github.com/dependabot)\[bot], [@&#8203;etimberg](https://github.com/etimberg), [@&#8203;joshkel](https://github.com/joshkel), [@&#8203;kurkle](https://github.com/kurkle), [@&#8203;kylejonesdev](https://github.com/kylejonesdev), [@&#8203;linkviii](https://github.com/linkviii), [@&#8203;luke-heberling](https://github.com/luke-heberling), [@&#8203;msteiger](https://github.com/msteiger), [@&#8203;pzelnip](https://github.com/pzelnip), [@&#8203;t-mangoe](https://github.com/t-mangoe) and [@&#8203;yhvicey](https://github.com/yhvicey) ### [`v3.7.1`](https://github.com/chartjs/Chart.js/releases/tag/v3.7.1) [Compare Source](https://github.com/chartjs/Chart.js/compare/v3.7.0...v3.7.1) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/getting-started/v3-migration) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) #### Bugs Fixed - [#&#8203;10024](https://github.com/chartjs/Chart.js/issues/10024) Fix using above/below filling option with discontinuous lines #### Types - [#&#8203;10124](https://github.com/chartjs/Chart.js/issues/10124) Add missing mouse events to CoreChartOptions.events type - [#&#8203;10133](https://github.com/chartjs/Chart.js/issues/10133) Allow spanGaps to be specified on LineOptions - [#&#8203;10137](https://github.com/chartjs/Chart.js/issues/10137) Ensure that min/max of TimeScaleOptions can be a string - [#&#8203;10075](https://github.com/chartjs/Chart.js/issues/10075) fix: allow colors as array - [#&#8203;10131](https://github.com/chartjs/Chart.js/issues/10131) Correct type for updateHoverStyle - [#&#8203;10130](https://github.com/chartjs/Chart.js/issues/10130) Type Chart.legend property - [#&#8203;10111](https://github.com/chartjs/Chart.js/issues/10111) Change repeating alingment string to single type - [#&#8203;10078](https://github.com/chartjs/Chart.js/issues/10078) Move scriptable and array to helper function in types - [#&#8203;10057](https://github.com/chartjs/Chart.js/issues/10057) add typing and docs for maxTicksLimit all scales #### Documentation - [#&#8203;10138](https://github.com/chartjs/Chart.js/issues/10138) Sort docs sub menus alphabetically, add line and plugin sample - [#&#8203;10100](https://github.com/chartjs/Chart.js/issues/10100) Sort line and bubble dataset options alphabetically - [#&#8203;10103](https://github.com/chartjs/Chart.js/issues/10103) Fix typos found by codespell - [#&#8203;10057](https://github.com/chartjs/Chart.js/issues/10057) add typing and docs for maxTicksLimit all scales - [#&#8203;10045](https://github.com/chartjs/Chart.js/issues/10045) typo Cofiguration #### Development - [#&#8203;10148](https://github.com/chartjs/Chart.js/issues/10148) Bump to 3.7.1 - [#&#8203;10117](https://github.com/chartjs/Chart.js/issues/10117) add SubTitle to TS register test - [#&#8203;10078](https://github.com/chartjs/Chart.js/issues/10078) Move scriptable and array to helper function in types - [#&#8203;10038](https://github.com/chartjs/Chart.js/issues/10038) Improve issue templates Thanks to [@&#8203;DimitriPapadopoulos](https://github.com/DimitriPapadopoulos), [@&#8203;LeeLenaleee](https://github.com/LeeLenaleee), [@&#8203;LovelyAndy](https://github.com/LovelyAndy), [@&#8203;caub](https://github.com/caub), [@&#8203;charlesmass2](https://github.com/charlesmass2), [@&#8203;etimberg](https://github.com/etimberg), [@&#8203;jmorel](https://github.com/jmorel) and [@&#8203;stockiNail](https://github.com/stockiNail) ### [`v3.7.0`](https://github.com/chartjs/Chart.js/releases/tag/v3.7.0) [Compare Source](https://github.com/chartjs/Chart.js/compare/v3.6.2...v3.7.0) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/getting-started/v3-migration) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) #### Enhancements - [#&#8203;9949](https://github.com/chartjs/Chart.js/issues/9949) Add centerPointLabels option for linear radial scale - [#&#8203;9970](https://github.com/chartjs/Chart.js/issues/9970) Limit active element changes to chartArea - [#&#8203;9944](https://github.com/chartjs/Chart.js/issues/9944) Improvements to tooltip positioners - [#&#8203;9933](https://github.com/chartjs/Chart.js/issues/9933) add beforeDestroy hook - [#&#8203;9919](https://github.com/chartjs/Chart.js/issues/9919) Support "r" axis for non-intersecting interaction - [#&#8203;9920](https://github.com/chartjs/Chart.js/issues/9920) Feature/active elements on top - [#&#8203;9877](https://github.com/chartjs/Chart.js/issues/9877) Add borderJoinStyle option for arc elements #### Bugs Fixed - [#&#8203;10021](https://github.com/chartjs/Chart.js/issues/10021) radialLinear: fix positioning & scaling - [#&#8203;10020](https://github.com/chartjs/Chart.js/issues/10020) radialLinear: fix getIndexAngle when there are no labels (left) - [#&#8203;10018](https://github.com/chartjs/Chart.js/issues/10018) radialLinear: Hide pointLabels of hidden data - [#&#8203;9992](https://github.com/chartjs/Chart.js/issues/9992) Fix setActiveElements behavior after a mouse event - [#&#8203;9970](https://github.com/chartjs/Chart.js/issues/9970) Limit active element changes to chartArea - [#&#8203;9969](https://github.com/chartjs/Chart.js/issues/9969) Pass object from array as value to \_fallback #### Types - [#&#8203;9986](https://github.com/chartjs/Chart.js/issues/9986) Types/ type suggestedMin and suggestedMax for time scale - [#&#8203;9985](https://github.com/chartjs/Chart.js/issues/9985) Types/Allow min-max as string timescale - [#&#8203;9937](https://github.com/chartjs/Chart.js/issues/9937) Types/allow for multiline labels in tick callback #### Documentation - [#&#8203;10013](https://github.com/chartjs/Chart.js/issues/10013) Docs/Add sample for centered point labels - [#&#8203;9994](https://github.com/chartjs/Chart.js/issues/9994) Docs/clarify usage of ticks callback (#<!---->9991) - [#&#8203;9960](https://github.com/chartjs/Chart.js/issues/9960) Docs/clarify samples - [#&#8203;9952](https://github.com/chartjs/Chart.js/issues/9952) Try to improve documentation for new users #### Development - [#&#8203;10011](https://github.com/chartjs/Chart.js/issues/10011) Bump version to 3.7.0, update deps Thanks to [@&#8203;LeeLenaleee](https://github.com/LeeLenaleee), [@&#8203;doug-a-brunner](https://github.com/doug-a-brunner), [@&#8203;joshkel](https://github.com/joshkel), [@&#8203;kurkle](https://github.com/kurkle), [@&#8203;luukdv](https://github.com/luukdv) and [@&#8203;t-mangoe](https://github.com/t-mangoe) ### [`v3.6.2`](https://github.com/chartjs/Chart.js/releases/tag/v3.6.2) [Compare Source](https://github.com/chartjs/Chart.js/compare/v3.6.1...v3.6.2) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/getting-started/v3-migration) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) #### Bugs Fixed - [#&#8203;9939](https://github.com/chartjs/Chart.js/issues/9939) Stop modifying options in interaction handlers - [#&#8203;9938](https://github.com/chartjs/Chart.js/issues/9938) Fix resolver caching issue when setting values #### Development - [#&#8203;9953](https://github.com/chartjs/Chart.js/issues/9953) Bump version to 3.6.2 Thanks to [@&#8203;kurkle](https://github.com/kurkle) ### [`v3.6.1`](https://github.com/chartjs/Chart.js/releases/tag/v3.6.1) [Compare Source](https://github.com/chartjs/Chart.js/compare/v3.6.0...v3.6.1) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/getting-started/v3-migration) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) * [#&#8203;9683](https://github.com/chartjs/Chart.js/issues/9683) Update stale documentation for axis titles #### Bugs Fixed - [#&#8203;9922](https://github.com/chartjs/Chart.js/issues/9922) Fix tooltip caret position when it is positioned at the corners - [#&#8203;9921](https://github.com/chartjs/Chart.js/issues/9921) Category: Track automatically added labels - [#&#8203;9915](https://github.com/chartjs/Chart.js/issues/9915) Chart area boxes receive 0 margin during the final layout process - [#&#8203;9876](https://github.com/chartjs/Chart.js/issues/9876) Detect detach/attach in same observation - [#&#8203;9857](https://github.com/chartjs/Chart.js/issues/9857) Synchronize data visibility with data changes - [#&#8203;9871](https://github.com/chartjs/Chart.js/issues/9871) Fix inRange for full circle arc - [#&#8203;9872](https://github.com/chartjs/Chart.js/issues/9872) Configure all datasets before updating any - [#&#8203;9861](https://github.com/chartjs/Chart.js/issues/9861) Prevent proxying CanvasGradient in Node platform - [#&#8203;9855](https://github.com/chartjs/Chart.js/issues/9855) Fix incomplete TS type for Chart.register + others - [#&#8203;9831](https://github.com/chartjs/Chart.js/issues/9831) Pass number format to tooltip - [#&#8203;9794](https://github.com/chartjs/Chart.js/issues/9794) Remove scriptability from defaults.font types #### Types - [#&#8203;9917](https://github.com/chartjs/Chart.js/issues/9917) Add a note about the type parameters of the ChartData type - [#&#8203;9916](https://github.com/chartjs/Chart.js/issues/9916) Doughnut chart options have an offset property - [#&#8203;9858](https://github.com/chartjs/Chart.js/issues/9858) Types: add autopadding to typing - [#&#8203;9855](https://github.com/chartjs/Chart.js/issues/9855) Fix incomplete TS type for Chart.register + others - [#&#8203;9837](https://github.com/chartjs/Chart.js/issues/9837) update animation event to include currentStep instead of currentState - [#&#8203;9834](https://github.com/chartjs/Chart.js/issues/9834) Types: include initial variable in the AnimationEvent - [#&#8203;9794](https://github.com/chartjs/Chart.js/issues/9794) Remove scriptability from defaults.font types - [#&#8203;9800](https://github.com/chartjs/Chart.js/issues/9800) Fix object notation border width barchart #### Documentation - [#&#8203;9923](https://github.com/chartjs/Chart.js/issues/9923) Add notes about more specific options for axes - [#&#8203;9917](https://github.com/chartjs/Chart.js/issues/9917) Add a note about the type parameters of the ChartData type - [#&#8203;9900](https://github.com/chartjs/Chart.js/issues/9900) Fix a typo in index.md - [#&#8203;9893](https://github.com/chartjs/Chart.js/issues/9893) Fix a typo in contributing.md - [#&#8203;9866](https://github.com/chartjs/Chart.js/issues/9866) docs: Add a link to front-end integrations - [#&#8203;9865](https://github.com/chartjs/Chart.js/issues/9865) Update misleading sample comment - [#&#8203;9812](https://github.com/chartjs/Chart.js/issues/9812) Docs/update scale position type - [#&#8203;9803](https://github.com/chartjs/Chart.js/issues/9803) Define with let to avoid "assignment to constant" errors - [#&#8203;9798](https://github.com/chartjs/Chart.js/issues/9798) New sample: Progressive Line With Easing - [#&#8203;9791](https://github.com/chartjs/Chart.js/issues/9791) Update namespace and charts for legend override - [#&#8203;9787](https://github.com/chartjs/Chart.js/issues/9787) Add warning about chart types overriding plugin defaults #### Development - [#&#8203;9929](https://github.com/chartjs/Chart.js/issues/9929) Bump to 3.6.1 Thanks to [@&#8203;LeeLenaleee](https://github.com/LeeLenaleee), [@&#8203;NorthBlue333](https://github.com/NorthBlue333), [@&#8203;benmccann](https://github.com/benmccann), [@&#8203;carsonalh](https://github.com/carsonalh), [@&#8203;erictheise](https://github.com/erictheise), [@&#8203;etimberg](https://github.com/etimberg), [@&#8203;fishmandev](https://github.com/fishmandev), [@&#8203;igorlukanin](https://github.com/igorlukanin) and [@&#8203;kurkle](https://github.com/kurkle) ### [`v3.6.0`](https://github.com/chartjs/Chart.js/releases/tag/v3.6.0) [Compare Source](https://github.com/chartjs/Chart.js/compare/v3.5.1...v3.6.0) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/getting-started/v3-migration) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) * [#&#8203;9757](https://github.com/chartjs/Chart.js/issues/9757) ci(workflow): add cache to workflows using actions/setup-node * [#&#8203;9587](https://github.com/chartjs/Chart.js/issues/9587) Ensure that controllers derived from the bar controller work correct in stacked charts #### Enhancements - [#&#8203;9761](https://github.com/chartjs/Chart.js/issues/9761) Add chart, p0.raw, p1.raw to segment context - [#&#8203;9758](https://github.com/chartjs/Chart.js/issues/9758) Support nested scriptable options for datasets - [#&#8203;9751](https://github.com/chartjs/Chart.js/issues/9751) Disable animations for BasicPlatform (offcreen) - [#&#8203;9716](https://github.com/chartjs/Chart.js/issues/9716) Add layout.autoPadding option - [#&#8203;9679](https://github.com/chartjs/Chart.js/issues/9679) Add sanity check for stepSize - [#&#8203;9625](https://github.com/chartjs/Chart.js/issues/9625) Configurable tooltip box padding - [#&#8203;9624](https://github.com/chartjs/Chart.js/issues/9624) Add sanity checks for scale options - [#&#8203;9622](https://github.com/chartjs/Chart.js/issues/9622) Add parsing support to pie/doughnut charts - [#&#8203;9620](https://github.com/chartjs/Chart.js/issues/9620) Enable per-corner border radius in tooltip - [#&#8203;9557](https://github.com/chartjs/Chart.js/issues/9557) Detect attach/detach from any level #### Performance - [#&#8203;9661](https://github.com/chartjs/Chart.js/issues/9661) cache also undefined values in option resolver #### Bugs Fixed - [#&#8203;9656](https://github.com/chartjs/Chart.js/issues/9656) Fix cleaning up metasets - [#&#8203;9767](https://github.com/chartjs/Chart.js/issues/9767) Fix stacked fill with lines over multiple scales - [#&#8203;9764](https://github.com/chartjs/Chart.js/issues/9764) Bubble: Properly parse radius for non-object data - [#&#8203;9770](https://github.com/chartjs/Chart.js/issues/9770) Support nested scriptable defaults for datasets - [#&#8203;9766](https://github.com/chartjs/Chart.js/issues/9766) Fix controller.getMinMax for stacked charts - [#&#8203;9729](https://github.com/chartjs/Chart.js/issues/9729) Types: Move tooltip methods to model from plugin - [#&#8203;9719](https://github.com/chartjs/Chart.js/issues/9719) Linear: determine grace amount from range - [#&#8203;9718](https://github.com/chartjs/Chart.js/issues/9718) Fix chart crashing when only min is defined - [#&#8203;9641](https://github.com/chartjs/Chart.js/issues/9641) Fix chart crashing when max is defined but ticks are empty - [#&#8203;9678](https://github.com/chartjs/Chart.js/issues/9678) Bar: fix too thick borders - [#&#8203;9644](https://github.com/chartjs/Chart.js/issues/9644) Fix segment styling with gaps - [#&#8203;9613](https://github.com/chartjs/Chart.js/issues/9613) Fix plugin event filtering of renamed events - [#&#8203;9592](https://github.com/chartjs/Chart.js/issues/9592) Fix control points on animated line w/o border #### Types - [#&#8203;9729](https://github.com/chartjs/Chart.js/issues/9729) Types: Move tooltip methods to model from plugin - [#&#8203;9699](https://github.com/chartjs/Chart.js/issues/9699) Support false for doughnut and polar area chart animation options - [#&#8203;9680](https://github.com/chartjs/Chart.js/issues/9680) Fix some typings issues - [#&#8203;9634](https://github.com/chartjs/Chart.js/issues/9634) Add align to interface of scale title config - [#&#8203;9610](https://github.com/chartjs/Chart.js/issues/9610) fix getRelativePosition type definition - [#&#8203;9617](https://github.com/chartjs/Chart.js/issues/9617) Remove offscreen canvas types - [#&#8203;9570](https://github.com/chartjs/Chart.js/issues/9570) Add missing typings of helpers, add automatic test #### Documentation - [#&#8203;9741](https://github.com/chartjs/Chart.js/issues/9741) Added hyperlink on Chart.js LOGO - [#&#8203;9720](https://github.com/chartjs/Chart.js/issues/9720) Fixed 4 links - [#&#8203;9747](https://github.com/chartjs/Chart.js/issues/9747) linked LICENSE.md to README - [#&#8203;9724](https://github.com/chartjs/Chart.js/issues/9724) docs: fix small error - [#&#8203;9710](https://github.com/chartjs/Chart.js/issues/9710) Fix: Typo spaning--> spanning - [#&#8203;9711](https://github.com/chartjs/Chart.js/issues/9711) Fix: Typo ingnore-->ignore - [#&#8203;9708](https://github.com/chartjs/Chart.js/issues/9708) Fix: Typo that-->than - [#&#8203;9697](https://github.com/chartjs/Chart.js/issues/9697) Document sample components file - [#&#8203;9626](https://github.com/chartjs/Chart.js/issues/9626) fix: broken link to \`cubicInterpolationMode\` - [#&#8203;9618](https://github.com/chartjs/Chart.js/issues/9618) Update tooltip callback docs - [#&#8203;9619](https://github.com/chartjs/Chart.js/issues/9619) Update old codepen links to ones for v3 #### Development - [#&#8203;9784](https://github.com/chartjs/Chart.js/issues/9784) Bump to 3.6.0 - [#&#8203;9755](https://github.com/chartjs/Chart.js/issues/9755) Fix: Typo 'is less' -> 'are lesser' - [#&#8203;9744](https://github.com/chartjs/Chart.js/issues/9744) Changed var to const/let in the docs - [#&#8203;9646](https://github.com/chartjs/Chart.js/issues/9646) Remove const me = this pattern Thanks to [@&#8203;0xflotus](https://github.com/0xflotus), [@&#8203;Flupp](https://github.com/Flupp), [@&#8203;KurtPreston](https://github.com/KurtPreston), [@&#8203;Prashoon123](https://github.com/Prashoon123), [@&#8203;SandeepKrSuman](https://github.com/SandeepKrSuman), [@&#8203;aha-oretama](https://github.com/aha-oretama), [@&#8203;atharva01903](https://github.com/atharva01903), [@&#8203;davidsandoz](https://github.com/davidsandoz), [@&#8203;etimberg](https://github.com/etimberg), [@&#8203;gautammsuthar](https://github.com/gautammsuthar), [@&#8203;igolskyi](https://github.com/igolskyi), [@&#8203;joshkel](https://github.com/joshkel), [@&#8203;kurkle](https://github.com/kurkle), [@&#8203;mikidoodle](https://github.com/mikidoodle), [@&#8203;nikethanrai](https://github.com/nikethanrai), [@&#8203;oscard0m](https://github.com/oscard0m) and [@&#8203;shubham242k](https://github.com/shubham242k) ### [`v3.5.1`](https://github.com/chartjs/Chart.js/releases/tag/v3.5.1) [Compare Source](https://github.com/chartjs/Chart.js/compare/v3.5.0...v3.5.1) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/getting-started/v3-migration) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) * [#&#8203;9563](https://github.com/chartjs/Chart.js/issues/9563) support crossAlign on mirrored y-axis #### Bugs Fixed - [#&#8203;9525](https://github.com/chartjs/Chart.js/issues/9525) Keep track of parsed array changes when parsing===false - [#&#8203;9489](https://github.com/chartjs/Chart.js/issues/9489) Fix \_isPointInArea helper when no area is provided - [#&#8203;9469](https://github.com/chartjs/Chart.js/issues/9469) Remove index interaction override barChart #### Types - [#&#8203;9550](https://github.com/chartjs/Chart.js/issues/9550) Grid line z property in TS types - [#&#8203;9546](https://github.com/chartjs/Chart.js/issues/9546) Add number to the title scale padding as type - [#&#8203;9490](https://github.com/chartjs/Chart.js/issues/9490) Types: Add \`tooltip\` to chart instance - [#&#8203;9477](https://github.com/chartjs/Chart.js/issues/9477) Types: Change \`context.chart\` to plain \`Chart\` #### Documentation - [#&#8203;9555](https://github.com/chartjs/Chart.js/issues/9555) Fix broken link. - [#&#8203;9549](https://github.com/chartjs/Chart.js/issues/9549) Ensure that docs have more width in the page - [#&#8203;9516](https://github.com/chartjs/Chart.js/issues/9516) fix 2 broken links, clarify order property - [#&#8203;9524](https://github.com/chartjs/Chart.js/issues/9524) Add more details on legend sort function - [#&#8203;9503](https://github.com/chartjs/Chart.js/issues/9503) Fix typo in docs on axes labelling - [#&#8203;9479](https://github.com/chartjs/Chart.js/issues/9479) Move pointStyle types and update plugin link\&render chart - [#&#8203;9465](https://github.com/chartjs/Chart.js/issues/9465) Longhand labels key in getting started - [#&#8203;9475](https://github.com/chartjs/Chart.js/issues/9475) Adjust text to code example - [#&#8203;9472](https://github.com/chartjs/Chart.js/issues/9472) Update charts.md #### Development - [#&#8203;9565](https://github.com/chartjs/Chart.js/issues/9565) Update to 3.5.1 version number - [#&#8203;9556](https://github.com/chartjs/Chart.js/issues/9556) Remove chart.scale property (always undefined) Thanks to [@&#8203;LeeLenaleee](https://github.com/LeeLenaleee), [@&#8203;M4sterShake](https://github.com/M4sterShake), [@&#8203;Yash-Singh1](https://github.com/Yash-Singh1), [@&#8203;etimberg](https://github.com/etimberg), [@&#8203;ewanmellor](https://github.com/ewanmellor), [@&#8203;juan-cortes](https://github.com/juan-cortes), [@&#8203;kurkle](https://github.com/kurkle), [@&#8203;niklasnoldin](https://github.com/niklasnoldin) and [@&#8203;snoozbuster](https://github.com/snoozbuster) ### [`v3.5.0`](https://github.com/chartjs/Chart.js/releases/tag/v3.5.0) [Compare Source](https://github.com/chartjs/Chart.js/compare/v3.4.1...v3.5.0) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/getting-started/v3-migration) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) #### Enhancements - [#&#8203;9452](https://github.com/chartjs/Chart.js/issues/9452) Bar: add 'middle' option for borderSkipped - [#&#8203;9450](https://github.com/chartjs/Chart.js/issues/9450) Add ability to hide specific data element - [#&#8203;9451](https://github.com/chartjs/Chart.js/issues/9451) Add data/dataset indices to line segment context - [#&#8203;9364](https://github.com/chartjs/Chart.js/issues/9364) Layout: support box stacking - [#&#8203;9360](https://github.com/chartjs/Chart.js/issues/9360) Add 'shape' mode for filler-plugin - [#&#8203;9327](https://github.com/chartjs/Chart.js/issues/9327) Adding threshold option to decimation plugin #### Bugs Fixed - [#&#8203;9431](https://github.com/chartjs/Chart.js/issues/9431) Ensure getPrototypeOf will not crash on plugin options with no scopes - [#&#8203;9448](https://github.com/chartjs/Chart.js/issues/9448) Fix DomPlatform.isAttached - [#&#8203;9447](https://github.com/chartjs/Chart.js/issues/9447) Apply segment styles with only single segment - [#&#8203;9446](https://github.com/chartjs/Chart.js/issues/9446) Fix interaction on partially visible bar - [#&#8203;9444](https://github.com/chartjs/Chart.js/issues/9444) Typescript 4.2+ compatibility - [#&#8203;9443](https://github.com/chartjs/Chart.js/issues/9443) Don't draw points outside chartArea - [#&#8203;9442](https://github.com/chartjs/Chart.js/issues/9442) Fix: config.platform was ignored - [#&#8203;9433](https://github.com/chartjs/Chart.js/issues/9433) Linear scale handle min === max when abs(max) > Number.MAX\_SAFE\_INTEGER - [#&#8203;9426](https://github.com/chartjs/Chart.js/issues/9426) lower default value of grid z index so it draws behind chart elements - [#&#8203;9425](https://github.com/chartjs/Chart.js/issues/9425) Properly update stacks when datasets index changes - [#&#8203;9413](https://github.com/chartjs/Chart.js/issues/9413) Fix center axis title positions - [#&#8203;9410](https://github.com/chartjs/Chart.js/issues/9410) Limit Math.asin inputs to the range \[-1, 1] - [#&#8203;9399](https://github.com/chartjs/Chart.js/issues/9399) Bar: inflate rects by 0.33px to avoid artifacts - [#&#8203;9400](https://github.com/chartjs/Chart.js/issues/9400) Fix bar direction when minBarLength is applied - [#&#8203;9394](https://github.com/chartjs/Chart.js/issues/9394) Fix stacked box dimension calculation with weights - [#&#8203;9353](https://github.com/chartjs/Chart.js/issues/9353) Adjust legend hitboxes when RTL and each item has a different size - [#&#8203;9373](https://github.com/chartjs/Chart.js/issues/9373) Point label specific scriptable context - [#&#8203;9367](https://github.com/chartjs/Chart.js/issues/9367) Decimation: Prevent buffer overflow #### Types - [#&#8203;9462](https://github.com/chartjs/Chart.js/issues/9462) Update radar dataset option typings - [#&#8203;9444](https://github.com/chartjs/Chart.js/issues/9444) Typescript 4.2+ compatibility - [#&#8203;9432](https://github.com/chartjs/Chart.js/issues/9432) Allow dataset specific ChartMeta type extensions - [#&#8203;9438](https://github.com/chartjs/Chart.js/issues/9438) Define bounds as a field common to all cartesian axes options - [#&#8203;9403](https://github.com/chartjs/Chart.js/issues/9403) Add missing resizeDelay option to types - [#&#8203;9386](https://github.com/chartjs/Chart.js/issues/9386) Indicate that \`SubTitle\` is a plugin in TS types - [#&#8203;9385](https://github.com/chartjs/Chart.js/issues/9385) Fix type linting for merge between two PRs - [#&#8203;9363](https://github.com/chartjs/Chart.js/issues/9363) Resolve warnings from typings - [#&#8203;9376](https://github.com/chartjs/Chart.js/issues/9376) Improve LegendElement and TooltipItem type definitions #### Documentation - [#&#8203;9458](https://github.com/chartjs/Chart.js/issues/9458) Adds HTMLCanvasElement as possible value for pointStyle option in the documentation - [#&#8203;9384](https://github.com/chartjs/Chart.js/issues/9384) Add SubTitle to the list of all esm imports #### Development - [#&#8203;9464](https://github.com/chartjs/Chart.js/issues/9464) Bump version to 3.5.0, update deps - [#&#8203;9414](https://github.com/chartjs/Chart.js/issues/9414) Update a failing fixture - [#&#8203;9363](https://github.com/chartjs/Chart.js/issues/9363) Resolve warnings from typings Thanks to [@&#8203;LeeLenaleee](https://github.com/LeeLenaleee), [@&#8203;Nico-DF](https://github.com/Nico-DF), [@&#8203;boreq](https://github.com/boreq), [@&#8203;drewsonne](https://github.com/drewsonne), [@&#8203;etimberg](https://github.com/etimberg), [@&#8203;kurkle](https://github.com/kurkle) and [@&#8203;stockiNail](https://github.com/stockiNail) ### [`v3.4.1`](https://github.com/chartjs/Chart.js/releases/tag/v3.4.1) [Compare Source](https://github.com/chartjs/Chart.js/compare/v3.4.0...v3.4.1) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/getting-started/v3-migration) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) * [#&#8203;9349](https://github.com/chartjs/Chart.js/issues/9349) Update deps #### Bugs Fixed - [#&#8203;9345](https://github.com/chartjs/Chart.js/issues/9345) Timeseries: support panning - [#&#8203;9343](https://github.com/chartjs/Chart.js/issues/9343) Account for floating point error in niceNum helper - [#&#8203;9341](https://github.com/chartjs/Chart.js/issues/9341) Enable pointStyle for doughnut, pie, and polar area charts - [#&#8203;9340](https://github.com/chartjs/Chart.js/issues/9340) Ensure correct item is clicked when a horizontal legend is in RTL mode - [#&#8203;9326](https://github.com/chartjs/Chart.js/issues/9326) Fix comma causing Terser issue #### Types - [#&#8203;9348](https://github.com/chartjs/Chart.js/issues/9348) Add type tests for float bar / object data arrays - [#&#8203;9336](https://github.com/chartjs/Chart.js/issues/9336) Update types with more possible events - [#&#8203;9330](https://github.com/chartjs/Chart.js/issues/9330) Fix typing of the isoWeekday field #### Documentation - [#&#8203;9338](https://github.com/chartjs/Chart.js/issues/9338) Fixes spacing options in the documentation for doughnuts charts #### Development - [#&#8203;9350](https://github.com/chartjs/Chart.js/issues/9350) Bump version to 3.4.1 Thanks to [@&#8203;LeeLenaleee](https://github.com/LeeLenaleee), [@&#8203;TriPSs](https://github.com/TriPSs), [@&#8203;etimberg](https://github.com/etimberg), [@&#8203;kurkle](https://github.com/kurkle) and [@&#8203;stockiNail](https://github.com/stockiNail) ### [`v3.4.0`](https://github.com/chartjs/Chart.js/releases/tag/v3.4.0) [Compare Source](https://github.com/chartjs/Chart.js/compare/v3.3.2...v3.4.0) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/getting-started/v3-migration) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) #### Enhancements - [#&#8203;9294](https://github.com/chartjs/Chart.js/issues/9294) New plugin: subtitle - [#&#8203;9277](https://github.com/chartjs/Chart.js/issues/9277) Apply maxTicksLimit to grid when ticks are hidden - [#&#8203;9286](https://github.com/chartjs/Chart.js/issues/9286) Fix: Don't use clip/unclipArea when \`clip: false\` - [#&#8203;9262](https://github.com/chartjs/Chart.js/issues/9262) Docs: Add copy button to code blocks - [#&#8203;9208](https://github.com/chartjs/Chart.js/issues/9208) Bar width and height are always defined regardless of orientation #### Bugs Fixed - [#&#8203;9290](https://github.com/chartjs/Chart.js/issues/9290) Legend: fix layout padding handling - [#&#8203;9291](https://github.com/chartjs/Chart.js/issues/9291) Bar: ignore not-grouped bars from group bar count - [#&#8203;9287](https://github.com/chartjs/Chart.js/issues/9287) Filler: skip NaN points from end of segment - [#&#8203;9261](https://github.com/chartjs/Chart.js/issues/9261) Fix updating of active elements - [#&#8203;9260](https://github.com/chartjs/Chart.js/issues/9260) Replace \[...set] with Array.from(set) - [#&#8203;9252](https://github.com/chartjs/Chart.js/issues/9252) \`null\` or \`undefined\` should skip grid lines in the time scale - [#&#8203;9199](https://github.com/chartjs/Chart.js/issues/9199) Fix rtl legend text alignment - [#&#8203;9191](https://github.com/chartjs/Chart.js/issues/9191) Tick backdrop padding is not scriptable #### Types - [#&#8203;9318](https://github.com/chartjs/Chart.js/issues/9318) fix typings - [#&#8203;9317](https://github.com/chartjs/Chart.js/issues/9317) Change callback name in typing and documentation - [#&#8203;9292](https://github.com/chartjs/Chart.js/issues/9292) resolve auto register typescript failure - [#&#8203;9284](https://github.com/chartjs/Chart.js/issues/9284) added fill type to line in options object and to radar dataset options - [#&#8203;9263](https://github.com/chartjs/Chart.js/issues/9263) Fix type definitions and docs for \`getPixelForValue\` - [#&#8203;9226](https://github.com/chartjs/Chart.js/issues/9226) Add missing types to legend #### Documentation - [#&#8203;9319](https://github.com/chartjs/Chart.js/issues/9319) Clarify how to import and use the helper functions with bundlers - [#&#8203;9318](https://github.com/chartjs/Chart.js/issues/9318) fix typings - [#&#8203;9317](https://github.com/chartjs/Chart.js/issues/9317) Change callback name in typing and documentation - [#&#8203;9315](https://github.com/chartjs/Chart.js/issues/9315) Fix broken link in scatter chart doc - [#&#8203;9296](https://github.com/chartjs/Chart.js/issues/9296) Docs: describe catching events with plugin - [#&#8203;9263](https://github.com/chartjs/Chart.js/issues/9263) Fix type definitions and docs for \`getPixelForValue\` - [#&#8203;9262](https://github.com/chartjs/Chart.js/issues/9262) Docs: Add copy button to code blocks - [#&#8203;9237](https://github.com/chartjs/Chart.js/issues/9237) Docs: fix broken and inconsistent links - [#&#8203;9228](https://github.com/chartjs/Chart.js/issues/9228) Fix broken guidelines url in PR template - [#&#8203;9219](https://github.com/chartjs/Chart.js/issues/9219) Update custom legend onClick example - [#&#8203;9207](https://github.com/chartjs/Chart.js/issues/9207) Add explanation on how to run the samples locally #### Development - [#&#8203;9322](https://github.com/chartjs/Chart.js/issues/9322) Bump to version 3.4.0 - [#&#8203;9276](https://github.com/chartjs/Chart.js/issues/9276) Refactor radialLinear scale and renderText helper Thanks to [@&#8203;DPS0340](https://github.com/DPS0340), [@&#8203;LeeLenaleee](https://github.com/LeeLenaleee), [@&#8203;akeinhell](https://github.com/akeinhell), [@&#8203;benlumley](https://github.com/benlumley), [@&#8203;etimberg](https://github.com/etimberg), [@&#8203;joshkel](https://github.com/joshkel) and [@&#8203;kurkle](https://github.com/kurkle) ### [`v3.3.2`](https://github.com/chartjs/Chart.js/releases/tag/v3.3.2) [Compare Source](https://github.com/chartjs/Chart.js/compare/v3.3.1...v3.3.2) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/getting-started/v3-migration) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) #### Bugs Fixed - [#&#8203;9187](https://github.com/chartjs/Chart.js/issues/9187) Make sure data is parsed before updateElements - [#&#8203;9183](https://github.com/chartjs/Chart.js/issues/9183) Fix error when swapping dataset locations #### Development - [#&#8203;9190](https://github.com/chartjs/Chart.js/issues/9190) Bump version to 3.3.2 Thanks to [@&#8203;kurkle](https://github.com/kurkle) ### [`v3.3.1`](https://github.com/chartjs/Chart.js/releases/tag/v3.3.1) [Compare Source](https://github.com/chartjs/Chart.js/compare/v3.3.0...v3.3.1) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/getting-started/v3-migration) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) #### Bugs Fixed - [#&#8203;9181](https://github.com/chartjs/Chart.js/issues/9181) Linear: Respect bounds option in tick generation - [#&#8203;9172](https://github.com/chartjs/Chart.js/issues/9172) Add declaration for Decimation plugin - [#&#8203;9170](https://github.com/chartjs/Chart.js/issues/9170) Fix clearStacks with custom scaleId - [#&#8203;9171](https://github.com/chartjs/Chart.js/issues/9171) Ignore items outside chart area for interaction - [#&#8203;9153](https://github.com/chartjs/Chart.js/issues/9153) Stop mutating arc state while drawing - [#&#8203;9152](https://github.com/chartjs/Chart.js/issues/9152) Fix: Arc getCenterPoint when full circle #### Types - [#&#8203;9172](https://github.com/chartjs/Chart.js/issues/9172) Add declaration for Decimation plugin #### Documentation - [#&#8203;9173](https://github.com/chartjs/Chart.js/issues/9173) Add documentation about default scales - [#&#8203;9168](https://github.com/chartjs/Chart.js/issues/9168) Update pointstyle type and default value - [#&#8203;9160](https://github.com/chartjs/Chart.js/issues/9160) show the utils file in the samples page to clarify what the functions do #### Development - [#&#8203;9182](https://github.com/chartjs/Chart.js/issues/9182) Version bump to 3.3.1 Thanks to [@&#8203;LeeLenaleee](https://github.com/LeeLenaleee), [@&#8203;etimberg](https://github.com/etimberg) and [@&#8203;kurkle](https://github.com/kurkle) ### [`v3.3.0`](https://github.com/chartjs/Chart.js/releases/tag/v3.3.0) [Compare Source](https://github.com/chartjs/Chart.js/compare/v3.2.1...v3.3.0) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/getting-started/v3-migration) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) #### Enhancements - [#&#8203;9084](https://github.com/chartjs/Chart.js/issues/9084) Support monotone cubic interpolation for vertical line charts - [#&#8203;9088](https://github.com/chartjs/Chart.js/issues/9088) Fix element reset animations in vertical line and bubble charts - [#&#8203;9020](https://github.com/chartjs/Chart.js/issues/9020) Add includeBounds option for cartesian ticks #### Bugs Fixed - [#&#8203;9129](https://github.com/chartjs/Chart.js/issues/9129) Further improve linear tick collision estimation - [#&#8203;9122](https://github.com/chartjs/Chart.js/issues/9122) Show correct decimal places when using count but \`min\` is not an integer - [#&#8203;9118](https://github.com/chartjs/Chart.js/issues/9118) Fix arc offset calculation - [#&#8203;9120](https://github.com/chartjs/Chart.js/issues/9120) Fix animations when data is replaced - [#&#8203;9121](https://github.com/chartjs/Chart.js/issues/9121) Fix doughnut rotation on float edge cases - [#&#8203;9105](https://github.com/chartjs/Chart.js/issues/9105) Delay data to elements synchronization to update - [#&#8203;9101](https://github.com/chartjs/Chart.js/issues/9101) Make sure context indices are up to date - [#&#8203;9062](https://github.com/chartjs/Chart.js/issues/9062) Fix setting options in array of objects - [#&#8203;9067](https://github.com/chartjs/Chart.js/issues/9067) Fix polar area tooltip item label - [#&#8203;9060](https://github.com/chartjs/Chart.js/issues/9060) add derived axis default values - [#&#8203;9050](https://github.com/chartjs/Chart.js/issues/9050) Fix detecting changed events - [#&#8203;9015](https://github.com/chartjs/Chart.js/issues/9015) Round canvas.style dimensions to avoid blurring - [#&#8203;9046](https://github.com/chartjs/Chart.js/issues/9046) Types: Export DecimationAlgorithm as const - [#&#8203;9045](https://github.com/chartjs/Chart.js/issues/9045) Allow scale to auto-adjust it's min when stacked - [#&#8203;9042](https://github.com/chartjs/Chart.js/issues/9042) Fix line segments with alignToPixel - [#&#8203;9027](https://github.com/chartjs/Chart.js/issues/9027) Fix: Avoid negative layout dimensions #### Types - [#&#8203;9124](https://github.com/chartjs/Chart.js/issues/9124) Correctly extend ExtendedPlugin interface - [#&#8203;9123](https://github.com/chartjs/Chart.js/issues/9123) Add missing props to ChartArea type - [#&#8203;9046](https://github.com/chartjs/Chart.js/issues/9046) Types: Export DecimationAlgorithm as const #### Documentation - [#&#8203;9147](https://github.com/chartjs/Chart.js/issues/9147) Improved error message when no date adapter provided - [#&#8203;9146](https://github.com/chartjs/Chart.js/issues/9146) Fix scales option in example - [#&#8203;9126](https://github.com/chartjs/Chart.js/issues/9126) Add attribute to custom legend onclick sample - [#&#8203;9115](https://github.com/chartjs/Chart.js/issues/9115) Add documentation note about only styling the parent div - [#&#8203;9111](https://github.com/chartjs/Chart.js/issues/9111) remove double sentence and adjust scale to scales.r - [#&#8203;9044](https://github.com/chartjs/Chart.js/issues/9044) HTML legend handles doughnut/pie charts - [#&#8203;9030](https://github.com/chartjs/Chart.js/issues/9030) fix typo on api.md - [#&#8203;9024](https://github.com/chartjs/Chart.js/issues/9024) Docs update file location pointers #### Development - [#&#8203;9149](https://github.com/chartjs/Chart.js/issues/9149) Bump version to 3.3, update dependencies - [#&#8203;9102](https://github.com/chartjs/Chart.js/issues/9102) Upgrade dependencies - [#&#8203;9091](https://github.com/chartjs/Chart.js/issues/9091) Add test for issue 9085 Thanks to [@&#8203;Flupp](https://github.com/Flupp), [@&#8203;LeeLenaleee](https://github.com/LeeLenaleee), [@&#8203;esuEichi](https://github.com/esuEichi), [@&#8203;etimberg](https://github.com/etimberg), [@&#8203;jonrimmer](https://github.com/jonrimmer), [@&#8203;joshkel](https://github.com/joshkel), [@&#8203;kurkle](https://github.com/kurkle), [@&#8203;nagix](https://github.com/nagix) and [@&#8203;sylhare](https://github.com/sylhare) ### [`v3.2.1`](https://github.com/chartjs/Chart.js/releases/tag/v3.2.1) [Compare Source](https://github.com/chartjs/Chart.js/compare/v3.2.0...v3.2.1) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/getting-started/v3-migration) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) #### Bugs Fixed - [#&#8203;9012](https://github.com/chartjs/Chart.js/issues/9012) Enable scriptable element chart options - [#&#8203;9008](https://github.com/chartjs/Chart.js/issues/9008) Fix for enabling monotone cubicInterpolationMode when tension is 0 - [#&#8203;8995](https://github.com/chartjs/Chart.js/issues/8995) Ignore truncated pixels in bar width calculation - [#&#8203;8983](https://github.com/chartjs/Chart.js/issues/8983) Improve linear tick generators collision estimation #### Types - [#&#8203;9012](https://github.com/chartjs/Chart.js/issues/9012) Enable scriptable element chart options - [#&#8203;9010](https://github.com/chartjs/Chart.js/issues/9010) Add test for DecimationAlgorithm type #### Documentation - [#&#8203;9011](https://github.com/chartjs/Chart.js/issues/9011) Add documentation on tooltip xAlign and yAlign #### Development - [#&#8203;9014](https://github.com/chartjs/Chart.js/issues/9014) Bump version to 3.2.1 Thanks to [@&#8203;etimberg](https://github.com/etimberg), [@&#8203;kurkle](https://github.com/kurkle) and [@&#8203;nagix](https://github.com/nagix) ### [`v3.2.0`](https://github.com/chartjs/Chart.js/releases/tag/v3.2.0) [Compare Source](https://github.com/chartjs/Chart.js/compare/v3.1.1...v3.2.0) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/getting-started/v3-migration) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) #### Enhancements - [#&#8203;8973](https://github.com/chartjs/Chart.js/issues/8973) Add drawTime: beforeDraw option to filler - [#&#8203;8941](https://github.com/chartjs/Chart.js/issues/8941) Only enable the bar borderRadius at the end of the stacks - [#&#8203;8936](https://github.com/chartjs/Chart.js/issues/8936) Scale: draw border on separate layer after grid - [#&#8203;8931](https://github.com/chartjs/Chart.js/issues/8931) Cartesian scale tick backdrop - [#&#8203;8926](https://github.com/chartjs/Chart.js/issues/8926) Add \`initial\` property to animation callbacks #### Performance - [#&#8203;8933](https://github.com/chartjs/Chart.js/issues/8933) Time: cache options needed by parse #### Bugs Fixed - [#&#8203;8972](https://github.com/chartjs/Chart.js/issues/8972) Fix skipNull for subsequent datasets - [#&#8203;8934](https://github.com/chartjs/Chart.js/issues/8934) Fix for allowing parsing:false with stacks - [#&#8203;8928](https://github.com/chartjs/Chart.js/issues/8928) Allow the events option to be changed at runtime #### Types - [#&#8203;8944](https://github.com/chartjs/Chart.js/issues/8944) Update helpers types export #### Documentation - [#&#8203;8971](https://github.com/chartjs/Chart.js/issues/8971) In html tooltip sample padding is read from the options - [#&#8203;8942](https://github.com/chartjs/Chart.js/issues/8942) Add example plugins for border and quadrants #### Development - [#&#8203;8974](https://github.com/chartjs/Chart.js/issues/8974) Bump to version 3.2.0 Thanks to [@&#8203;TinfoilPancakes](https://github.com/TinfoilPancakes), [@&#8203;etimberg](https://github.com/etimberg) and [@&#8203;kurkle](https://github.com/kurkle) ### [`v3.1.1`](https://github.com/chartjs/Chart.js/releases/tag/v3.1.1) [Compare Source](https://github.com/chartjs/Chart.js/compare/v3.1.0...v3.1.1) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/getting-started/v3-migration) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) #### Performance - [#&#8203;8898](https://github.com/chartjs/Chart.js/issues/8898) Do not redraw endlessly on mouse move #### Bugs Fixed - [#&#8203;8919](https://github.com/chartjs/Chart.js/issues/8919) Fix: Fill vertical lines - [#&#8203;8913](https://github.com/chartjs/Chart.js/issues/8913) Scale: Make sure grace is applied only once - [#&#8203;8918](https://github.com/chartjs/Chart.js/issues/8918) Fix: Initialize data object when replaced - [#&#8203;8914](https://github.com/chartjs/Chart.js/issues/8914) Skip ticks by callback value as documented - [#&#8203;8911](https://github.com/chartjs/Chart.js/issues/8911) Fix: don't draw segments out of bounds - [#&#8203;8898](https://github.com/chartjs/Chart.js/issues/8898) Do not redraw endlessly on mouse move - [#&#8203;8883](https://github.com/chartjs/Chart.js/issues/8883) Setting correct decimated values when below threshold - [#&#8203;8882](https://github.com/chartjs/Chart.js/issues/8882) Update @&#8203;<!---->simonbrunel/vuepress-plugin-versions #### Types - [#&#8203;8909](https://github.com/chartjs/Chart.js/issues/8909) Fix tooltip positioners and scriptable signature - [#&#8203;8891](https://github.com/chartjs/Chart.js/issues/8891) add number, null and undefined as valid return types #### Documentation - [#&#8203;8910](https://github.com/chartjs/Chart.js/issues/8910) Fix minor issues in docs - [#&#8203;8907](https://github.com/chartjs/Chart.js/issues/8907) Fix javascript syntax error in docs/general/padding.md - [#&#8203;8904](https://github.com/chartjs/Chart.js/issues/8904) Update v3-migration.md - [#&#8203;8887](https://github.com/chartjs/Chart.js/issues/8887) Docs: Update version menu title - [#&#8203;8882](https://github.com/chartjs/Chart.js/issues/8882) Update @&#8203;<!---->simonbrunel/vuepress-plugin-versions #### Development - [#&#8203;8927](https://github.com/chartjs/Chart.js/issues/8927) Bump to 3.1.1 Thanks to [@&#8203;DaaGER](https://github.com/DaaGER), [@&#8203;LeeLenaleee](https://github.com/LeeLenaleee), [@&#8203;Nico-DF](https://github.com/Nico-DF), [@&#8203;etimberg](https://github.com/etimberg) and [@&#8203;kurkle](https://github.com/kurkle) ### [`v3.1.0`](https://github.com/chartjs/Chart.js/releases/tag/v3.1.0) [Compare Source](https://github.com/chartjs/Chart.js/compare/v3.0.2...v3.1.0) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/getting-started/v3-migration) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) * [#&#8203;8856](https://github.com/chartjs/Chart.js/issues/8856) Update dependencies (excluding typescript) * [#&#8203;8843](https://github.com/chartjs/Chart.js/issues/8843) Filtering data before decimation #### Enhancements - [#&#8203;8876](https://github.com/chartjs/Chart.js/issues/8876) Enable event filtering per plugin - [#&#8203;8875](https://github.com/chartjs/Chart.js/issues/8875) Legend boxes support borderRadius - [#&#8203;8874](https://github.com/chartjs/Chart.js/issues/8874) Tooltip colorbox supports configurable borderWidth, borderRadius, and dash effect - [#&#8203;8867](https://github.com/chartjs/Chart.js/issues/8867) Support mirror option on x-axis - [#&#8203;8864](https://github.com/chartjs/Chart.js/issues/8864) Filler: support segment backgroundColor - [#&#8203;8844](https://github.com/chartjs/Chart.js/issues/8844) Allow styling of line segments - [#&#8203;8839](https://github.com/chartjs/Chart.js/issues/8839) Apply scale context to ticks scriptable options instead of chart context - [#&#8203;8823](https://github.com/chartjs/Chart.js/issues/8823) Dissociate border options from grid options #### Bugs Fixed - [#&#8203;8794](https://github.com/chartjs/Chart.js/issues/8794) Limit onHover to chartArea - [#&#8203;8877](https://github.com/chartjs/Chart.js/issues/8877) Font: validate style, move defaults to \`weight\` - [#&#8203;8872](https://github.com/chartjs/Chart.js/issues/8872) Handle animating stacked bars from null values - [#&#8203;8867](https://github.com/chartjs/Chart.js/issues/8867) Support mirror option on x-axis - [#&#8203;8868](https://github.com/chartjs/Chart.js/issues/8868) Consider dynamically positioned scales for padding - [#&#8203;8838](https://github.com/chartjs/Chart.js/issues/8838) \_boundSegments did not work on rising line - [#&#8203;8832](https://github.com/chartjs/Chart.js/issues/8832) Fix: update line options on resize, for gradients - [#&#8203;8822](https://github.com/chartjs/Chart.js/issues/8822) Time: Use callback helper on ticks.callback #### Types - [#&#8203;8847](https://github.com/chartjs/Chart.js/issues/8847) Include \`grace\` in LinearScaleOptions type definition #### Documentation - [#&#8203;8866](https://github.com/chartjs/Chart.js/issues/8866) Add version menu in documentation - [#&#8203;8869](https://github.com/chartjs/Chart.js/issues/8869) Document the no-parsing requirement of decimation - [#&#8203;8863](https://github.com/chartjs/Chart.js/issues/8863) Docs/broken link - [#&#8203;8850](https://github.com/chartjs/Chart.js/issues/8850) Docs migration register options - [#&#8203;8837](https://github.com/chartjs/Chart.js/issues/8837) Fix typos in canvas-background.md - [#&#8203;8836](https://github.com/chartjs/Chart.js/issues/8836) Fix typo in migration guide - [#&#8203;8829](https://github.com/chartjs/Chart.js/issues/8829) complete the first 'getting-started' example - [#&#8203;8828](https://github.com/chartjs/Chart.js/issues/8828) Document plugin event handling #### Development - [#&#8203;8878](https://github.com/chartjs/Chart.js/issues/8878) Bump to 3.1.0 Thanks to [@&#8203;LeeLenaleee](https://github.com/LeeLenaleee), [@&#8203;MosesMendoza](https://github.com/MosesMendoza), [@&#8203;Nico-DF](https://github.com/Nico-DF), [@&#8203;etimberg](https://github.com/etimberg), [@&#8203;kurkle](https://github.com/kurkle), [@&#8203;m-ahmadi](https://github.com/m-ahmadi), [@&#8203;mjcross](https://github.com/mjcross) and [@&#8203;stockiNail](https://github.com/stockiNail) ### [`v3.0.2`](https://github.com/chartjs/Chart.js/releases/tag/v3.0.2) [Compare Source](https://github.com/chartjs/Chart.js/compare/v3.0.1...v3.0.2) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/getting-started/v3-migration) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) #### Bugs Fixed - [#&#8203;8811](https://github.com/chartjs/Chart.js/issues/8811) Fix: tick spacing when min=0 | niceMin or max=0 - [#&#8203;8801](https://github.com/chartjs/Chart.js/issues/8801) Correct decimation plugin documentation - [#&#8203;8793](https://github.com/chartjs/Chart.js/issues/8793) Logarithmic: handle null/NaN values #### Documentation - [#&#8203;8791](https://github.com/chartjs/Chart.js/issues/8791) Docs small update - [#&#8203;8803](https://github.com/chartjs/Chart.js/issues/8803) Update documentation for getElementsAtEventForMode - [#&#8203;8801](https://github.com/chartjs/Chart.js/issues/8801) Correct decimation plugin documentation - [#&#8203;8798](https://github.com/chartjs/Chart.js/issues/8798) Update ticks.callback documentation Thanks to [@&#8203;LeeLenaleee](https://github.com/LeeLenaleee), [@&#8203;etimberg](https://github.com/etimberg) and [@&#8203;kurkle](https://github.com/kurkle) ### [`v3.0.1`](https://github.com/chartjs/Chart.js/releases/tag/v3.0.1) [Compare Source](https://github.com/chartjs/Chart.js/compare/v3.0.0...v3.0.1) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/getting-started/v3-migration) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) #### Bugs Fixed - [#&#8203;8789](https://github.com/chartjs/Chart.js/issues/8789) Patch: option scope might not be an object Thanks to [@&#8203;kurkle](https://github.com/kurkle) ### [`v3.0.0`](https://github.com/chartjs/Chart.js/releases/tag/v3.0.0) [Compare Source](https://github.com/chartjs/Chart.js/compare/v2.9.4...v3.0.0) ### Essential Links - [npm](https://www.npmjs.com/package/chart.js) - [Migration guide](https://www.chartjs.org/docs/latest/getting-started/v3-migration) - [Docs](https://www.chartjs.org/docs/latest/) - [API](https://www.chartjs.org/docs/latest/api/) - [Samples](https://www.chartjs.org/docs/latest/samples/) #### Bugs Fixed - [#&#8203;8787](https://github.com/chartjs/Chart.js/issues/8787) Proxy: make sure set value ends up in first scope - [#&#8203;8782](https://github.com/chartjs/Chart.js/issues/8782) Fix tooltip align & external types #### Types - [#&#8203;8782](https://github.com/chartjs/Chart.js/issues/8782) Fix tooltip align & external types #### Documentation - [#&#8203;8693](https://github.com/chartjs/Chart.js/issues/8693) Update readme links and bug issue template - [#&#8203;8788](https://github.com/chartjs/Chart.js/issues/8788) Tweak redirect urls - [#&#8203;8785](https://github.com/chartjs/Chart.js/issues/8785) Vuepress HTML redirect for samples folder - [#&#8203;8786](https://github.com/chartjs/Chart.js/issues/8786) Adds scriptable column to options table in the title documentation - [#&#8203;8784](https://github.com/chartjs/Chart.js/issues/8784) Add vuepress-plugin-flexsearch - [#&#8203;8783](https://github.com/chartjs/Chart.js/issues/8783) Redirect to first sample - [#&#8203;8780](https://github.com/chartjs/Chart.js/issues/8780) Make samples more inline with eachother #### Development - [#&#8203;8781](https://github.com/chartjs/Chart.js/issues/8781) v3.0.0 version bump #### Included pre-releases - [3.0.0-rc.7](https://github.com/chartjs/Chart.js/releases/tag/v3.0.0-rc.7) - [3.0.0-rc.6](https://github.com/chartjs/Chart.js/releases/tag/v3.0.0-rc.6) - [3.0.0-rc.5](https://github.com/chartjs/Chart.js/releases/tag/v3.0.0-rc.5) - [3.0.0-rc.4](https://github.com/chartjs/Chart.js/releases/tag/v3.0.0-rc.4) - [3.0.0-rc.3](https://github.com/chartjs/Chart.js/releases/tag/v3.0.0-rc.3) - [3.0.0-rc.2](https://github.com/chartjs/Chart.js/releases/tag/v3.0.0-rc.2) - [3.0.0-rc](https://github.com/chartjs/Chart.js/releases/tag/v3.0.0-rc) - [3.0.0-beta.14](https://github.com/chartjs/Chart.js/releases/tag/v3.0.0-beta.14) - [3.0.0-beta.13](https://github.com/chartjs/Chart.js/releases/tag/v3.0.0-beta.13) - [3.0.0-beta.12](https://github.com/chartjs/Chart.js/releases/tag/v3.0.0-beta.12) - [3.0.0-beta.11](https://github.com/chartjs/Chart.js/releases/tag/v3.0.0-beta.11) - [3.0.0-beta.10](https://github.com/chartjs/Chart.js/releases/tag/v3.0.0-beta.10) - [3.0.0-beta.9](https://github.com/chartjs/Chart.js/releases/tag/v3.0.0-beta.9) - [3.0.0-beta.8](https://github.com/chartjs/Chart.js/releases/tag/v3.0.0-beta.8) - [3.0.0-beta.7](https://github.com/chartjs/Chart.js/releases/tag/v3.0.0-beta.7) - [3.0.0-beta.6](https://github.com/chartjs/Chart.js/releases/tag/3.0.0-beta.6) - [3.0.0-beta.5](https://github.com/chartjs/Chart.js/releases/tag/v3.0.0-beta.5) - [3.0.0-beta.4](https://github.com/chartjs/Chart.js/releases/tag/v3.0.0-beta.4) - [3.0.0-beta.3](https://github.com/chartjs/Chart.js/releases/tag/v3.0.0-beta.3) - [3.0.0-beta.2](https://github.com/chartjs/Chart.js/releases/tag/v3.0.0-beta.2) - [3.0.0-beta](https://github.com/chartjs/Chart.js/releases/tag/v3.0.0-beta) - [3.0.0-alpha.2](https://github.com/chartjs/Chart.js/releases/tag/v3.0.0-alpha.2) - [3.0.0-alpha](https://github.com/chartjs/Chart.js/releases/tag/v3.0.0-alpha) Thanks to [@&#8203;LeeLenaleee](https://github.com/LeeLenaleee), [@&#8203;etimberg](https://github.com/etimberg), [@&#8203;kurkle](https://github.com/kurkle) and [@&#8203;stockiNail](https://github.com/stockiNail) ### [`v2.9.4`](https://github.com/chartjs/Chart.js/releases/tag/v2.9.4) [Compare Source](https://github.com/chartjs/Chart.js/compare/v2.9.3...v2.9.4) This is the last release of v2 and focused on fixing bugs identified in the v2.9.3 release. ### Bugs Fixed - [#&#8203;7404](https://github.com/chartjs/Chart.js/issues/7404) - Preserve prototypes when cloning. Thanks [@&#8203;iddings](https://github.com/iddings) - [#&#8203;7587](https://github.com/chartjs/Chart.js/issues/7587) - Fix docs for external moment.js. Thanks [@&#8203;mojoaxel](https://github.com/mojoaxel) - [#&#8203;7853](https://github.com/chartjs/Chart.js/issues/7853) - Fix box recursion when dimensions are NaN. Thanks [@&#8203;alessandroasm](https://github.com/alessandroasm) - [#&#8203;7883](https://github.com/chartjs/Chart.js/issues/7883) - Fix call stack exception when computing label sizes. Thanks [@&#8203;silentmatt](https://github.com/silentmatt) - [#&#8203;7918](https://github.com/chartjs/Chart.js/issues/7918) - Prevent global prototype pollution via the merge helper - [#&#8203;7920](https://github.com/chartjs/Chart.js/issues/7920) - Use Object.create(null) as `merge` target, to prevent prototype pollution ### [`v2.9.3`](https://github.com/chartjs/Chart.js/releases/tag/v2.9.3) [Compare Source](https://github.com/chartjs/Chart.js/compare/v2.9.2...v2.9.3) ### Bug Fixes - [#&#8203;6698](https://github.com/chartjs/Chart.js/issues/6698) Fix undefined variable - [#&#8203;6719](https://github.com/chartjs/Chart.js/issues/6719) Don't make legend empty when fill is false Thanks to the maintainers and collaborators for their help to improve and test Chart.js ([@&#8203;kurkle](https://github.com/kurkle), [@&#8203;benmccann](https://github.com/benmccann), and [@&#8203;etimberg](https://github.com/etimberg)). ### [`v2.9.2`](https://github.com/chartjs/Chart.js/releases/tag/v2.9.2) [Compare Source](https://github.com/chartjs/Chart.js/compare/v2.9.1...v2.9.2) ### Bug Fixes - [#&#8203;6641](https://github.com/chartjs/Chart.js/issues/6641) IE11 & Edge compatible style injection - [#&#8203;6655](https://github.com/chartjs/Chart.js/issues/6655) Backwards compatible default fill for radar charts - [#&#8203;6660](https://github.com/chartjs/Chart.js/issues/6660) Improve clipping of line charts when border widths are large - [#&#8203;6661](https://github.com/chartjs/Chart.js/issues/6661) When a legend item is clicked, make sure the correct item is hidden - [#&#8203;6663](https://github.com/chartjs/Chart.js/issues/6663) Refresh package-lock file to pick up new dependency ### Performance - [#&#8203;6671](https://github.com/chartjs/Chart.js/issues/6671) Stop unnecessary line calculations ### Documentation - [#&#8203;6643](https://github.com/chartjs/Chart.js/issues/6643) Combine performance documentation sections Thanks to the maintainers and collaborators for their help to improve and test Chart.js ([@&#8203;nagix](https://github.com/nagix), [@&#8203;kurkle](https://github.com/kurkle), [@&#8203;benmccann](https://github.com/benmccann), [@&#8203;etimberg](https://github.com/etimberg) and [@&#8203;simonbrunel](https://github.com/simonbrunel)). ### [`v2.9.1`](https://github.com/chartjs/Chart.js/releases/tag/v2.9.1) [Compare Source](https://github.com/chartjs/Chart.js/compare/v2.9.0...v2.9.1) ### Bug Fixes - [#&#8203;6603](https://github.com/chartjs/Chart.js/issues/6603) Fix deprecation warnings for horizontal bar charts - [#&#8203;6608](https://github.com/chartjs/Chart.js/issues/6608) Fix zoom plugin by no longer clipping `scale.getDecimalForPixel` to the chart area - [#&#8203;6617](https://github.com/chartjs/Chart.js/issues/6617) Non numeric Y axes did not work ### Documentation - [#&#8203;6613](https://github.com/chartjs/Chart.js/issues/6613) Add link to performance documentation ### Development - [#&#8203;6609](https://github.com/chartjs/Chart.js/issues/6609) - Tests no longer use deprecated options Thanks to the maintainers and collaborators for their help to improve and test Chart.js ([@&#8203;nagix](https://github.com/nagix), [@&#8203;kurkle](https://github.com/kurkle), [@&#8203;benmccann](https://github.com/benmccann), [@&#8203;etimberg](https://github.com/etimberg) and [@&#8203;simonbrunel](https://github.com/simonbrunel)). ### [`v2.9.0`](https://github.com/chartjs/Chart.js/releases/tag/v2.9.0) [Compare Source](https://github.com/chartjs/Chart.js/compare/v2.8.0...v2.9.0) #### Breaking changes - [#&#8203;6131](https://github.com/chartjs/Chart.js/pull/6131) `helpers._decimalPlaces` is now private #### Enhancements - [#&#8203;6527](https://github.com/chartjs/Chart.js/pull/6527) Hover styling for dataset in 'dataset' mode - [#&#8203;6268](https://github.com/chartjs/Chart.js/pull/6268) Implement `dataset.order` - [#&#8203;6509](https://github.com/chartjs/Chart.js/pull/6509) Make `autoSkip` aware of major ticks - [#&#8203;6460](https://github.com/chartjs/Chart.js/pull/6460) Implemented RTL support for legends and tooltips - [#&#8203;6490](https://github.com/chartjs/Chart.js/pull/6490) HTML DOM building - [#&#8203;6326](https://github.com/chartjs/Chart.js/pull/6326) Draw the rightmost grid line when `offsetGridLines` is true - [#&#8203;6343](https://github.com/chartjs/Chart.js/pull/6343) Handle reverse support in core.scale - [#&#8203;6289](https://github.com/chartjs/Chart.js/pull/6289) Support `spanGaps` in radar charts - [#&#8203;6323](https://github.com/chartjs/Chart.js/pull/6323) Support object values for bar charts - [#&#8203;6287](https://github.com/chartjs/Chart.js/pull/6287) Support rotation for `pointStyle` image - [#&#8203;6257](https://github.com/chartjs/Chart.js/pull/6257) Allow specifying labels in time scale options - [#&#8203;6281](https://github.com/chartjs/Chart.js/pull/6281) Support boundary filling modes in radialLinear scale - [#&#8203;6056](https://github.com/chartjs/Chart.js/pull/6056) Add support for floating bar chart (`[start, end]`) - [#&#8203;6241](https://github.com/chartjs/Chart.js/pull/6241) Implement layers (z-index) for layout items - [#&#8203;5621](https://github.com/chartjs/Chart.js/pull/5621) Make legend appearance consistent with chart elements - [#&#8203;5999](https://github.com/chartjs/Chart.js/pull/5999) Implement per-dataset type (default and per-chart) options - [#&#8203;6097](https://github.com/chartjs/Chart.js/pull/6097) Specify time scale `min` and `max` in standard manner - [#&#8203;6141](https://github.com/chartjs/Chart.js/pull/6141) Legend align option. Thanks [@&#8203;dkichler](https://github.com/dkichler) - [#&#8203;6128](https://github.com/chartjs/Chart.js/pull/6128) Make line options scriptable. Thanks [@&#8203;janelledement](https://github.com/janelledement) #### Performance - [#&#8203;6594](https://github.com/chartjs/Chart.js/pull/6594) Remove a couple calls to `helpers.each` - [#&#8203;6247](https://github.com/chartjs/Chart.js/pull/6247) Remove duplicate scale building - [#&#8203;6579](https://github.com/chartjs/Chart.js/pull/6579) Cache resolved data element options - [#&#8203;6575](https://github.com/chartjs/Chart.js/pull/6575) Simplify line drawing - [#&#8203;6508](https://github.com/chartjs/Chart.js/pull/6508) Add `ticks.sampleSize` option - [#&#8203;6354](https://github.com/chartjs/Chart.js/pull/6354) Perf improvement for `ticks.source:'labels'` - [#&#8203;6301](https://github.com/chartjs/Chart.js/pull/6301) Replace `helpers.each` with for-loops - [#&#8203;6304](https://github.com/chartjs/Chart.js/pull/6304) Refactor `core.layout` - [#&#8203;6307](https://github.com/chartjs/Chart.js/pull/6307) Faster major tick calculation - [#&#8203;6250](https://github.com/chartjs/Chart.js/pull/6250) Cache `getScaleForId()` calls in the line controller - [#&#8203;6148](https://github.com/chartjs/Chart.js/pull/6148) Replace `helpers.extend` #### Bug Fixes - [#&#8203;6249](https://github.com/chartjs/Chart.js/pull/6249) Bar options should be defined on dataset instead of scale - [#&#8203;6556](https://github.com/chartjs/Chart.js/pull/6556) Inject styles into Shadow DOM when inside Shadow DOM - [#&#8203;6583](https://github.com/chartjs/Chart.js/pull/6583) Fix unit determination when `autoSkip` is enabled - [#&#8203;6581](https://github.com/chartjs/Chart.js/pull/6581) Return correct index/value id in radar/polarArea - [#&#8203;6580](https://github.com/chartjs/Chart.js/pull/6580) Fix logarithmic test to use correct scale - [#&#8203;6528](https://github.com/chartjs/Chart.js/pull/6528) Make sure `zeroLineIndex` is defined - [#&#8203;6523](https://github.com/chartjs/Chart.js/pull/6523) Fix right side scale ticks - [#&#8203;6423](https://github.com/chartjs/Chart.js/pull/6423) Clamp argument of `toExponential` between 0 and 20. Thanks [@&#8203;veggiesaurus](https://github.com/veggiesaurus) - [#&#8203;6328](https://github.com/chartjs/Chart.js/pull/6328) Fix `getValueForPixel` in time scale - [#&#8203;6292](https://github.com/chartjs/Chart.js/pull/6292) Adjust vertical alignment of tooltip items - [#&#8203;6321](https://github.com/chartjs/Chart.js/pull/6321) Update dataset metadata when axisID changes - [#&#8203;6291](https://github.com/chartjs/Chart.js/pull/6291) Assign unique scale IDs - [#&#8203;6288](https://github.com/chartjs/Chart.js/pull/6288) Fix regression in `lineTension` - [#&#8203;6282](https://github.com/chartjs/Chart.js/pull/6282) Treat null as NaN in radialLinear scale - [#&#8203;6285](https://github.com/chartjs/Chart.js/pull/6285) Keep lines on the left and right edges from being cut - [#&#8203;6269](https://github.com/chartjs/Chart.js/pull/6269) Apply lineJoin style at the first point in radar charts - [#&#8203;6280](https://github.com/chartjs/Chart.js/pull/6280) Fix point label counting in radialLinear scale - [#&#8203;6279](https://github.com/chartjs/Chart.js/pull/6279) Treat 0 as a valid point label - [#&#8203;6265](https://github.com/chartjs/Chart.js/pull/6265) Utilize `tick.major` in `tickFormatFunction` - [#&#8203;6264](https://github.com/chartjs/Chart.js/pull/6264) Apply offset regardless of min/max setting - [#&#8203;6258](https://github.com/chartjs/Chart.js/pull/6258) Fix ticks generation for vertical time scale - [#&#8203;6259](https://github.com/chartjs/Chart.js/pull/6259) Fix `determineUnitForFormatting` floating point error - [#&#8203;6115](https://github.com/chartjs/Chart.js/pull/6115) Fix overlapping auto-generated ticks on time scale - [#&#8203;6238](https://github.com/chartjs/Chart.js/pull/6238) Fix tooltip title in radar charts - [#&#8203;6224](https://github.com/chartjs/Chart.js/pull/6224) Fix arc size calculation when circumference is under 2\*PI - [#&#8203;6215](https://github.com/chartjs/Chart.js/pull/6215) Fix arc border with circumference over 2\*PI - [#&#8203;5961](https://github.com/chartjs/Chart.js/pull/5961) Fix tick label rotation and layout issues - [#&#8203;6182](https://github.com/chartjs/Chart.js/pull/6182) Use the appropriate time format for auto tick generation - [#&#8203;6208](https://github.com/chartjs/Chart.js/pull/6208) Fill before drawing lines - [#&#8203;6209](https://github.com/chartjs/Chart.js/pull/6209) Fix missing tooltip value in radar charts - [#&#8203;6177](https://github.com/chartjs/Chart.js/pull/6177) Normalize angle for index in radialLinear scale - [#&#8203;6102](https://github.com/chartjs/Chart.js/pull/6102) Fix `ticks.minor` and `ticks.major` issues - [#&#8203;6129](https://github.com/chartjs/Chart.js/pull/6129) Fix hover animation - [#&#8203;6120](https://github.com/chartjs/Chart.js/pull/6120) Improved `helpers.almostWhole` #### Documentation - [#&#8203;6585](https://github.com/chartjs/Chart.js/pull/6585) Add a note to the perf documentation about rotation - [#&#8203;6554](https://github.com/chartjs/Chart.js/pull/6554) Add link to linear radial axis for radar chart doc - [#&#8203;6491](https://github.com/chartjs/Chart.js/pull/6491) Add `elements.arc.angle` in documentation - [#&#8203;6466](https://github.com/chartjs/Chart.js/pull/6466) Fixed incorrect spelling in pie dataset options. Thanks [@&#8203;SeppPenner](https://github.com/SeppPenner) - [#&#8203;6435](https://github.com/chartjs/Chart.js/pull/6435) Add link back to home page from docs - [#&#8203;6393](https://github.com/chartjs/Chart.js/pull/6393) Add radar chart config options - [#&#8203;6293](https://github.com/chartjs/Chart.js/pull/6293) Correct descriptions on `ticks.display` and add `pointLabels.display` - [#&#8203;6263](https://github.com/chartjs/Chart.js/pull/6263) Add sample for radar scriptable options - [#&#8203;6244](https://github.com/chartjs/Chart.js/pull/6244) Fix data in timeseries sample - [#&#8203;6186](https://github.com/chartjs/Chart.js/pull/6186) Typo in doughnut documentation. Thanks [@&#8203;joshuamcewen](https://github.com/joshuamcewen) - [#&#8203;6132](https://github.com/chartjs/Chart.js/pull/6132) Make docs consistent for `cubicInterpolationMode` and `fill`. Thanks [@&#8203;stockiNail](https://github.com/stockiNail) - [#&#8203;6119](https://github.com/chartjs/Chart.js/pull/6119) Demonstrate multiple units on timeseries example - [#&#8203;6139](https://github.com/chartjs/Chart.js/pull/6139) Documented tooltip alignment options - [#&#8203;6134](https://github.com/chartjs/Chart.js/pull/6134) Documented date adapter #### Development - [#&#8203;6507](https://github.com/chartjs/Chart.js/pull/6507) Improved minimization when calling helpers - [#&#8203;6497](https://github.com/chartjs/Chart.js/pull/6497) Reduce indentation - [#&#8203;6355](https://github.com/chartjs/Chart.js/pull/6355) Do `autoSkip` in `update` - [#&#8203;6493](https://github.com/chartjs/Chart.js/pull/6493) Upgrade rollup and plugins - [#&#8203;6362](https://github.com/chartjs/Chart.js/pull/6362) Improved code minimization - [#&#8203;6360](https://github.com/chartjs/Chart.js/pull/6360) Create `helpers.math._factorize` - [#&#8203;6351](https://github.com/chartjs/Chart.js/pull/6351) Lazily compute label sizes - [#&#8203;6347](https://github.com/chartjs/Chart.js/pull/6347) Render charts only once in time scale tests - [#&#8203;6246](https://github.com/chartjs/Chart.js/pull/6246) Avoid time related deprecation warnings in tests ## Thanks to the maintainers and collaborators for their help to improve and test Chart.js ([@&#8203;nagix](https://github.com/nagix), [@&#8203;kurkle](https://github.com/kurkle), [@&#8203;benmccann](https://github.com/benmccann), [@&#8203;etimberg](https://github.com/etimberg) and [@&#8203;simonbrunel](https://github.com/simonbrunel)). ### [`v2.8.0`](https://github.com/chartjs/Chart.js/releases/tag/v2.8.0): Version 2.8.0 [Compare Source](https://github.com/chartjs/Chart.js/compare/v2.7.3...v2.8.0) Documentation: <http://www.chartjs.org/docs/2.8.0/> #### Deprecations - [#&#8203;5868](https://github.com/chartjs/Chart.js/issues/5868) Deprecate `Chart.{Type}` classes - [#&#8203;6022](https://github.com/chartjs/Chart.js/issues/6022) Deprecate `configMerge` and `scaleMerge` helpers #### Enhancements - [#&#8203;5741](https://github.com/chartjs/Chart.js/issues/5741) Add `minBarLength` option for bar chart. Thanks [@&#8203;adube](https://github.com/adube) - [#&#8203;5780](https://github.com/chartjs/Chart.js/issues/5780) Bar options are now scriptable - [#&#8203;5841](https://github.com/chartjs/Chart.js/issues/5841) Draw inner border for arc elements - [#&#8203;5850](https://github.com/chartjs/Chart.js/issues/5850) Add support for gridLines/angleLines borderDash for polar area and radar charts - [#&#8203;5855](https://github.com/chartjs/Chart.js/issues/5855) Moved drawing of radial lines before drawing the tick labels. Thanks [@&#8203;fhp](https://github.com/fhp) - [#&#8203;5885](https://github.com/chartjs/Chart.js/issues/5885) Add support for hiding axis when all datasets are hidden. Thanks [@&#8203;davesalomon](https://github.com/davesalomon) - [#&#8203;5905](https://github.com/chartjs/Chart.js/issues/5905) Add support for typed arrays - [#&#8203;5908](https://github.com/chartjs/Chart.js/issues/5908) Add midpoint interpolation to stepped line. Thanks [@&#8203;veggiesaurus](https://github.com/veggiesaurus) - [#&#8203;5927](https://github.com/chartjs/Chart.js/issues/5927) Add `reverse` support to time scale - [#&#8203;5938](https://github.com/chartjs/Chart.js/issues/5938) Improve tick generation for linear scales - [#&#8203;5951](https://github.com/chartjs/Chart.js/issues/5951) New weight option for pie and doughnut charts - [#&#8203;5960](https://github.com/chartjs/Chart.js/issues/5960) Implement adapter to abstract date/time features - [#&#8203;5966](https://github.com/chartjs/Chart.js/issues/5966) Doughnut options are now scriptable - [#&#8203;5973](https://github.com/chartjs/Chart.js/issues/5973) Line options are now scriptable - [#&#8203;5976](https://github.com/chartjs/Chart.js/issues/5976) Polar area options are now scriptable - [#&#8203;5978](https://github.com/chartjs/Chart.js/issues/5978) Make moment optional from our UMD builds - [#&#8203;5982](https://github.com/chartjs/Chart.js/issues/5982) Remove date auto type conversions - [#&#8203;6019](https://github.com/chartjs/Chart.js/issues/6019) Improve time scale performances - [#&#8203;6041](https://github.com/chartjs/Chart.js/issues/6041) Radar options are now scriptable - [#&#8203;6048](https://github.com/chartjs/Chart.js/issues/6048) Move CSS in a separate file to be CSP-compliant - [#&#8203;6059](https://github.com/chartjs/Chart.js/issues/6059) Add `onLeave` callback to legend. Thanks [@&#8203;jonrimmer](https://github.com/jonrimmer) - [#&#8203;6077](https://github.com/chartjs/Chart.js/issues/6077) Allow configuration of borderWidth as object - [#&#8203;6105](https://github.com/chartjs/Chart.js/issues/6105) Optimize the npm package by removing useless files #### Issues Fixed - [#&#8203;5331](https://github.com/chartjs/Chart.js/issues/5331) Make animation duration consistent across browsers. Thanks [@&#8203;serhii-yakymuk](https://github.com/serhii-yakymuk) - [#&#8203;5609](https://github.com/chartjs/Chart.js/issues/5609) Fix `offsetGridLine` behavior with a single data point - [#&#8203;5750](https://github.com/chartjs/Chart.js/issues/5750) Ensure that the time scale safely accesses `data.labels` - [#&#8203;5751](https://github.com/chartjs/Chart.js/issues/5751) Handle axis `lineWidth` as an array - [#&#8203;5752](https://github.com/chartjs/Chart.js/issues/5752) Ensure that `new Number()` is correctly handled - [#&#8203;5776](https://github.com/chartjs/Chart.js/issues/5776) Fix legend layout padding at the start of columns. Thanks [@&#8203;jtagscherer](https://github.com/jtagscherer) - [#&#8203;5786](https://github.com/chartjs/Chart.js/issues/5786) Support decimal `stepSize` - [#&#8203;5790](https://github.com/chartjs/Chart.js/issues/5790) Add error margin for detecting if a point or line is in the chart area - [#&#8203;5816](https://github.com/chartjs/Chart.js/issues/5816) Fix legend item layout issue - [#&#8203;5828](https://github.com/chartjs/Chart.js/issues/5828) Improve shadow root detection. Thanks [@&#8203;karaxuna](https://github.com/karaxuna) - [#&#8203;5846](https://github.com/chartjs/Chart.js/issues/5846) Correct calculation of padding in percent. Thanks [@&#8203;chtheis](https://github.com/chtheis) - [#&#8203;5848](https://github.com/chartjs/Chart.js/issues/5848) Fix radial scale topmost tick label and the bottom of the chart area that were cut off - [#&#8203;5857](https://github.com/chartjs/Chart.js/issues/5857) Fix nearest interaction mode - [#&#8203;5858](https://github.com/chartjs/Chart.js/issues/5858) Adjust the size of rectRounded/rectRot points to fit the circle with pointRadius - [#&#8203;5865](https://github.com/chartjs/Chart.js/issues/5865) Support CanvasGradient for hover colors - [#&#8203;5869](https://github.com/chartjs/Chart.js/issues/5869) Tooltip support for CanvasPattern and CanvasGradient - [#&#8203;5880](https://github.com/chartjs/Chart.js/issues/5880) Fix the rounding issue of floating point numbers in category scale - [#&#8203;5884](https://github.com/chartjs/Chart.js/issues/5884) Remove gaps on the left and right when the axis offset is set to true - [#&#8203;5891](https://github.com/chartjs/Chart.js/issues/5891) Remove autoSkip logic to always display last tick. Thanks [@&#8203;sgray](https://github.com/sgray) - [#&#8203;5909](https://github.com/chartjs/Chart.js/issues/5909) Remove `innerHTML` usage from our DOM platform - [#&#8203;5913](https://github.com/chartjs/Chart.js/issues/5913) Re-allow modifying ticks in `afterBuildTicks` - [#&#8203;5914](https://github.com/chartjs/Chart.js/issues/5914) Add `scale.pointLabels.lineHeight` and `scale.ticks.lineHeight` options - [#&#8203;5920](https://github.com/chartjs/Chart.js/issues/5920) Return correct label for value type axis - [#&#8203;5922](https://github.com/chartjs/Chart.js/issues/5922) Properly calculate space needed by tick label when `autoSkip` is `true` - [#&#8203;5925](https://github.com/chartjs/Chart.js/issues/5925) Align title, body and footer inside tooltip - [#&#8203;5933](https://github.com/chartjs/Chart.js/issues/5933) Fix time scale `ticks.reverse` issue - [#&#8203;5936](https://github.com/chartjs/Chart.js/issues/5936) Fix "RangeError" exception when labels are big (>125000). Thanks [@&#8203;ckyycc](https://github.com/ckyycc) - [#&#8203;5937](https://github.com/chartjs/Chart.js/issues/5937) Prevent Bezier points from being capped when a data point is off the chart - [#&#8203;5947](https://github.com/chartjs/Chart.js/issues/5947) Cast `getRightValue` to number in bar chart - [#&#8203;5948](https://github.com/chartjs/Chart.js/issues/5948) Fix ticks generation when working with tiny numbers - [#&#8203;5963](https://github.com/chartjs/Chart.js/issues/5963) Fix `fitWithPointLabels` calculation in radial linear scale - [#&#8203;5996](https://github.com/chartjs/Chart.js/issues/5996) Replace tooltip item `xLabel` and `yLabel` with `label` and `value` - [#&#8203;6006](https://github.com/chartjs/Chart.js/issues/6006) Enhance legend label color point when `usePointStyle` is `true`. Thanks [@&#8203;alfiehd](https://github.com/alfiehd) - [#&#8203;6007](https://github.com/chartjs/Chart.js/issues/6007) Prevent drawing radial linear scale twice - [#&#8203;6008](https://github.com/chartjs/Chart.js/issues/6008) Supply correct start parameter to `insertElements` - [#&#8203;6011](https://github.com/chartjs/Chart.js/issues/6011) Prevent infinite resize when vertical scrollbar appears - [#&#8203;6021](https://github.com/chartjs/Chart.js/issues/6021) Fix padding of horizontal axes when labels are rotated - [#&#8203;6027](https://github.com/chartjs/Chart.js/issues/6027) Provide a rectangle `getArea` implementation for horizontal bars - [#&#8203;6046](https://github.com/chartjs/Chart.js/issues/6046) Rename `addEventListener` and `removeEventListener` - [#&#8203;6058](https://github.com/chartjs/Chart.js/issues/6058) Ignore invalid log scale min and max - [#&#8203;6060](https://github.com/chartjs/Chart.js/issues/6060) Handle frozen `dataset.data` arrays - [#&#8203;6063](https://github.com/chartjs/Chart.js/issues/6063) Fix responsive resize on RTL page #### Documentation - [#&#8203;5756](https://github.com/chartjs/Chart.js/issues/5756) Add documentation the `aspectRatio` property. Thanks [@&#8203;danielcb29](https://github.com/danielcb29) - [#&#8203;5769](https://github.com/chartjs/Chart.js/issues/5769) Use `parser` instead of the deprecated `format` option. Thanks [@&#8203;Niladri24dutta](https://github.com/Niladri24dutta) - [#&#8203;5795](https://github.com/chartjs/Chart.js/issues/5795) Document tick `padding` option. Thanks [@&#8203;JEphron](https://github.com/JEphron) - [#&#8203;5796](https://github.com/chartjs/Chart.js/issues/5796) Consistent use of punctuation. Thanks [@&#8203;bartdeslagmulder](https://github.com/bartdeslagmulder) - [#&#8203;5813](https://github.com/chartjs/Chart.js/issues/5813) Add a link to `chartjs-plugin-colorschemes` - [#&#8203;5831](https://github.com/chartjs/Chart.js/issues/5831) Correct a spelling mistake. Thanks [@&#8203;bakert](https://github.com/bakert) - [#&#8203;5854](https://github.com/chartjs/Chart.js/issues/5854) Add docs for `barThickness`. Thanks [@&#8203;jedrekdomanski](https://github.com/jedrekdomanski) - [#&#8203;5876](https://github.com/chartjs/Chart.js/issues/5876) Fix descriptions in bar chart doc - [#&#8203;5877](https://github.com/chartjs/Chart.js/issues/5877) Replace repeated function call with compact function, generateData. Thanks [@&#8203;generic-github-user](https://github.com/generic-github-user) - [#&#8203;5912](https://github.com/chartjs/Chart.js/issues/5912) Add `omi-chart` to the doc. Thanks [@&#8203;dntzhang](https://github.com/dntzhang) - [#&#8203;5915](https://github.com/chartjs/Chart.js/issues/5915) Use HTTPS in documentation links where possible - [#&#8203;5958](https://github.com/chartjs/Chart.js/issues/5958) Use `Chart.min.js` in samples - [#&#8203;5962](https://github.com/chartjs/Chart.js/issues/5962) Update contributors guide and issue templates - [#&#8203;5968](https://github.com/chartjs/Chart.js/issues/5968) Fix contribution docs. Thanks [@&#8203;mojoaxel](https://github.com/mojoaxel) - [#&#8203;5974](https://github.com/chartjs/Chart.js/issues/5974) Add a note about `maintainAspectRatio`. Thanks [@&#8203;janelledement](https://github.com/janelledement) - [#&#8203;5975](https://github.com/chartjs/Chart.js/issues/5975) Fix typo / grammar in docs - [#&#8203;5979](https://github.com/chartjs/Chart.js/issues/5979) Fix labelOffset description - [#&#8203;6013](https://github.com/chartjs/Chart.js/issues/6013) Set `pointBackgroundColor` in radar sample - [#&#8203;6020](https://github.com/chartjs/Chart.js/issues/6020) Fix typos and minor doc issues - [#&#8203;6026](https://github.com/chartjs/Chart.js/issues/6026) Omit inconsistent note. Thanks [@&#8203;janelledement](https://github.com/janelledement) - [#&#8203;6030](https://github.com/chartjs/Chart.js/issues/6030) Update doc on label types for TooltipItem - [#&#8203;6038](https://github.com/chartjs/Chart.js/issues/6038) Fix duplicate anchor - [#&#8203;6042](https://github.com/chartjs/Chart.js/issues/6042) Add examples of scriptable charts. Thanks [@&#8203;janelledement](https://github.com/janelledement) - [#&#8203;6053](https://github.com/chartjs/Chart.js/issues/6053) Fix typo in broken url. Thanks [@&#8203;janelledement](https://github.com/janelledement) - [#&#8203;6054](https://github.com/chartjs/Chart.js/issues/6054) Simple spelling error fix. Thanks [@&#8203;JABedford](https://github.com/JABedford) - [#&#8203;6070](https://github.com/chartjs/Chart.js/issues/6070) Add a link to `chartjs-plugin-crosshair`. Thanks [@&#8203;AbelHeinsbroek](https://github.com/AbelHeinsbroek) - [#&#8203;6073](https://github.com/chartjs/Chart.js/issues/6073) Add instructions for image-based tests to the contributors guide - [#&#8203;6079](https://github.com/chartjs/Chart.js/issues/6079) Improve autoSkip documentation - [#&#8203;6081](https://github.com/chartjs/Chart.js/issues/6081) Add a link to `chartjs-plugin-rough` - [#&#8203;6089](https://github.com/chartjs/Chart.js/issues/6089) Improve financial sample tooltips and interactions - [#&#8203;6096](https://github.com/chartjs/Chart.js/issues/6096) Revamp the README.md and add link to the awesome list - [#&#8203;6099](https://github.com/chartjs/Chart.js/issues/6099) Fix document errors related to ticks - [#&#8203;6107](https://github.com/chartjs/Chart.js/issues/6107) Add a note about how to include an example against master #### Development - [#&#8203;5624](https://github.com/chartjs/Chart.js/issues/5624) Radar code cleanup - [#&#8203;5777](https://github.com/chartjs/Chart.js/issues/5777) Support `*.js` test fixture configs - [#&#8203;5794](https://github.com/chartjs/Chart.js/issues/5794) Remove dead code from the gulpfile. Thanks [@&#8203;HendrikRoehm](https://github.com/HendrikRoehm) - [#&#8203;5827](https://github.com/chartjs/Chart.js/issues/5827) Change `.editorconfig` file to include newlines at EOF. Thanks [@&#8203;jtagscherer](https://github.com/jtagscherer) - [#&#8203;5833](https://github.com/chartjs/Chart.js/issues/5833) Use the pixel comparer for logarithmic tests. Thanks [@&#8203;jtagscherer](https://github.com/jtagscherer) - [#&#8203;5840](https://github.com/chartjs/Chart.js/issues/5840) Upgrade dev dependencies to reduce vulnerabilities - [#&#8203;5842](https://github.com/chartjs/Chart.js/issues/5842) Use short labels for the legend tests so as not to be affected by the font width - [#&#8203;5871](https://github.com/chartjs/Chart.js/issues/5871) Make `Chart.controllers.*` importable - [#&#8203;5872](https://github.com/chartjs/Chart.js/issues/5872) Fix test failures on Windows - [#&#8203;5875](https://github.com/chartjs/Chart.js/issues/5875) Remove `gulp-connect` and add jsdelivr/unpkg paths - [#&#8203;5904](https://github.com/chartjs/Chart.js/issues/5904) Migrate from Browserify to rollup - [#&#8203;5953](https://github.com/chartjs/Chart.js/issues/5953) Cleanup scales export for better import strategy - [#&#8203;5965](https://github.com/chartjs/Chart.js/issues/5965) Refactoring using `helpers.options.resolve` - [#&#8203;5967](https://github.com/chartjs/Chart.js/issues/5967) Update controller.scatter.test.js to test default tooltip callbacks. Thanks [@&#8203;MadRussian](https://github.com/MadRussian) - [#&#8203;5969](https://github.com/chartjs/Chart.js/issues/5969) Make the main controller importable - [#&#8203;5970](https://github.com/chartjs/Chart.js/issues/5970) Remove unused parameter when calling `removeResizeListener`. Thanks [@&#8203;DanielRuf](https://github.com/DanielRuf) - [#&#8203;5991](https://github.com/chartjs/Chart.js/issues/5991) Trigger mouse events at the center of arc - [#&#8203;5994](https://github.com/chartjs/Chart.js/issues/5994) \_resolveElementPoint utility for triggerMouseEvent - [#&#8203;6005](https://github.com/chartjs/Chart.js/issues/6005) Common logic for resolving element options - [#&#8203;6017](https://github.com/chartjs/Chart.js/issues/6017) Fix typo in comment - [#&#8203;6032](https://github.com/chartjs/Chart.js/issues/6032) Replace deprecated gulp-util and remove unused watchify - [#&#8203;6033](https://github.com/chartjs/Chart.js/issues/6033) Use lowercase for primitives in jsdocs - [#&#8203;6040](https://github.com/chartjs/Chart.js/issues/6040) Remove unused ESLint directive - [#&#8203;6043](https://github.com/chartjs/Chart.js/issues/6043) Autoskip cleanup - [#&#8203;6061](https://github.com/chartjs/Chart.js/issues/6061) Fix randomly failing tooltip test ## Thanks to the maintainers and collaborators for their help to improve and test Chart.js ([@&#8203;nagix](https://github.com/nagix), [@&#8203;kurkle](https://github.com/kurkle), [@&#8203;benmccann](https://github.com/benmccann), [@&#8203;etimberg](https://github.com/etimberg) and [@&#8203;simonbrunel](https://github.com/simonbrunel)). More details in the release PR: [#&#8203;6092](https://github.com/chartjs/Chart.js/issues/6092) ### [`v2.7.3`](https://github.com/chartjs/Chart.js/releases/tag/v2.7.3): Version 2.7.3 [Compare Source](https://github.com/chartjs/Chart.js/compare/v2.7.2...v2.7.3) Documentation: <http://www.chartjs.org/docs/2.7.3/> #### Enhancements - [#&#8203;4841](https://github.com/chartjs/Chart.js/issues/4841) Add `ticks.precision` option to linear scale - [#&#8203;5279](https://github.com/chartjs/Chart.js/issues/5279) Added 'angle' option to Polar Charts. Thanks [@&#8203;slinhart](https://github.com/slinhart) - [#&#8203;5319](https://github.com/chartjs/Chart.js/issues/5319) Enable arbitrary rotation of datapoints. Thanks [@&#8203;joelhamilton5](https://github.com/joelhamilton5) - [#&#8203;5324](https://github.com/chartjs/Chart.js/issues/5324) Enable running on virtual canvas on node. Thanks [@&#8203;SeanSobey](https://github.com/SeanSobey) - [#&#8203;5363](https://github.com/chartjs/Chart.js/issues/5363) Skip point outside the clipping area. Thanks [@&#8203;veggiesaurus](https://github.com/veggiesaurus) - [#&#8203;5521](https://github.com/chartjs/Chart.js/issues/5521) Handle '\n' as new line in tooltips. Thanks [@&#8203;CWSites](https://github.com/CWSites) - [#&#8203;5585](https://github.com/chartjs/Chart.js/issues/5585) Add support for Shadow DOM. Thanks [@&#8203;reda-alaoui](https://github.com/reda-alaoui) - [#&#8203;5592](https://github.com/chartjs/Chart.js/issues/5592) Call update() and render() with a config object. Thanks [@&#8203;nagix](https://github.com/nagix) - [#&#8203;5597](https://github.com/chartjs/Chart.js/issues/5597) Enhance the rounded rectangle implementation - [#&#8203;5613](https://github.com/chartjs/Chart.js/issues/5613) Add 15 minutes time steps. Thanks [@&#8203;fenichelar](https://github.com/fenichelar) - [#&#8203;5623](https://github.com/chartjs/Chart.js/issues/5623) Refactor helpers.canvas.drawPoint(). Thanks [@&#8203;nagix](https://github.com/nagix) #### Issues Fixed - [#&#8203;4620](https://github.com/chartjs/Chart.js/issues/4620) Fixed responsive in IE11 with padding as percentage. Thanks [@&#8203;andi-b](https://github.com/andi-b) - [#&#8203;5172](https://github.com/chartjs/Chart.js/issues/5172) Avoid updating Chart when `responsive: true` and Chart is hidden. Thanks [@&#8203;jcopperfield](https://github.com/jcopperfield) - [#&#8203;5209](https://github.com/chartjs/Chart.js/issues/5209) Fixed min and max option checks in linear scales. Thanks [@&#8203;teroman](https://github.com/teroman) - [#&#8203;5321](https://github.com/chartjs/Chart.js/issues/5321) Fixed line clipping at the chart area borders. Thanks [@&#8203;serhii-yakymuk](https://github.com/serhii-yakymuk) - [#&#8203;5401](https://github.com/chartjs/Chart.js/issues/5401) Proper tick position for right positioned axis - [#&#8203;5570](https://github.com/chartjs/Chart.js/issues/5570) Restore original styles when removing hover - [#&#8203;5575](https://github.com/chartjs/Chart.js/issues/5575) Event handling to use target instead currentTarget. Thanks [@&#8203;teroman](https://github.com/teroman) - [#&#8203;5723](https://github.com/chartjs/Chart.js/issues/5723) Fixed scale when data is all small numbers. Thanks [@&#8203;costerwi](https://github.com/costerwi) #### Documentation - [#&#8203;5309](https://github.com/chartjs/Chart.js/issues/5309) Link to streaming plugin. Thanks [@&#8203;nagix](https://github.com/nagix) - [#&#8203;5326](https://github.com/chartjs/Chart.js/issues/5326) Document circumference and rotation options. Thanks [@&#8203;pgiraud](https://github.com/pgiraud) - [#&#8203;5328](https://github.com/chartjs/Chart.js/issues/5328) Fixed time point data sample - [#&#8203;5348](https://github.com/chartjs/Chart.js/issues/5348) Fixed typo in legend documentation. Thanks [@&#8203;whoan](https://github.com/whoan) - [#&#8203;5454](https://github.com/chartjs/Chart.js/issues/5454) Fixed positioning in the custom tooltip example. Thanks [@&#8203;jung35](https://github.com/jung35) - [#&#8203;5504](https://github.com/chartjs/Chart.js/issues/5504) Fixed typo in README.md. Thanks [@&#8203;dkm](https://github.com/dkm) - [#&#8203;5507](https://github.com/chartjs/Chart.js/issues/5507) Fixed time documentation. Thanks [@&#8203;antoine-aumjaud](https://github.com/antoine-aumjaud) - [#&#8203;5528](https://github.com/chartjs/Chart.js/issues/5528) Clarify moment.js included in bundle cannot be used outside of chartjs. Thanks [@&#8203;gdvalderrama](https://github.com/gdvalderrama) - [#&#8203;5555](https://github.com/chartjs/Chart.js/issues/5555) Replace ES6 by Webpack in the integration docs. Thanks [@&#8203;slokhorst](https://github.com/slokhorst) - [#&#8203;5571](https://github.com/chartjs/Chart.js/issues/5571) Direct questions and support to StackOverflow - [#&#8203;5600](https://github.com/chartjs/Chart.js/issues/5600) Update the descriptions of barThickness, offsetGridLines and offset. Thanks [@&#8203;nagix](https://github.com/nagix) - [#&#8203;5625](https://github.com/chartjs/Chart.js/issues/5625) Add label for first dataset in progress-bar example. Thanks [@&#8203;bartdeslagmulder](https://github.com/bartdeslagmulder) - [#&#8203;5633](https://github.com/chartjs/Chart.js/issues/5633) Fixed the example of Linear Radial Axis. Thanks [@&#8203;nagix](https://github.com/nagix) - [#&#8203;5637](https://github.com/chartjs/Chart.js/issues/5637) Add circular option documentation for grid lines. Thanks [@&#8203;nielmistry](https://github.com/nielmistry) - [#&#8203;5638](https://github.com/chartjs/Chart.js/issues/5638) Add a link to chartjs-plugin-style to extensions.md. Thanks [@&#8203;nagix](https://github.com/nagix) - [#&#8203;5661](https://github.com/chartjs/Chart.js/issues/5661) Add color to financial time series sample. Thanks [@&#8203;TPullen21](https://github.com/TPullen21) - [#&#8203;5663](https://github.com/chartjs/Chart.js/issues/5663) Fixed adding and removing datasets in bar samples. Thanks [@&#8203;TPullen21](https://github.com/TPullen21) - [#&#8203;5719](https://github.com/chartjs/Chart.js/issues/5719) Add "Accessibility" documentation page. Thanks [@&#8203;wuweiweiwu](https://github.com/wuweiweiwu) - [#&#8203;5734](https://github.com/chartjs/Chart.js/issues/5734) Add Wicked-Charts to the extensions page. Thanks [@&#8203;maximAtanasov](https://github.com/maximAtanasov) - [#&#8203;5736](https://github.com/chartjs/Chart.js/issues/5736) Add scatter link in charts documentation. Thanks [@&#8203;miguelms95](https://github.com/miguelms95) #### Development - [#&#8203;5382](https://github.com/chartjs/Chart.js/issues/5382) Make `Chart.Animation/animations/Tooltip` importable - [#&#8203;5383](https://github.com/chartjs/Chart.js/issues/5383) Make `Chart.Scale/scaleService` importable - [#&#8203;5478](https://github.com/chartjs/Chart.js/issues/5478) Update gulpfile.js to use in strict mode. Thanks [@&#8203;ksokolowski7](https://github.com/ksokolowski7) - [#&#8203;5595](https://github.com/chartjs/Chart.js/issues/5595) Use comment for pull request template Thanks [@&#8203;DanielRuf](https://github.com/DanielRuf) - [#&#8203;5629](https://github.com/chartjs/Chart.js/issues/5629) Disable hardware acceleration for unit tests - [#&#8203;5724](https://github.com/chartjs/Chart.js/issues/5724) Add gulp watch task for docs [@&#8203;wuweiweiwu](https://github.com/wuweiweiwu) - [#&#8203;5732](https://github.com/chartjs/Chart.js/issues/5732) Add "point style" image tests ## More details in the release PR: [#&#8203;5732](https://github.com/chartjs/Chart.js/issues/5732) ### [`v2.7.2`](https://github.com/chartjs/Chart.js/releases/tag/v2.7.2): Version 2.7.2 [Compare Source](https://github.com/chartjs/Chart.js/compare/v2.7.1...v2.7.2) Documentation: <http://www.chartjs.org/docs/2.7.2/> #### Enhancements - [#&#8203;4891](https://github.com/chartjs/Chart.js/issues/4891) Relax dependencies versions. Thanks [@&#8203;jsg2021](https://github.com/jsg2021) - [#&#8203;4923](https://github.com/chartjs/Chart.js/issues/4923) Reset only when animating (optimization) - [#&#8203;4994](https://github.com/chartjs/Chart.js/issues/4994) Equally sized bars for bar charts - [#&#8203;5062](https://github.com/chartjs/Chart.js/issues/5062) Improve `point.xRange` and `point.yRange` performance. Thanks [@&#8203;fanthos](https://github.com/fanthos) - [#&#8203;5076](https://github.com/chartjs/Chart.js/issues/5076) Prevent double ticks array reverse for logarithmic scale (optimization). Thanks [@&#8203;jcopperfield](https://github.com/jcopperfield) - [#&#8203;5095](https://github.com/chartjs/Chart.js/issues/5095) Better default tooltip label format in the time scale - [#&#8203;5240](https://github.com/chartjs/Chart.js/issues/5240) Support multiple font colors for radial chart labels. Thanks [@&#8203;flaurida](https://github.com/flaurida) #### Issues Fixed - [#&#8203;3998](https://github.com/chartjs/Chart.js/issues/3998) Avoid tooltip truncation. Thanks [@&#8203;kaidohallik](https://github.com/kaidohallik) - [#&#8203;4198](https://github.com/chartjs/Chart.js/issues/4198) Fixed updating scale options. Thanks [@&#8203;xg-wang](https://github.com/xg-wang) - [#&#8203;4874](https://github.com/chartjs/Chart.js/issues/4874) Fixed setting canvas dimensions. Thanks [@&#8203;andersponders](https://github.com/andersponders) - [#&#8203;4913](https://github.com/chartjs/Chart.js/issues/4913) Fixed log scale when value is 0. Thanks [@&#8203;jcopperfield](https://github.com/jcopperfield) - [#&#8203;4937](https://github.com/chartjs/Chart.js/issues/4937) Fixed non-adjacent stacked groups. Thanks [@&#8203;jcopperfield](https://github.com/jcopperfield) - [#&#8203;4942](https://github.com/chartjs/Chart.js/issues/4942) Fixed y-axis labels partially hidden. Thanks [@&#8203;jcopperfield](https://github.com/jcopperfield) - [#&#8203;4943](https://github.com/chartjs/Chart.js/issues/4943) Round values in linear tick generator. Thanks [@&#8203;jcopperfield](https://github.com/jcopperfield) - [#&#8203;4944](https://github.com/chartjs/Chart.js/issues/4944) Fixed bumpy line on smooth dataset. Thanks [@&#8203;jcopperfield](https://github.com/jcopperfield) - [#&#8203;4959](https://github.com/chartjs/Chart.js/issues/4959) Fixed out of memory error when all data points are 0. Thanks [@&#8203;jcopperfield](https://github.com/jcopperfield) - [#&#8203;4959](https://github.com/chartjs/Chart.js/issues/4959) Fixed unresponsive bubble chart. Thanks [@&#8203;jcopperfield](https://github.com/jcopperfield) - [#&#8203;5005](https://github.com/chartjs/Chart.js/issues/5005) Fixed tooltip changing while animating. Thanks [@&#8203;jcopperfield](https://github.com/jcopperfield) - [#&#8203;5041](https://github.com/chartjs/Chart.js/issues/5041) Fixed infinite loop due to insufficient bounds checking. Thanks [@&#8203;jcopperfield](https://github.com/jcopperfield) - [#&#8203;5045](https://github.com/chartjs/Chart.js/issues/5045) Use `time.unit` option to create default min/max for empty chart. Thanks [@&#8203;jcopperfield](https://github.com/jcopperfield) - [#&#8203;5088](https://github.com/chartjs/Chart.js/issues/5088) Re-expose `Chart.Ticks.formatters` - [#&#8203;5144](https://github.com/chartjs/Chart.js/issues/5144) Fixed updating plugin options - [#&#8203;5165](https://github.com/chartjs/Chart.js/issues/5165) Treat negative values in doughnut charts as positive - [#&#8203;5178](https://github.com/chartjs/Chart.js/issues/5178) Don't draw tick across axis/border. Thanks [@&#8203;jhaenchen](https://github.com/jhaenchen) - [#&#8203;5248](https://github.com/chartjs/Chart.js/issues/5248) Fix label vertical alignment on vertical scales. Thanks [@&#8203;MPierre9](https://github.com/MPierre9) - [#&#8203;5275](https://github.com/chartjs/Chart.js/issues/5275) Improve polyfill function of log10 to return whole powers of 10. Thanks [@&#8203;jcopperfield](https://github.com/jcopperfield) #### Documentation - [#&#8203;4914](https://github.com/chartjs/Chart.js/issues/4914) Fixed samples titles. Thanks [@&#8203;aspaldiko](https://github.com/aspaldiko) - [#&#8203;4921](https://github.com/chartjs/Chart.js/issues/4921) Add link to [chartjs-plugin-waterfall](https://github.com/everestate/chartjs-plugin-waterfall). Thanks [@&#8203;MartinDawson](https://github.com/MartinDawson) - [#&#8203;4930](https://github.com/chartjs/Chart.js/issues/4930) Remove extra space. Thanks [@&#8203;MartinDawson](https://github.com/MartinDawson) - [#&#8203;4979](https://github.com/chartjs/Chart.js/issues/4979) Fixed link to time axis documentation in bar chart - [#&#8203;4984](https://github.com/chartjs/Chart.js/issues/4984) Link to [Ember/Chart.js integration](https://github.com/aomran/ember-cli-chart). Thanks [@&#8203;jpsirois](https://github.com/jpsirois) - [#&#8203;5006](https://github.com/chartjs/Chart.js/issues/5006) Link to Angular2+ libraries ([1](https://github.com/emn178/angular2-chartjs) & [2](https://github.com/valor-software/ng2-charts)). Thanks [@&#8203;realshaft](https://github.com/realshaft) - [#&#8203;5010](https://github.com/chartjs/Chart.js/issues/5010) Fixed typos and broken links. Thanks [@&#8203;beiz23](https://github.com/beiz23) - [#&#8203;5094](https://github.com/chartjs/Chart.js/issues/5094) Add note about `legendCallback`. Thanks [@&#8203;cameroncf](https://github.com/cameroncf) - [#&#8203;5166](https://github.com/chartjs/Chart.js/issues/5166) Improve custom tooltip docs and samples - [#&#8203;5167](https://github.com/chartjs/Chart.js/issues/5167) Add docs on how to resize charts manually for printing - [#&#8203;5168](https://github.com/chartjs/Chart.js/issues/5168) Add example on how to use the tooltip label callback - [#&#8203;5169](https://github.com/chartjs/Chart.js/issues/5169) Fixed error in polar area and doughnut chart docs - [#&#8203;5173](https://github.com/chartjs/Chart.js/issues/5173) Better variable name in API snippet. Thanks [@&#8203;jonquach](https://github.com/jonquach) - [#&#8203;5225](https://github.com/chartjs/Chart.js/issues/5225) Add Charba GWT integration to extensions.md. Thanks [@&#8203;stockiNail](https://github.com/stockiNail) - [#&#8203;5227](https://github.com/chartjs/Chart.js/issues/5227) Remove trailing spaces - [#&#8203;5256](https://github.com/chartjs/Chart.js/issues/5256) Improve title of GitBook pages. Thanks [@&#8203;wmzhong](https://github.com/wmzhong) - [#&#8203;5274](https://github.com/chartjs/Chart.js/issues/5274) Make both README.md and installation.md clearer. Thanks [@&#8203;wla80](https://github.com/wla80) #### Development - [#&#8203;4699](https://github.com/chartjs/Chart.js/issues/4699) Suppress coveralls errors in forks. Thanks [@&#8203;andig](https://github.com/andig) - [#&#8203;4738](https://github.com/chartjs/Chart.js/issues/4738) Upgrade to ESLint 4 - [#&#8203;5053](https://github.com/chartjs/Chart.js/issues/5053) Update license year and copyright holders - [#&#8203;5112](https://github.com/chartjs/Chart.js/issues/5112) Use the Chart.js shared ESLint config - [#&#8203;5113](https://github.com/chartjs/Chart.js/issues/5113) Make `Chart.layout(Service)` importable - [#&#8203;5114](https://github.com/chartjs/Chart.js/issues/5114) Make `Chart.plugins` importable - [#&#8203;5118](https://github.com/chartjs/Chart.js/issues/5118) Rename `Chart.layout` to `Chart.layouts` - [#&#8203;5138](https://github.com/chartjs/Chart.js/issues/5138) Ignore `package-lock.json` - [#&#8203;5143](https://github.com/chartjs/Chart.js/issues/5143) Log gulp error. Thanks [@&#8203;loicbourgois](https://github.com/loicbourgois) - [#&#8203;5150](https://github.com/chartjs/Chart.js/issues/5150) Test for `showLines` in scatter chart. Thanks [@&#8203;loicbourgois](https://github.com/loicbourgois) - [#&#8203;5195](https://github.com/chartjs/Chart.js/issues/5195) Setup HTML and JS linters for samples. Thanks [@&#8203;loicbourgois](https://github.com/loicbourgois) - [#&#8203;5217](https://github.com/chartjs/Chart.js/issues/5217) Fix Slack invitation link ## More details in the release PR: [#&#8203;5145](https://github.com/chartjs/Chart.js/issues/5145) ### [`v2.7.1`](https://github.com/chartjs/Chart.js/releases/tag/v2.7.1): Version 2.7.1 [Compare Source](https://github.com/chartjs/Chart.js/compare/v2.7.0...v2.7.1) **2.7.1** is a bug fix release and also includes numerous documentation improvements Documentation: <http://www.chartjs.org/docs/2.7.1/> #### Enhancements - [#&#8203;4793](https://github.com/chartjs/Chart.js/issues/4793) Added `beforeTooltipDraw` and `afterTooltipDraw` to plugins. Thanks [@&#8203;JewelsJLF](https://github.com/JewelsJLF) #### Issues Fixed - [#&#8203;4295](https://github.com/chartjs/Chart.js/issues/4295) Fixed min and max in time scale - [#&#8203;4762](https://github.com/chartjs/Chart.js/issues/4762) Fixed regression in x-axis interaction mode - [#&#8203;4774](https://github.com/chartjs/Chart.js/issues/4774) Fixed chart responsiveness - [#&#8203;4779](https://github.com/chartjs/Chart.js/issues/4779) Fixed unit used for auto ticks in time scale - [#&#8203;4781](https://github.com/chartjs/Chart.js/issues/4781) Fixed handling of `null` style. Thanks [@&#8203;Rydori](https://github.com/Rydori) - [#&#8203;4783](https://github.com/chartjs/Chart.js/issues/4783) Fixed color settings for BeforeLabel and BeforeBody. Thanks [@&#8203;Rittyan](https://github.com/Rittyan) - [#&#8203;4795](https://github.com/chartjs/Chart.js/issues/4795) Fixed handling of null labels - [#&#8203;4878](https://github.com/chartjs/Chart.js/issues/4878) Fixed rollup issue caused by early access of the `extend` and `inherits` helpers - [#&#8203;4840](https://github.com/chartjs/Chart.js/issues/4840) Fixed tooltip reset #### Documentation - [#&#8203;4736](https://github.com/chartjs/Chart.js/issues/4736) Expand scale jsdocs - [#&#8203;4765](https://github.com/chartjs/Chart.js/issues/4765) Consistent formatting for cartesian options - [#&#8203;4818](https://github.com/chartjs/Chart.js/issues/4818) Update supported browser section of documentation - [#&#8203;4819](https://github.com/chartjs/Chart.js/issues/4819) Typo in code comments. Thanks [@&#8203;einfallstoll](https://github.com/einfallstoll) - [#&#8203;4826](https://github.com/chartjs/Chart.js/issues/4826) Clarification for using x/y coordinates with bar chart - [#&#8203;4851](https://github.com/chartjs/Chart.js/issues/4851) Improved rendering of tables describing options. Thanks [@&#8203;minusf](https://github.com/minusf) #### Development - [#&#8203;4880](https://github.com/chartjs/Chart.js/issues/4880) Address test flakiness ## More details in the release PR: [#&#8203;4876](https://github.com/chartjs/Chart.js/issues/4876) ### [`v2.7.0`](https://github.com/chartjs/Chart.js/releases/tag/v2.7.0): Version 2.7.0 [Compare Source](https://github.com/chartjs/Chart.js/compare/v2.6.0...v2.7.0) **Version 2.7** brings better stability, and powerful new features to Chart.js. The bubble chart options are now completely [scriptable](http://www.chartjs.org/docs/2.7.0/general/options.html#scriptable-options). 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](http://www.chartjs.org/samples/2.7.0/scriptable/bubble.html) 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](http://www.chartjs.org/docs/2.7.0/axes/cartesian/time.html#ticks-source), how [interpolation between the points is handled](http://www.chartjs.org/docs/2.7.0/axes/cartesian/time.html#scale-distribution) and the [scale boundary strategy](http://www.chartjs.org/docs/2.7.0/axes/cartesian/time.html#scale-bounds). 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](http://www.chartjs.org/samples/2.7.0/scales/time/financial.html) for details. Documentation: <http://www.chartjs.org/docs/2.7.0/> #### Breaking Changes - [#&#8203;4079](https://github.com/chartjs/Chart.js/issues/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 the `aspectRatio: 1` option to restore the previous behaviour. #### Deprecations - [#&#8203;4401](https://github.com/chartjs/Chart.js/issues/4401) Deprecated time scale `unitStepSize`, use `stepSize` instead. #### New Features - [#&#8203;4199](https://github.com/chartjs/Chart.js/issues/4199) Add tooltip `labelTextColor` callback. Thanks [@&#8203;apoorvasrinivasan](https://github.com/apoorvasrinivasan) - [#&#8203;4267](https://github.com/chartjs/Chart.js/issues/4267) [#&#8203;4268](https://github.com/chartjs/Chart.js/issues/4268) New time scale `major` unit options. Thanks [@&#8203;hurskiy-andriy](https://github.com/hurskiy-andriy) - [#&#8203;4270](https://github.com/chartjs/Chart.js/issues/4270) New `devicePixelRatio` option. Thanks [@&#8203;OlduwanSteve](https://github.com/OlduwanSteve) - [#&#8203;4646](https://github.com/chartjs/Chart.js/issues/4646) Implemented scale label padding. Thanks [@&#8203;andig](https://github.com/andig) - [#&#8203;4456](https://github.com/chartjs/Chart.js/issues/4456) Allow specifying bar chart via {x, y} data points. Thanks [@&#8203;benmccann](https://github.com/benmccann) - [#&#8203;4458](https://github.com/chartjs/Chart.js/issues/4458) Add interaction `axis: 'x', 'y', 'xy'` options. - [#&#8203;4506](https://github.com/chartjs/Chart.js/issues/4506) Allow category labels definition at scale level. Thanks [@&#8203;andig](https://github.com/andig) - [#&#8203;4507](https://github.com/chartjs/Chart.js/issues/4507) New time scale `distribution` and `ticks.source` options. - [#&#8203;4533](https://github.com/chartjs/Chart.js/issues/4533) Allow specifying the time axis via t attribute. Thanks [@&#8203;benmccann](https://github.com/benmccann) - [#&#8203;4556](https://github.com/chartjs/Chart.js/issues/4556) New time scale `bounds` option. - [#&#8203;4671](https://github.com/chartjs/Chart.js/issues/4671) Introduced scriptable options (bubble chart only). #### Enhancements - [#&#8203;4362](https://github.com/chartjs/Chart.js/issues/4362) Add support for configurable update. Thanks [@&#8203;ricardocosta89](https://github.com/ricardocosta89) - [#&#8203;4381](https://github.com/chartjs/Chart.js/issues/4381) Scatter chart doesn't anymore display lines by default. - [#&#8203;4382](https://github.com/chartjs/Chart.js/issues/4382) Add support for multiple lines text in the chart title. - [#&#8203;4531](https://github.com/chartjs/Chart.js/issues/4531) Add support for line height CSS values. - [#&#8203;4545](https://github.com/chartjs/Chart.js/issues/4545) New `offset` scale option. Thanks [@&#8203;nagix](https://github.com/nagix) - [#&#8203;4586](https://github.com/chartjs/Chart.js/issues/4586) Allow updating dataset types. Thanks [@&#8203;benmccann](https://github.com/benmccann) - [#&#8203;4591](https://github.com/chartjs/Chart.js/issues/4591) Add support for detached canvas element. - [#&#8203;4596](https://github.com/chartjs/Chart.js/issues/4596) Replace the IFRAME resizer by scrollable DIVs. - [#&#8203;4632](https://github.com/chartjs/Chart.js/issues/4632) Ticks `callback` is now called with `this` as scope. Thanks [@&#8203;andig](https://github.com/andig) - [#&#8203;4708](https://github.com/chartjs/Chart.js/issues/4708) Add platform fallback implementation. - [#&#8203;4733](https://github.com/chartjs/Chart.js/issues/4733) Update `chartjs-color` dependency to [version 2.2.0](/chartjs/chartjs-color/releases/tag/v2.2.0) #### Issues Fixed - [#&#8203;4079](https://github.com/chartjs/Chart.js/issues/4079) Fixed inconsistent aspect ratio (`2` for all charts). Thanks [@&#8203;jtblin](https://github.com/jtblin) - [#&#8203;4249](https://github.com/chartjs/Chart.js/issues/4249) Fixed `labelOffset` not working for vertical axes. Thanks [@&#8203;suheb](https://github.com/suheb) - [#&#8203;4295](https://github.com/chartjs/Chart.js/issues/4295) Fixed missing IE `*_SAFE_INTEGER` constants. Thanks [@&#8203;OlduwanSteve](https://github.com/OlduwanSteve) - [#&#8203;4297](https://github.com/chartjs/Chart.js/issues/4297) Fixed `onHover` event not being triggered. Thanks [@&#8203;ricardocosta89](https://github.com/ricardocosta89) - [#&#8203;4318](https://github.com/chartjs/Chart.js/issues/4318) Fixed disabled legend items alignment. - [#&#8203;4319](https://github.com/chartjs/Chart.js/issues/4319) Fixed default `layout` options (empty object). - [#&#8203;4341](https://github.com/chartjs/Chart.js/issues/4341) Fixed tooltip color box border width. - [#&#8203;4348](https://github.com/chartjs/Chart.js/issues/4348) Fixed time scale `round` option. - [#&#8203;4360](https://github.com/chartjs/Chart.js/issues/4360) Fixed filling between datasets of different lengths. - [#&#8203;4402](https://github.com/chartjs/Chart.js/issues/4402) Fixed error when legend `labels` option is undefined. - [#&#8203;4403](https://github.com/chartjs/Chart.js/issues/4403) `ticks.padding` option now applies to vertical and horizontal scales. - [#&#8203;4406](https://github.com/chartjs/Chart.js/issues/4406) Ensured that chart dimensions are always >= 0. Thanks [@&#8203;Peter-Van-Drunen](https://github.com/Peter-Van-Drunen) - [#&#8203;4424](https://github.com/chartjs/Chart.js/issues/4424) Fixed non-passive event listener warning in Chrome. - [#&#8203;4425](https://github.com/chartjs/Chart.js/issues/4425) Fixed range calculation when all datasets hidden and axis minimum set. - [#&#8203;4448](https://github.com/chartjs/Chart.js/issues/4448) Radius is now clamped when drawing rounded rectangle. - [#&#8203;4451](https://github.com/chartjs/Chart.js/issues/4451) Chart area is now clipped before filling. - [#&#8203;4457](https://github.com/chartjs/Chart.js/issues/4457) Fixed `reverse` option in radial linear scale. - [#&#8203;4459](https://github.com/chartjs/Chart.js/issues/4459) Line chart `pointBorderWidth` now supports array. - [#&#8203;4522](https://github.com/chartjs/Chart.js/issues/4522) Honour time scale min/max settings. Thanks [@&#8203;andig](https://github.com/andig) - [#&#8203;4545](https://github.com/chartjs/Chart.js/issues/4545) Make `offsetGridLines` consistent. Thanks [@&#8203;nagix](https://github.com/nagix) - [#&#8203;4655](https://github.com/chartjs/Chart.js/issues/4655) Removed redundant tooltip initialize. Thanks [@&#8203;xg-wang](https://github.com/xg-wang) - [#&#8203;4682](https://github.com/chartjs/Chart.js/issues/4682) Show radial scale labels correctly when rotated. - [#&#8203;4697](https://github.com/chartjs/Chart.js/issues/4697) Fixed filling datasets when stepped line. Thanks [@&#8203;nagix](https://github.com/nagix) #### Documentation - [#&#8203;4320](https://github.com/chartjs/Chart.js/issues/4320) Fixed `stepSize` documentation (previously `unitStepSize`). - [#&#8203;4325](https://github.com/chartjs/Chart.js/issues/4325) Fixed animations link. Thanks [@&#8203;raquelguimaraes](https://github.com/raquelguimaraes) - [#&#8203;4353](https://github.com/chartjs/Chart.js/issues/4353) Fixed typo in labelling. Thank [@&#8203;MuseofMoose](https://github.com/MuseofMoose) - [#&#8203;4365](https://github.com/chartjs/Chart.js/issues/4365) Fixed typo in title. Thanks [@&#8203;moortaube](https://github.com/moortaube) - [#&#8203;4383](https://github.com/chartjs/Chart.js/issues/4383) Fixed HighCharts comparison. Thanks [@&#8203;brother](https://github.com/brother) - [#&#8203;4386](https://github.com/chartjs/Chart.js/issues/4386) Add note regarding non-existant fonts. - [#&#8203;4404](https://github.com/chartjs/Chart.js/issues/4404) Fixed wording in line. Thanks [@&#8203;uok](https://github.com/uok) - [#&#8203;4417](https://github.com/chartjs/Chart.js/issues/4417) Add dataset update plugin hooks. Thanks [@&#8203;nagix](https://github.com/nagix) - [#&#8203;4418](https://github.com/chartjs/Chart.js/issues/4418) Updated the time display format table. Thanks [@&#8203;nagix](https://github.com/nagix) - [#&#8203;4442](https://github.com/chartjs/Chart.js/issues/4442) Better example of using script tag. Thanks [@&#8203;justinledford](https://github.com/justinledford) - [#&#8203;4456](https://github.com/chartjs/Chart.js/issues/4456) Add a note on how to use `getElementAtEvent` in a click handler. - [#&#8203;4465](https://github.com/chartjs/Chart.js/issues/4465) Updated link to documentation for previous versions. Thanks [@&#8203;alex-paterson](https://github.com/alex-paterson) - [#&#8203;4527](https://github.com/chartjs/Chart.js/issues/4527) Add link to Java integration. Thanks [@&#8203;mdewilde](https://github.com/mdewilde) - [#&#8203;4554](https://github.com/chartjs/Chart.js/issues/4554) Add a financial time series sample. Thanks [@&#8203;benmccann](https://github.com/benmccann) - Add doc about accessing development build and resources. Thanks [@&#8203;andig](https://github.com/andig) #### Development - [#&#8203;4272](https://github.com/chartjs/Chart.js/issues/4272) Upgraded development dependencies. Thanks [@&#8203;benmccann](https://github.com/benmccann) - [#&#8203;4346](https://github.com/chartjs/Chart.js/issues/4346) Switched Travis to use Node 6. Thanks [@&#8203;benmccann](https://github.com/benmccann) - [#&#8203;4419](https://github.com/chartjs/Chart.js/issues/4419) Cleaned up and reorganize core and canvas helpers. - [#&#8203;4421](https://github.com/chartjs/Chart.js/issues/4421) Increased ESLint complexity and add config for tests. - [#&#8203;4422](https://github.com/chartjs/Chart.js/issues/4422) Rewrote the clone and merge helpers. - [#&#8203;4423](https://github.com/chartjs/Chart.js/issues/4423) Changed `valueAtIndexOrDefault` behavior. - [#&#8203;4427](https://github.com/chartjs/Chart.js/issues/4427) Removed `.js` extensions when requiring a file. Thanks [@&#8203;let-aurn](https://github.com/let-aurn) - [#&#8203;4475](https://github.com/chartjs/Chart.js/issues/4475) Moved easing effects in separate file + unit tests. - [#&#8203;4477](https://github.com/chartjs/Chart.js/issues/4477) Fixed many link anchors. Thanks [@&#8203;adrianliaw](https://github.com/adrianliaw) - [#&#8203;4479](https://github.com/chartjs/Chart.js/issues/4479) `Chart.helpers` is now importable. - [#&#8203;4485](https://github.com/chartjs/Chart.js/issues/4485) Fixed ESLint errors. Thanks [@&#8203;benmccann](https://github.com/benmccann) - [#&#8203;4509](https://github.com/chartjs/Chart.js/issues/4509) `Chart.platform` is now importable. - [#&#8203;4512](https://github.com/chartjs/Chart.js/issues/4512) `Chart.defaults/Ticks/Interaction` are now importable. - [#&#8203;4540](https://github.com/chartjs/Chart.js/issues/4540) `Chart.Element/elements.*` are now importable. - [#&#8203;4542](https://github.com/chartjs/Chart.js/issues/4542) Removed duplicate npm install. Thanks [@&#8203;benmccann](https://github.com/benmccann) - [#&#8203;4544](https://github.com/chartjs/Chart.js/issues/4544) Refactored padding parsing in `helpers.options`. - [#&#8203;4547](https://github.com/chartjs/Chart.js/issues/4547) Enforced spaces around infix/unary words operators. - [#&#8203;4566](https://github.com/chartjs/Chart.js/issues/4566) Rewrote unit test `waitForResize` helper. - [#&#8203;4610](https://github.com/chartjs/Chart.js/issues/4610) Enforced variable declaration coding style. - [#&#8203;4614](https://github.com/chartjs/Chart.js/issues/4614) Refactored autoskip functionality into a separate method. Thanks [@&#8203;benmccann](https://github.com/benmccann) - [#&#8203;4617](https://github.com/chartjs/Chart.js/issues/4617) Fixed tests on OSX with retina screen. Thanks [@&#8203;andig](https://github.com/andig) - [#&#8203;4654](https://github.com/chartjs/Chart.js/issues/4654) Better CodeClimate integration. - [#&#8203;4698](https://github.com/chartjs/Chart.js/issues/4698) Improved controller test stability. Thanks [@&#8203;andig](https://github.com/andig) ## More details in the release PR: [#&#8203;4706](https://github.com/chartjs/Chart.js/issues/4706) ### [`v2.6.0`](https://github.com/chartjs/Chart.js/releases/tag/v2.6.0): Version 2.6.0 [Compare Source](https://github.com/chartjs/Chart.js/compare/v2.5.0...v2.6.0) **Version 2.6** brings better stability, improved documentation, and powerful new features to Chart.js. It's now possible to create [advanced area chart](http://www.chartjs.org/docs/2.6.0/charts/area.html) thanks to a new `filler` plugin: stacked area charts can now fill to another dataset in a configurable manner. Check out the [samples](http://www.chartjs.org/samples/2.6.0/) to see the all the new options. The time scale internals have been rewritten, improving performance by reducing the number of operations on each tick value. These changes also fixed a number of time scale related issues that users have been experiencing. Our new documentation has been rewritten using [GitBook](https://www.gitbook.com/) and reorganized into smaller topics to improve clarity and allow topics to be more intuitively found. The online documentation is now organized by release version going forward: <http://www.chartjs.org/docs/{version}/>. #### Breaking Changes - [#&#8203;3782](https://github.com/chartjs/Chart.js/issues/3782) The `lineArc` setting for the radial linear scale has been removed and replaced by `gridLines.circular` and `pointLabels.display`. - [#&#8203;4044](https://github.com/chartjs/Chart.js/issues/4044) The bar controller internals has been refactored, therefore custom chart types that extend from the bar controller will need to be updated. More details can be found in this [PR](4044). #### Deprecations - [#&#8203;3839](https://github.com/chartjs/Chart.js/issues/3839) `Chart.chart` has been merged in `Chart`. - [#&#8203;3839](https://github.com/chartjs/Chart.js/issues/3839) `Chart.Controller` has been merged in `Chart`. - [#&#8203;3959](https://github.com/chartjs/Chart.js/issues/3959) `Chart.Animation.animationObject` has been merged in `Chart.Animation`. - [#&#8203;3959](https://github.com/chartjs/Chart.js/issues/3959) `Chart.Animation.chartInstance` has been removed, use `Chart.Animation.chart` instead. - [#&#8203;4008](https://github.com/chartjs/Chart.js/issues/4008) `'zero'`, `'top'`, `'bottom'` fill modes has been replaced by `'origin'`, `'start'`, `'end'`. #### New Features - [#&#8203;3599](https://github.com/chartjs/Chart.js/issues/3599) New option to control the tooltip caret padding. - [#&#8203;3782](https://github.com/chartjs/Chart.js/issues/3782) New option to handle displaying point labels on a radar chart. - [#&#8203;3782](https://github.com/chartjs/Chart.js/issues/3782) New option to control if the lines appear as circles or straight lines. - [#&#8203;3812](https://github.com/chartjs/Chart.js/issues/3812), [#&#8203;4094](https://github.com/chartjs/Chart.js/issues/4094) Layout service now supports item ordering (`item.weigth`). - [#&#8203;3872](https://github.com/chartjs/Chart.js/issues/3872) Added support for drawing tooltip borders. Thanks [@&#8203;marcelotedeschi](https://github.com/marcelotedeschi) - [#&#8203;3926](https://github.com/chartjs/Chart.js/issues/3926) Added dataset update and draw plugin hooks. - [#&#8203;3963](https://github.com/chartjs/Chart.js/issues/3963) Max bar thickness is now configurable. Thanks [@&#8203;seven7seven](https://github.com/seven7seven) - [#&#8203;4008](https://github.com/chartjs/Chart.js/issues/4008) Added support to fill between datasets. - [#&#8203;4019](https://github.com/chartjs/Chart.js/issues/4019) New option for dashed 0 lines on axes. Thanks [@&#8203;lndobryden](https://github.com/lndobryden) - [#&#8203;4065](https://github.com/chartjs/Chart.js/issues/4065) Added `before` and `after` functionality to the `steppedLine` option. Thanks [@&#8203;ericnkatz](https://github.com/ericnkatz) #### Enhancements - [#&#8203;2043](https://github.com/chartjs/Chart.js/issues/2043) Added documentation for high performance charting. - [#&#8203;2325](https://github.com/chartjs/Chart.js/issues/2325) Updated documentation for extending chart types. - [#&#8203;2362](https://github.com/chartjs/Chart.js/issues/2362) Added documentation for multi-chart and multi-axis. - [#&#8203;2386](https://github.com/chartjs/Chart.js/issues/2386) Updated documentation for custom tooltips implementation. - [#&#8203;3274](https://github.com/chartjs/Chart.js/issues/3274), [#&#8203;3299](https://github.com/chartjs/Chart.js/issues/3299) Improved documentation on axis range settings. - [#&#8203;3662](https://github.com/chartjs/Chart.js/issues/3662) Added documentation for extending scales. - [#&#8203;3751](https://github.com/chartjs/Chart.js/issues/3751) Documentation has been fully rewritten and is now based on [Gitbook](https://www.gitbook.com/). - [#&#8203;3826](https://github.com/chartjs/Chart.js/issues/3826) Improved performance for time scale label parsing. Thanks [@&#8203;tredston](https://github.com/tredston). - [#&#8203;3893](https://github.com/chartjs/Chart.js/issues/3893) Improved axis default positions so that x axes default to `bottom` and y axes default to `left`. - [#&#8203;3897](https://github.com/chartjs/Chart.js/issues/3897) Chart data can now be entirely replaced using `chart.data = {...}`. - [#&#8203;3960](https://github.com/chartjs/Chart.js/issues/3960) Improved element transitioning by removing color exceptions. - [#&#8203;4034](https://github.com/chartjs/Chart.js/issues/4034) Tooltips with no content are not anymore drawn. Thanks [@&#8203;samueljo](https://github.com/samueljo) - [#&#8203;4043](https://github.com/chartjs/Chart.js/issues/4043), [#&#8203;4153](https://github.com/chartjs/Chart.js/issues/4153) Added a showcase page for samples. - [#&#8203;4078](https://github.com/chartjs/Chart.js/issues/4078) Added a better error message when the chart type is incorrect. - [#&#8203;3914](https://github.com/chartjs/Chart.js/issues/3914) Time scale internals improved to be simpler and more efficient. Thanks [@&#8203;tredston](https://github.com/tredston) - [#&#8203;4166](https://github.com/chartjs/Chart.js/issues/4166) Enhanced the responsive documentation. - [#&#8203;4167](https://github.com/chartjs/Chart.js/issues/4167) Made it clear that labels need to be specified when using a category axis on a line chart. - [#&#8203;4170](https://github.com/chartjs/Chart.js/issues/4170) Added documentation for updating data. - [#&#8203;4178](https://github.com/chartjs/Chart.js/issues/4178) Reorganize extension docs. Thanks [@&#8203;benmccann](https://github.com/benmccann) - [#&#8203;4183](https://github.com/chartjs/Chart.js/issues/4183) Removed unnecessary variable. Thanks [@&#8203;benmccann](https://github.com/benmccann) #### Issues Fixed - [#&#8203;2481](https://github.com/chartjs/Chart.js/issues/2481) `chart instanceof Chart` now returns `true`. - [#&#8203;3118](https://github.com/chartjs/Chart.js/issues/3118) Fixed documentation for scatter chart. - [#&#8203;3237](https://github.com/chartjs/Chart.js/issues/3237) Fixed `getElementAtEvent()` return type documentation. - [#&#8203;3490](https://github.com/chartjs/Chart.js/issues/3490) Added documentation for axes `autoSkipPadding` option. - [#&#8203;3585](https://github.com/chartjs/Chart.js/issues/3585) Fixed stacked bar charts with log axes. - [#&#8203;3792](https://github.com/chartjs/Chart.js/issues/3792) Fixed stacked bar displaying `NaN` when all datasets are hidden. Thanks [@&#8203;Jareechang](https://github.com/Jareechang) - [#&#8203;3842](https://github.com/chartjs/Chart.js/issues/3842) Removed trailing ':' in tooltip label when dataset label is undefined. - [#&#8203;3856](https://github.com/chartjs/Chart.js/issues/3856) Tooltip callbacks were called on mouse move even if data did not change. Thanks [@&#8203;Jareechang](https://github.com/Jareechang) - [#&#8203;3883](https://github.com/chartjs/Chart.js/issues/3883) Fixed deprecated `Chart.PluginBase` definition. - [#&#8203;3860](https://github.com/chartjs/Chart.js/issues/3860) Correctly handle decimal canvas display size. - [#&#8203;3899](https://github.com/chartjs/Chart.js/issues/3899) Grouped bars that are not stacked are now displayed correctly. Thanks [@&#8203;potatopeelings](https://github.com/potatopeelings) - [#&#8203;3909](https://github.com/chartjs/Chart.js/issues/3909) Avoid fails from server-side renderings. Thanks [@&#8203;khorolets](https://github.com/khorolets) - [#&#8203;3911](https://github.com/chartjs/Chart.js/issues/3911) Fixed missing onComplete animation argument and updated associated doc. - [#&#8203;3945](https://github.com/chartjs/Chart.js/issues/3945) Fixed use of `native` reserved keyword as a parameter name. - [#&#8203;3960](https://github.com/chartjs/Chart.js/issues/3960) Fixed element initial implicit transition. - [#&#8203;4032](https://github.com/chartjs/Chart.js/issues/4032) Radar chart are now centered horizontally. Thanks [@&#8203;shirosaki](https://github.com/shirosaki) - [#&#8203;4039](https://github.com/chartjs/Chart.js/issues/4039) Fixed `line-customTooltips.html` example scroll offset. Thanks [@&#8203;el-ee](https://github.com/el-ee) - [#&#8203;4062](https://github.com/chartjs/Chart.js/issues/4062) Fixed misplaced data points on category scale. Thanks [@&#8203;martinzuern](https://github.com/martinzuern) - [#&#8203;4064](https://github.com/chartjs/Chart.js/issues/4064) Fixed scale min and max when dataset contains no values. Thanks [@&#8203;GabrielMancik](https://github.com/GabrielMancik) - [#&#8203;4086](https://github.com/chartjs/Chart.js/issues/4086) Fixed `pointRadius` and `pointHitRadius` config for radar charts. - [#&#8203;4100](https://github.com/chartjs/Chart.js/issues/4100) Updated the documentation bar chart example to begin at zero. - [#&#8203;4105](https://github.com/chartjs/Chart.js/issues/4105) Ensured that scale width cannot be greater than maxWidth. Thanks [@&#8203;tredston](https://github.com/tredston) - [#&#8203;4140](https://github.com/chartjs/Chart.js/issues/4140) Fixed shorthand `legend: false` and `title: false`. - [#&#8203;4149](https://github.com/chartjs/Chart.js/issues/4149), [#&#8203;4155](https://github.com/chartjs/Chart.js/issues/4155) Fixed and merged contributing documentation. Thanks [@&#8203;benmccann](https://github.com/benmccann) - [#&#8203;4165](https://github.com/chartjs/Chart.js/issues/4165) Fixed failing `instanceof` when reading context from iframe or a protected environment. - [#&#8203;4192](https://github.com/chartjs/Chart.js/issues/4192) Fixed legend and title layout options update. - [#&#8203;4254](https://github.com/chartjs/Chart.js/issues/4254) Fixed images being used as a pointStyle not rendering at custom dimensions #### Development - [#&#8203;3839](https://github.com/chartjs/Chart.js/issues/3839) Added unit tests for deprecations. - [#&#8203;3986](https://github.com/chartjs/Chart.js/issues/3986) Cleaned up and upgraded unit tests environment. - [#&#8203;3988](https://github.com/chartjs/Chart.js/issues/3988) Introduced unit test based on image comparison. - [#&#8203;4075](https://github.com/chartjs/Chart.js/issues/4075) Refactored `gulp coverage` task in `gulp unittest --coverage`. - [#&#8203;4076](https://github.com/chartjs/Chart.js/issues/4076) Moved legend and title in the `plugins` folder. - [#&#8203;4222](https://github.com/chartjs/Chart.js/issues/4222) Removed executable bit from js files. Thanks [@&#8203;benmccann](https://github.com/benmccann) ## More details in the release PR: [#&#8203;4236](https://github.com/chartjs/Chart.js/issues/4236) ### [`v2.5.0`](https://github.com/chartjs/Chart.js/releases/tag/v2.5.0): Version 2.5.0 [Compare Source](https://github.com/chartjs/Chart.js/compare/v2.4.0...v2.5.0) **Version 2.5** brings some exciting new features to Chart.js. Now, configuration options can be updated at runtime (with some exceptions) just by changing the `chart.config.options` object and calling `chart.update()`. [More powerful plugins](https://chartjs.gitbooks.io/proposals/content/Plugins.html) that can be added to an individual chart (instead of globally), but also [disabled on a per chart basis](https://chartjs.gitbooks.io/proposals/content/Plugins.html#disable-plugins). This gives you fine grained control over when plugins interact with your charts. The plugins were changed to support cancelling actions by returning `false` from any `before*` plugin calls. Two new extensions have been added: `beforeEvent` and `afterEvent`, respectively called before and after the chart responds to an input event such as a `mousemove` or a `click`. The plugin is passed a wrapped version of the event, that implements [`IEvent`](https://chartjs.gitbooks.io/proposals/content/Platform.html#event-management). #### Breaking Changes - [#&#8203;3570](https://github.com/chartjs/Chart.js/issues/3570) Removed unused `Chart.helpers.cancelAnimFrame` method. - [#&#8203;3669](https://github.com/chartjs/Chart.js/issues/3669) `onHover` callback now has 3 parameters. The 2nd parameter is the event that triggered the hover. This was done for consistency with the `onClick` callback. #### Deprecations - [#&#8203;3819](https://github.com/chartjs/Chart.js/issues/3819) `IPlugin.afterScaleUpdate`: use `IPlugin.afterLayout` hook instead. - [#&#8203;3819](https://github.com/chartjs/Chart.js/issues/3819) Extending `Chart.PlugingBase` is not anymore required and is strongly discouraged, instead create/register plugins using plain JavaScript objects (see this [example](https://github.com/chartjs/Chart.js/blob/7205ff5e2aa4515bae0c62bb9d8355745837270e/src/core/core.legend.js#L505)). #### New Features - [#&#8203;2060](https://github.com/chartjs/Chart.js/issues/2060) Chart options can now be updated at runtime. - [#&#8203;2643](https://github.com/chartjs/Chart.js/issues/2643) Stacked bar charts now support groupings into smaller stacks. Thanks [@&#8203;potatopeelings](https://github.com/potatopeelings) - [#&#8203;3335](https://github.com/chartjs/Chart.js/issues/3335) Plugins can now be specified per chart. #### Enhancements - [#&#8203;1933](https://github.com/chartjs/Chart.js/issues/1933) Legends can now be hidden dynamically by a plugin at runtime based on the chart size. - [#&#8203;2873](https://github.com/chartjs/Chart.js/issues/2873), [#&#8203;3491](https://github.com/chartjs/Chart.js/issues/3491), [#&#8203;3506](https://github.com/chartjs/Chart.js/issues/3506) Chart elements are clipped when outside the chart area. Thanks [@&#8203;KoyoSE](https://github.com/KoyoSE) - [#&#8203;3208](https://github.com/chartjs/Chart.js/issues/3208) Slow performance using moment.js. Thanks [@&#8203;tredston](https://github.com/tredston) - [#&#8203;3225](https://github.com/chartjs/Chart.js/issues/3225) Multiple lines of text are now supported in radar chart labels - [#&#8203;3514](https://github.com/chartjs/Chart.js/issues/3514) Add `rectRounded` point style. Thanks [@&#8203;cmoel](https://github.com/cmoel) - [#&#8203;3818](https://github.com/chartjs/Chart.js/issues/3818) Removed useless initialization steps to improve performance #### Issues Fixed - [#&#8203;2478](https://github.com/chartjs/Chart.js/issues/2478) Large x axis labels created odd gaps in the chart - [#&#8203;2780](https://github.com/chartjs/Chart.js/issues/2780) Bar chart when data is 0. Thanks [@&#8203;KoyoSE](https://github.com/KoyoSE) - [#&#8203;2879](https://github.com/chartjs/Chart.js/issues/2879), [#&#8203;3354](https://github.com/chartjs/Chart.js/issues/3354) Rotated labels caused issues on the category axis - [#&#8203;3141](https://github.com/chartjs/Chart.js/issues/3141) Axis width incorrectly used `ticks.padding` option when measuring - [#&#8203;3199](https://github.com/chartjs/Chart.js/issues/3199) Line Chart border width of 0 was ignored. - [#&#8203;3412](https://github.com/chartjs/Chart.js/issues/3412) Long y axis tick text was cutoff - [#&#8203;3381](https://github.com/chartjs/Chart.js/issues/3381) Infinite loop when in certain cases when generating logarithmic ticks. - [#&#8203;3387](https://github.com/chartjs/Chart.js/issues/3387) Fixed legend text alignment - [#&#8203;3408](https://github.com/chartjs/Chart.js/issues/3408) Monotone cubic interpolation broke when two adjacent points had the same x value - [#&#8203;3528](https://github.com/chartjs/Chart.js/issues/3528) `null` data caused incorrect tooltips for the time scale. Thanks [@&#8203;Jareechang](https://github.com/Jareechang) - [#&#8203;3585](https://github.com/chartjs/Chart.js/issues/3585) Logarithmic stacked bar charts don't draw the first dataset - [#&#8203;3589](https://github.com/chartjs/Chart.js/issues/3589) Wrong category size of bars when x axis has min and max options. Thanks [@&#8203;KoyoSE](https://github.com/KoyoSE) - [#&#8203;3591](https://github.com/chartjs/Chart.js/issues/3591) Correct radar chart tension settings - [#&#8203;3592](https://github.com/chartjs/Chart.js/issues/3592) Correct radar chart documentation name for point radius setting - [#&#8203;3603](https://github.com/chartjs/Chart.js/issues/3603) Fix crash in `dataset` interaction mode - [#&#8203;3605](https://github.com/chartjs/Chart.js/issues/3605) Documentation for `x-axis` interaction mode was incorrect. Thanks [@&#8203;weareoutman](https://github.com/weareoutman) - [#&#8203;3607](https://github.com/chartjs/Chart.js/issues/3607) Correct link in animation section of documentation. Thanks [@&#8203;38elements](https://github.com/38elements) - [#&#8203;3618](https://github.com/chartjs/Chart.js/issues/3618) Tooltip label is incorrect on Bar chart when min is defined. Thanks [@&#8203;KoyoSE](https://github.com/KoyoSE) - [#&#8203;3685](https://github.com/chartjs/Chart.js/issues/3685) bug when calculating if steps fit into scale as a whole number. Thanks [@&#8203;Tarqwyn](https://github.com/Tarqwyn) - [#&#8203;3713](https://github.com/chartjs/Chart.js/issues/3713) Axis label was cutoff when axis was at top of chart. Thanks [@&#8203;KoyoSE](https://github.com/KoyoSE) - [#&#8203;3717](https://github.com/chartjs/Chart.js/issues/3717) Removed jQuery code from samples. Thanks [@&#8203;KoyoSE](https://github.com/KoyoSE) - [#&#8203;3739](https://github.com/chartjs/Chart.js/issues/3739) Incorrect use of animation options in doughnut chart docs. Thanks [@&#8203;NtsDK](https://github.com/NtsDK) - [#&#8203;3741](https://github.com/chartjs/Chart.js/issues/3741) Axis labels placed incorrectly when axis is at the top of the chart. Thanks [@&#8203;KoyoSE](https://github.com/KoyoSE) - [#&#8203;3763](https://github.com/chartjs/Chart.js/issues/3763) Pie charts incorrectly calculated the inner radius when cutout percentage was 0. - [#&#8203;3772](https://github.com/chartjs/Chart.js/issues/3772) Fix incorrect anchor link in docs. Thanks [@&#8203;mdewilde](https://github.com/mdewilde) - [#&#8203;3788](https://github.com/chartjs/Chart.js/issues/3788) Fixed docs for using Chart.js with CommonJS and ES6 imports. Thanks [@&#8203;Jareechang](https://github.com/Jareechang) - [#&#8203;3801](https://github.com/chartjs/Chart.js/issues/3801) Ignore `.gitignore` file for Bower #### Development - [#&#8203;3610](https://github.com/chartjs/Chart.js/issues/3610) Updated documentation for plugin renames. Thanks [@&#8203;compwright](https://github.com/compwright) - [#&#8203;3635](https://github.com/chartjs/Chart.js/issues/3635) Upgrade to `gulp-uglify` v2.0.0 to improve build speed. Thanks [@&#8203;jeffcarey](https://github.com/jeffcarey) - [#&#8203;3718](https://github.com/chartjs/Chart.js/issues/3718), [#&#8203;3795](https://github.com/chartjs/Chart.js/issues/3795) Refactoring to move platform specific code into it's own module. The ultimate goal is to allow builds for non browser platforms #### More details in the release PR: [#&#8203;3840](https://github.com/chartjs/Chart.js/issues/3840) ### [`v2.4.0`](https://github.com/chartjs/Chart.js/releases/tag/v2.4.0): Version 2.4.0 [Compare Source](https://github.com/chartjs/Chart.js/compare/v2.3.0...v2.4.0) This version focuses on improving the interactivity of Chart.js. We have new and improved modes for interacting with the graph. For instance, you can now highlight the nearest item easily. It is also easy to define your own tooltip modes with a few simple functions. See all the new modes in the [docs](/docs/01-Chart-Configuration.md#interaction-modes). Data animations when adding and removing data have been improved: points now animate in cleanly by default. #### Breaking Changes - [#&#8203;3356](https://github.com/chartjs/Chart.js/issues/3356) The default aspect ratio is now correctly applied, meaning that polar, doughnut and radar charts are now rendered with an aspect ratio of 1 (square). The old behavior can be obtained by globally changing the default `aspectRatio` for each chart type (e.g. `Chart.defaults.doughnut.aspectRatio = 2`). #### New Features - [#&#8203;3201](https://github.com/chartjs/Chart.js/issues/3201) Expose data points info for custom tooltip. Thanks [@&#8203;bydooweedoo](https://github.com/bydooweedoo) - [#&#8203;3400](https://github.com/chartjs/Chart.js/issues/3400) New tooltip and hover interaction modes. - [#&#8203;3411](https://github.com/chartjs/Chart.js/issues/3411) New `displayColors` option to turn off tooltip color boxes. - [#&#8203;3453](https://github.com/chartjs/Chart.js/issues/3453) New tooltip `average` and `nearest` positioning modes. - [#&#8203;3460](https://github.com/chartjs/Chart.js/issues/3460) New line chart fill modes. - [#&#8203;3472](https://github.com/chartjs/Chart.js/issues/3472) Add new `caretX` and `caretY` properties to tooltip point. - [#&#8203;3474](https://github.com/chartjs/Chart.js/issues/3474) Charts can now be created from the canvas id. - [#&#8203;3476](https://github.com/chartjs/Chart.js/issues/3476) Layout service now supports configurable padding. - [#&#8203;3477](https://github.com/chartjs/Chart.js/issues/3477) New method to `reset()` the chart to its initial state. - [#&#8203;3494](https://github.com/chartjs/Chart.js/issues/3494) New `tooltips.filter` option to filter tooltip items. #### Enhancements - [#&#8203;3281](https://github.com/chartjs/Chart.js/issues/3281) Better number formatting for the radial linear scale. - [#&#8203;3326](https://github.com/chartjs/Chart.js/issues/3326) Make charts vertically responsive. - [#&#8203;3364](https://github.com/chartjs/Chart.js/issues/3364) Inject iframe for responsive charts only. - [#&#8203;3399](https://github.com/chartjs/Chart.js/issues/3399) Better animation when adding or removing data. - [#&#8203;3400](https://github.com/chartjs/Chart.js/issues/3400) Improve tooltip and hover Interactions. - [#&#8203;3411](https://github.com/chartjs/Chart.js/issues/3411) Display tooltip color boxes for all tooltips. - [#&#8203;3417](https://github.com/chartjs/Chart.js/issues/3417) Expose the `drawBackground` tooltip method. Thanks [@&#8203;mjeanroy](https://github.com/mjeanroy) - [#&#8203;3468](https://github.com/chartjs/Chart.js/issues/3468) Bar chart performance improvements. - [#&#8203;3504](https://github.com/chartjs/Chart.js/issues/3504) Reorganize, cleanup and enhance samples. - Update installation instructions in README. #### Issues Fixed - [#&#8203;3133](https://github.com/chartjs/Chart.js/issues/3133) Skip non finite data points when determining scale sizes. Thanks [@&#8203;bcongdon](https://github.com/bcongdon) - [#&#8203;3323](https://github.com/chartjs/Chart.js/issues/3323) Fix the legend drawing when `labels.usePointStyle` is true. - [#&#8203;3324](https://github.com/chartjs/Chart.js/issues/3324) Compute correct tooltip size when there is no title present. - [#&#8203;3325](https://github.com/chartjs/Chart.js/issues/3325) Specifically handle multiline strings for doughnut charts. - [#&#8203;3341](https://github.com/chartjs/Chart.js/issues/3341) Fix scale documentation. - [#&#8203;3356](https://github.com/chartjs/Chart.js/issues/3356) Fix initial aspect ratio when not responsive. - [#&#8203;3356](https://github.com/chartjs/Chart.js/issues/3356) Fix radar default aspect ratio and samples. - [#&#8203;3357](https://github.com/chartjs/Chart.js/issues/3357) Fix documentation typos. Thanks [@&#8203;kant](https://github.com/kant) - [#&#8203;3358](https://github.com/chartjs/Chart.js/issues/3358) Fix title overflow by using `maxWidth` `fillText()` argument. Thanks [@&#8203;dylan-kerr](https://github.com/dylan-kerr) - [#&#8203;3361](https://github.com/chartjs/Chart.js/issues/3361) Fix HTML legend string for polar area charts to match doughnut charts. - [#&#8203;3409](https://github.com/chartjs/Chart.js/issues/3409) Generate ticks using only `min`, `max` and `stepSize` when all specified. Thanks [@&#8203;fewstera](https://github.com/fewstera) - [#&#8203;3421](https://github.com/chartjs/Chart.js/issues/3421) Fix bubble chart tooltip callback to use correct labels. - [#&#8203;3443](https://github.com/chartjs/Chart.js/issues/3443) Properly merge colors for the tooltip labels. - [#&#8203;3444](https://github.com/chartjs/Chart.js/issues/3444) Fix documentation comparison table "check" character. Thanks [@&#8203;tiesont](https://github.com/tiesont) - [#&#8203;3446](https://github.com/chartjs/Chart.js/issues/3446) Fix tooltip caret position. - [#&#8203;3450](https://github.com/chartjs/Chart.js/issues/3450) Fix `options.events` option merging. - [#&#8203;3474](https://github.com/chartjs/Chart.js/issues/3474) Prevent exception when an invalid canvas/context/id is provided. - [#&#8203;3490](https://github.com/chartjs/Chart.js/issues/3490) Add missing tick `autoSkipPadding` option documentation. Thanks [@&#8203;bretjb](https://github.com/bretjb) - [#&#8203;3516](https://github.com/chartjs/Chart.js/issues/3516) Fix a documentation typo. Thanks [@&#8203;varatep](https://github.com/varatep) - [#&#8203;3522](https://github.com/chartjs/Chart.js/issues/3522) Fix code and documentation typos. Thanks [@&#8203;jsoref](https://github.com/jsoref) - [#&#8203;3527](https://github.com/chartjs/Chart.js/issues/3527) Fix iframe resize handler when re-attached to DOM. - Move reverse option for labels to correct section in docs. #### Development - [#&#8203;3281](https://github.com/chartjs/Chart.js/issues/3281) Refactor ticks generators and formatters. - [#&#8203;3356](https://github.com/chartjs/Chart.js/issues/3356) Gulp command switch to run specific test files. - [#&#8203;3414](https://github.com/chartjs/Chart.js/issues/3414) Fix NPM `watchify` dependency. Thanks [@&#8203;fewstera](https://github.com/fewstera) - [#&#8203;3473](https://github.com/chartjs/Chart.js/issues/3473) Extend ESLint to unit test. - [#&#8203;3526](https://github.com/chartjs/Chart.js/issues/3526) Bump ESLint to v3.x. #### More details in the release PR: [#&#8203;3551](https://github.com/chartjs/Chart.js/issues/3551) ### [`v2.3.0`](https://github.com/chartjs/Chart.js/releases/tag/v2.3.0): Version 2.3.0 [Compare Source](https://github.com/chartjs/Chart.js/compare/v2.2.2...v2.3.0) This version adds back native bower support. We were able to get a name that matches in case with npm. `bower install chart.js`. Huge props to [@&#8203;simonbrunel](https://github.com/simonbrunel) for getting our build system working and fully automated. #### New Features - Support a minimum unit on the time scale. Set `time.minUnit` to one of the time scale units to use. [#&#8203;3254](https://github.com/chartjs/Chart.js/issues/3254) Thanks [@&#8203;ianks](https://github.com/ianks) #### Issues Fixed - An issue where a zero width border was incorrectly drawn. [#&#8203;3241](https://github.com/chartjs/Chart.js/issues/3241) Thanks [@&#8203;Pikamander2](https://github.com/Pikamander2) - Fixed an incorrect link in the docs [#&#8203;3280](https://github.com/chartjs/Chart.js/issues/3280) Thanks [@&#8203;trantorLiu](https://github.com/trantorLiu) - Return the correct tooltip labels when 2 category axes are used. [#&#8203;3278](https://github.com/chartjs/Chart.js/issues/3278) Thanks [@&#8203;etimberg](https://github.com/etimberg) - Improve performance of the time scale by caching intermediate results. [#&#8203;3211](https://github.com/chartjs/Chart.js/issues/3211) Thanks [@&#8203;desowin](https://github.com/desowin) - Fixed an error when the legend of a pie chart was toggled and there were multiple datasets of different lengths. [#&#8203;3309](https://github.com/chartjs/Chart.js/issues/3309) Thanks [@&#8203;zachpanz88](https://github.com/zachpanz88) #### Development - Change JSHint to eslint [#&#8203;3256](https://github.com/chartjs/Chart.js/issues/3256) Thanks [@&#8203;simonbrunel](https://github.com/simonbrunel) - Setup new eslint guidelines [#&#8203;3308](https://github.com/chartjs/Chart.js/issues/3308) Thanks [@&#8203;zachpanz88](https://github.com/zachpanz88) - Clean up chart creation in tests. [#&#8203;3287](https://github.com/chartjs/Chart.js/issues/3287) Thanks [@&#8203;simonbrunel](https://github.com/simonbrunel) #### More details in the release PR: [#&#8203;3321](https://github.com/chartjs/Chart.js/issues/3321) ### [`v2.2.2`](https://github.com/chartjs/Chart.js/releases/tag/v2.2.2): Version 2.2.2 [Compare Source](https://github.com/chartjs/Chart.js/compare/v2.2.1...v2.2.2) This release fixes a number of issues and adds a few small enhancements. #### Enhancements - Documentation improvements to a number of issues. [#&#8203;3110](https://github.com/chartjs/Chart.js/issues/3110) Thanks [@&#8203;zachpanz88](https://github.com/zachpanz88) - Line charts now support monotone cubic interpolation. This is like bezier interpolation, but ensures that the line only changes monoticity at data points. [#&#8203;3086](https://github.com/chartjs/Chart.js/issues/3086) Thanks [@&#8203;MatthieuRivaud](https://github.com/MatthieuRivaud) - When a line chart has only 1 data point, the item is now drawn in the center of the chart. [#&#8203;3044](https://github.com/chartjs/Chart.js/issues/3044) Thanks [@&#8203;roicos](https://github.com/roicos) #### Bug Fixes - Fixed an issue with drawing a line where all points were skipped [#&#8203;3066](https://github.com/chartjs/Chart.js/issues/3066) - Changed "Data Structure" to "Dataset Structure" in the docs to improve clarity. [#&#8203;3046](https://github.com/chartjs/Chart.js/issues/3046) Thanks [@&#8203;sibennayak](https://github.com/sibennayak) - Removed deprecated `Chart.pluginService` from docs and replace with `Chart.plugins`. [#&#8203;3088](https://github.com/chartjs/Chart.js/issues/3088) Thanks [@&#8203;djhuistra](https://github.com/djhuistra) - Fixed a grammatical error in the docs. [#&#8203;3103](https://github.com/chartjs/Chart.js/issues/3103) Thanks [@&#8203;laviniaclare](https://github.com/laviniaclare) - Added a section to the docs on how to generate patterns for charts. [#&#8203;1323](https://github.com/chartjs/Chart.js/issues/1323) Thanks [@&#8203;ashiguruma](https://github.com/ashiguruma) - The hidden iframe used to detect resizing was focusable during tab. [#&#8203;3090](https://github.com/chartjs/Chart.js/issues/3090) - The tooltip `itemSort` function needs to get passed the chart data. [#&#8203;3127](https://github.com/chartjs/Chart.js/issues/3127) Thanks [@&#8203;vermeeca](https://github.com/vermeeca) - Always use the time scale custom parser [#&#8203;3131](https://github.com/chartjs/Chart.js/issues/3131) Thanks [@&#8203;Lighnat0r](https://github.com/Lighnat0r) - When `drawTicks == false` for a scale, the size of the scale was incorrectly calculated. [#&#8203;2872](https://github.com/chartjs/Chart.js/issues/2872) - When a category scale was used and there were repeated labels, the chart drew incorrectly. [#&#8203;2994](https://github.com/chartjs/Chart.js/issues/2994) ### [`v2.2.1`](https://github.com/chartjs/Chart.js/releases/tag/v2.2.1): Version 2.2.1 [Compare Source](https://github.com/chartjs/Chart.js/compare/v2.2.0...v2.2.1) 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. [#&#8203;3056](https://github.com/chartjs/Chart.js/issues/3056) - Fixed a typo in the docs [#&#8203;3030](https://github.com/chartjs/Chart.js/issues/3030) - Fixed a crash when no data existed for a dataset in a doughnut chart [#&#8203;2631](https://github.com/chartjs/Chart.js/issues/2631) - Recalculate the size of the time scale in the underlying units when the last tick is set. [#&#8203;2560](https://github.com/chartjs/Chart.js/issues/2560) and [#&#8203;2964](https://github.com/chartjs/Chart.js/issues/2964) - Fixed a typo in the colors section of the docs [#&#8203;3058](https://github.com/chartjs/Chart.js/issues/3058) Thanks [@&#8203;benpdavison](https://github.com/benpdavison) ### [`v2.2.0`](https://github.com/chartjs/Chart.js/releases/tag/v2.2.0): Version 2.2.0 [Compare Source](https://github.com/chartjs/Chart.js/compare/v2.1.6...v2.2.0) #### 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 [@&#8203;simonbrunel](https://github.com/simonbrunel) for getting this set up and working. This change means that installing via bower needs to use the [bower npm resolver](https://github.com/mjeanroy/bower-npm-resolver). Detailed instructions can be found in the [docs](https://github.com/chartjs/Chart.js/blob/master/docs/00-Getting-Started.md#bower) #### Enhancements - New build system [#&#8203;2555](https://github.com/chartjs/Chart.js/issues/2555) - Adds a new tooltip and hover mode that replicates the `label` mode of Chart.js V1. [#&#8203;2299](https://github.com/chartjs/Chart.js/issues/2299) Thanks [@&#8203;Mesonyx](https://github.com/Mesonyx) - Allow stacked scatter charts [#&#8203;2878](https://github.com/chartjs/Chart.js/issues/2878) Thanks [@&#8203;mtanda](https://github.com/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. [#&#8203;2910](https://github.com/chartjs/Chart.js/issues/2910) Thanks [@&#8203;Joshuabaker2](https://github.com/Joshuabaker2) - You can now configure the starting angle for radar charts [#&#8203;1012](https://github.com/chartjs/Chart.js/issues/1012) Thanks [@&#8203;slinhart](https://github.com/slinhart) - You can now configure the starting angle for polar area charts [#&#8203;524](https://github.com/chartjs/Chart.js/issues/524) #### Issues Fixed - Fixed JSHint warnings [#&#8203;2734](https://github.com/chartjs/Chart.js/issues/2734) Thanks [@&#8203;simonbrunel](https://github.com/simonbrunel) - Fixed the tooltip average position calculation [#&#8203;2826](https://github.com/chartjs/Chart.js/issues/2826) - Allow passing the value property to the time scale `getPixelForValue` function [#&#8203;2604](https://github.com/chartjs/Chart.js/issues/2604) [#&#8203;2916](https://github.com/chartjs/Chart.js/issues/2916) - If no config is passed to the chart, gracefully fail. [#&#8203;2526](https://github.com/chartjs/Chart.js/issues/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 [#&#8203;2708](https://github.com/chartjs/Chart.js/issues/2708) - Fixed typo in tooltip section of docs [#&#8203;2839](https://github.com/chartjs/Chart.js/issues/2839) - Fixed scale title display in samples [#&#8203;2848](https://github.com/chartjs/Chart.js/issues/2848) Thanks [@&#8203;ronaldgrn](https://github.com/ronaldgrn) - Fixed an issue when the time scale had only one point [#&#8203;2741](https://github.com/chartjs/Chart.js/issues/2741) Thanks [@&#8203;duerahan](https://github.com/duerahan) - Fixed an issue with tooltip display when one dataset does not have a value. [#&#8203;2789](https://github.com/chartjs/Chart.js/issues/2789) Thanks [@&#8203;awallat](https://github.com/awallat) - Scale docs linked to wrong session [#&#8203;2859](https://github.com/chartjs/Chart.js/issues/2859) Thanks [@&#8203;azranel](https://github.com/azranel) - Default to a 0 starting point for polar area graphs [#&#8203;2809](https://github.com/chartjs/Chart.js/issues/2809) - Fixed an issue with pie and doughnut chart hover border clipping [#&#8203;2844](https://github.com/chartjs/Chart.js/issues/2844) Thanks [@&#8203;neilmacintyre](https://github.com/neilmacintyre) - Fixed a typo in the docs [#&#8203;2888](https://github.com/chartjs/Chart.js/issues/2888) - Fixed a typo in the bar chart docs [#&#8203;2897](https://github.com/chartjs/Chart.js/issues/2897) Thanks [@&#8203;jimkring](https://github.com/jimkring) - Improve documentation regarding `offsetGridLines` option [#&#8203;2894](https://github.com/chartjs/Chart.js/issues/2894) Thanks [@&#8203;moberwasserlechner](https://github.com/moberwasserlechner) - Fix an issue when clicking on the label of a category scale [#&#8203;2802](https://github.com/chartjs/Chart.js/issues/2802) - Tooltip `xAlign` and `yAlign` were swapped. [#&#8203;2923](https://github.com/chartjs/Chart.js/issues/2923) Thanks [@&#8203;jeffesp](https://github.com/jeffesp) - Fix typo in the docs [#&#8203;2936](https://github.com/chartjs/Chart.js/issues/2936) Thanks [@&#8203;gitname](https://github.com/gitname) - Add wikipedia link for DRY acronym [#&#8203;2905](https://github.com/chartjs/Chart.js/issues/2905) Thanks [@&#8203;shuson](https://github.com/shuson) - Fix `null` labels affecting tooltips [#&#8203;2875](https://github.com/chartjs/Chart.js/issues/2875) Thanks [@&#8203;Mesonyx](https://github.com/Mesonyx) - Fix docs typo [#&#8203;2961](https://github.com/chartjs/Chart.js/issues/2961) Thanks [@&#8203;moberwasserlechner](https://github.com/moberwasserlechner) - Fixed an issue with numerical data sent to the chart as strings when the axis was stacked [#&#8203;2915](https://github.com/chartjs/Chart.js/issues/2915) - Fix an issue when hovering a point on the chart where not all datasets have data. [#&#8203;2990](https://github.com/chartjs/Chart.js/issues/2990) Thanks [@&#8203;tiagoroldao](https://github.com/tiagoroldao) - Fix an issue in the docs where the pie chart was difficult to click on [#&#8203;2983](https://github.com/chartjs/Chart.js/issues/2983) Thanks [@&#8203;sibennayak](https://github.com/sibennayak) - Removed an unused property from the radar chart sample [#&#8203;3027](https://github.com/chartjs/Chart.js/issues/3027) Thanks [@&#8203;moberwasserlechner](https://github.com/moberwasserlechner) - Correct doc spelling mistakes [#&#8203;3032](https://github.com/chartjs/Chart.js/issues/3032) Thanks [@&#8203;Neabfi](https://github.com/Neabfi) - Prevent the time scale `getLabelMoment` method from going out of bounds [#&#8203;3039](https://github.com/chartjs/Chart.js/issues/3039) Thanks [@&#8203;ianks](https://github.com/ianks) - Duplicate `stepSize` property in docs [#&#8203;3048](https://github.com/chartjs/Chart.js/issues/3048) Thanks [@&#8203;mdewilde](https://github.com/mdewilde) - `getElementAtEvent` could return more than 1 item [#&#8203;2981](https://github.com/chartjs/Chart.js/issues/2981), [#&#8203;2884](https://github.com/chartjs/Chart.js/issues/2884) Thanks [@&#8203;IonutLaceanu](https://github.com/IonutLaceanu) - Fixed `spanGaps` option to work with bezier curves [#&#8203;2812](https://github.com/chartjs/Chart.js/issues/2812) ### [`v2.1.6`](https://github.com/chartjs/Chart.js/releases/tag/v2.1.6): Version 2.1.6 [Compare Source](https://github.com/chartjs/Chart.js/compare/v2.1.5...v2.1.6) Fixes an issue identified in V2.1.5 where returning arrays from tooltip callbacks was broken. [#&#8203;2775](https://github.com/chartjs/Chart.js/issues/2775) ### [`v2.1.5`](https://github.com/chartjs/Chart.js/releases/tag/v2.1.5): Version 2.1.5 [Compare Source](https://github.com/chartjs/Chart.js/compare/v2.1.4...v2.1.5) #### Deprecations - [#&#8203;2752](https://github.com/chartjs/Chart.js/issues/2752) `Chart.pluginService` has been renamed to `Chart.plugins`. #### Enhancements - [#&#8203;2580](https://github.com/chartjs/Chart.js/issues/2580) Allow disabling lines on a per dataset. Use `showLine` property in the dataset. - [#&#8203;2657](https://github.com/chartjs/Chart.js/issues/2657) Added a new tooltip callback to all customizing the colors shown. Modify the `labelColor` callback in the tooltip to change the colors. - [#&#8203;2661](https://github.com/chartjs/Chart.js/issues/2661) Added a way to sort tooltip items using a callback. - [#&#8203;2732](https://github.com/chartjs/Chart.js/issues/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](https://github.com/chartjs/Chart.js/blob/master/samples/bar-horizontal.html) includes this. #### Issues Fixed - [#&#8203;2607](https://github.com/chartjs/Chart.js/issues/2607) Fixed an issue where the 'rectRot' point style drew incorrectly. - [#&#8203;2613](https://github.com/chartjs/Chart.js/issues/2613) Fixed an issue where destroying the chart did not stop animations. - [#&#8203;2639](https://github.com/chartjs/Chart.js/issues/2639) Fixed a crash in the pie-customTooltips sample file. - [#&#8203;2647](https://github.com/chartjs/Chart.js/issues/2647) Fixed an issue where lines with tension 0 did not animate. - [#&#8203;2673](https://github.com/chartjs/Chart.js/issues/2673) Fixed the syntax in the docs scale section. Thanks [@&#8203;zachpanz88](https://github.com/zachpanz88) - [#&#8203;2675](https://github.com/chartjs/Chart.js/issues/2675) Fixed link in Readme to advanced docs section. Thanks [@&#8203;FROGGS](https://github.com/FROGGS) - [#&#8203;2278](https://github.com/chartjs/Chart.js/issues/2278) Fixed issues with points being clipped at the edges. - [#&#8203;2483](https://github.com/chartjs/Chart.js/issues/2483) Improved importing in Common JS scenarios. - [#&#8203;2686](https://github.com/chartjs/Chart.js/issues/2686) Fixed an issue where the chart title did not change during `update`. Thanks [@&#8203;NoelOConnell](https://github.com/NoelOConnell) - [#&#8203;2697](https://github.com/chartjs/Chart.js/issues/2697) Fixed an issue that prevented the legend from rendering. Thanks [@&#8203;dennybiasiolli](https://github.com/dennybiasiolli) - [#&#8203;2298](https://github.com/chartjs/Chart.js/issues/2298) Fixed an issue with AMD builds. Thanks [@&#8203;sassomedia](https://github.com/sassomedia) - [#&#8203;2724](https://github.com/chartjs/Chart.js/issues/2724) Fixed a typo in the tooltip docs. Thanks [@&#8203;fwolfst](https://github.com/fwolfst) - [#&#8203;2730](https://github.com/chartjs/Chart.js/issues/2730) Fixed an issue with the tooltip font color. Thanks [@&#8203;duerahan](https://github.com/duerahan) - [#&#8203;2739](https://github.com/chartjs/Chart.js/issues/2739) Fixed an issue with the font family for point labels in the radial linear scale. Thanks [@&#8203;msimulcik](https://github.com/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 ### [`v2.1.4`](https://github.com/chartjs/Chart.js/releases/tag/v2.1.4): Version 2.1.4 [Compare Source](https://github.com/chartjs/Chart.js/compare/v2.1.3...v2.1.4) 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 [#&#8203;2491](https://github.com/chartjs/Chart.js/issues/2491) [#&#8203;2545](https://github.com/chartjs/Chart.js/issues/2545) [#&#8203;2549](https://github.com/chartjs/Chart.js/issues/2549) [#&#8203;2551](https://github.com/chartjs/Chart.js/issues/2551) [#&#8203;2578](https://github.com/chartjs/Chart.js/issues/2578) [#&#8203;2612](https://github.com/chartjs/Chart.js/issues/2612) Thanks to [@&#8203;simonbrunel](https://github.com/simonbrunel) and [@&#8203;niemyjski](https://github.com/niemyjski) for their help with performance improvements. - Provide default tooltip callback implementations for horizontal bar charts [#&#8203;2536](https://github.com/chartjs/Chart.js/issues/2536) - Added bubble chart docs [#&#8203;2594](https://github.com/chartjs/Chart.js/issues/2594) - Added a new setting, `gridLines.drawBorder` to allow hiding the border along the edge of an axis. [#&#8203;2574](https://github.com/chartjs/Chart.js/issues/2574) Thanks [@&#8203;Ceane](https://github.com/Ceane) Documentation files have been improved for basic configuration and axes. See [#&#8203;2625](https://github.com/chartjs/Chart.js/issues/2625) ### Issues Fixed - Fixed horizontal bar outline [#&#8203;2537](https://github.com/chartjs/Chart.js/issues/2537) - Fixed line tension docs [#&#8203;2535](https://github.com/chartjs/Chart.js/issues/2535) - Fixed a syntax error in a sample [#&#8203;2568](https://github.com/chartjs/Chart.js/issues/2568) Thanks [@&#8203;niemyjski](https://github.com/niemyjski) - Error when the first data point for a chart using a time scale was `null` [#&#8203;2519](https://github.com/chartjs/Chart.js/issues/2519) - Fix an issue where the last tick overlapped. [#&#8203;2589](https://github.com/chartjs/Chart.js/issues/2589) Thanks [@&#8203;haschu](https://github.com/haschu) - Fix an issue with bar widths when there are a lot of bars. [#&#8203;2216](https://github.com/chartjs/Chart.js/issues/2216) - Fix an issue with scatter lines charts when the X value is passed as a moment js object. [#&#8203;2588](https://github.com/chartjs/Chart.js/issues/2588) Thanks [@&#8203;AllenJB](https://github.com/AllenJB) - Fixed an issue with the doughnut doc labels. [#&#8203;2406](https://github.com/chartjs/Chart.js/issues/2406) - Doc did not have a note about selecting the correct build [#&#8203;2288](https://github.com/chartjs/Chart.js/issues/2288) - Null data affected tooltip position [#&#8203;2567](https://github.com/chartjs/Chart.js/issues/2567) - Documentation chart colours were inconsistent. [#&#8203;2593](https://github.com/chartjs/Chart.js/issues/2593) ### [`v2.1.3`](https://github.com/chartjs/Chart.js/releases/tag/v2.1.3): Version 2.1.3 [Compare Source](https://github.com/chartjs/Chart.js/compare/v2.1.2...v2.1.3) 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 [@&#8203;tomduncalf](https://github.com/tomduncalf) - Adds new plugin call for `afterScaleUpdate`. Thanks [@&#8203;Tarqwyn](https://github.com/Tarqwyn) #### Issues Fixed - Fixed a documentation issue regarding stacked bars. Thanks [@&#8203;cw0102](https://github.com/cw0102) - Fixed a typo in the scale documentation. Thanks [@&#8203;matt-watson90](https://github.com/matt-watson90) - Allow canvas pattern objects to be passed as colours. Thanks [@&#8203;ashiguruma](https://github.com/ashiguruma) ### [`v2.1.2`](https://github.com/chartjs/Chart.js/releases/tag/v2.1.2): Version 2.1.2 [Compare Source](https://github.com/chartjs/Chart.js/compare/v2.1.1...v2.1.2) #### Issues Fixed - Fixed an issue with bars on the time scale [#&#8203;2492](https://github.com/chartjs/Chart.js/issues/2492) - Fixed a scale size issue when labels were mirrored [#&#8203;2480](https://github.com/chartjs/Chart.js/issues/2480) - if `beginAtZero` is set and there is no data, the linear scale will be all positive. [#&#8203;2476](https://github.com/chartjs/Chart.js/issues/2476) - Scales that are not displayed should not shrink the chart area [#&#8203;2472](https://github.com/chartjs/Chart.js/issues/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> ```javascript Chart.scaleService.updateScaleDefaults(type, defaults) ``` ### [`v2.1.1`](https://github.com/chartjs/Chart.js/releases/tag/v2.1.1): Version 2.1.1 [Compare Source](https://github.com/chartjs/Chart.js/compare/2.1.0...v2.1.1) This release only contains bug fixes. #### Issues Fixed - Remove all comments from minified build [#&#8203;2462](https://github.com/chartjs/Chart.js/issues/2462). Thanks to [@&#8203;zachpanz88](https://github.com/zachpanz88) - Fix an issue with custom tooltips not rendering [#&#8203;2384](https://github.com/chartjs/Chart.js/issues/2384) Thanks to [@&#8203;brizido](https://github.com/brizido) - Minified file size reduction of 2KB [#&#8203;2463](https://github.com/chartjs/Chart.js/issues/2463) - Updated legend documentation to better indicate what is passed to `generateLabels` - Fix an issue with line tensions not working [#&#8203;2467](https://github.com/chartjs/Chart.js/issues/2467) - Fix an issue in the time scale where grid lines were not drawn at the correct spot [#&#8203;2471](https://github.com/chartjs/Chart.js/issues/2471) ### [`v2.1.0`](https://github.com/chartjs/Chart.js/releases/tag/2.1.0): Version 2.1.0 [Compare Source](https://github.com/chartjs/Chart.js/compare/2.0.2...2.1.0) This release of Chart.js adds horizontal bars (big thanks to [@&#8203;potatopeelings](https://github.com/potatopeelings)) and the ability to create plugins that fit into the lifecycle of a chart. #### New Features - Horizontal Bars!! Thanks to [@&#8203;potatopeelings](https://github.com/potatopeelings) - You can now share data between charts. Thanks to [@&#8203;simonbrunel](https://github.com/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 [@&#8203;mdehoog](https://github.com/mdehoog) - Plugins! You can now create plugins that fit into the chart lifecycle. See [docs](http://www.chartjs.org/docs/#advanced-usage-creating-plugins) #### Fixed Issues - Fixed axis sizing when grid lines were not displayed. Added configurable tick length. [#&#8203;2229](https://github.com/chartjs/Chart.js/issues/2229) - Fixed an issue in the doughnut / polar area legend callbacks when no background color was set [#&#8203;2143](https://github.com/chartjs/Chart.js/issues/2143) - Typo in line chart docs [#&#8203;2289](https://github.com/chartjs/Chart.js/issues/2289) Thanks [@&#8203;tKammy](https://github.com/tKammy) - Fix error in tooltip interface docs [#&#8203;2300](https://github.com/chartjs/Chart.js/issues/2300) Thanks to [@&#8203;HuwSy](https://github.com/HuwSy) - Fix doughnut html legend span placement [#&#8203;2308](https://github.com/chartjs/Chart.js/issues/2308) Thanks to [@&#8203;pwavg](https://github.com/pwavg) - Fix typo in plugin `destroy` call. [#&#8203;2318](https://github.com/chartjs/Chart.js/issues/2318) Thanks [@&#8203;Janpot](https://github.com/Janpot) - Improved logic for calculating bar width. [#&#8203;2326](https://github.com/chartjs/Chart.js/issues/2326) Thanks to [@&#8203;johnw86](https://github.com/johnw86) - Ensured that built file has header comment at very top. [#&#8203;2329](https://github.com/chartjs/Chart.js/issues/2329) Thanks to [@&#8203;zachpanz88](https://github.com/zachpanz88) - Fix typo in Contributing.md [#&#8203;2332](https://github.com/chartjs/Chart.js/issues/2332) Thanks to [@&#8203;sashamjolnir](https://github.com/sashamjolnir) - Fix label mode tooltips in radar charts [#&#8203;2023](https://github.com/chartjs/Chart.js/issues/2023) - Make docs clearer for nested properties. [#&#8203;2338](https://github.com/chartjs/Chart.js/issues/2338) Thanks to [@&#8203;DaanDeMeyer](https://github.com/DaanDeMeyer) - Fix the time scale when the first value is `null` [#&#8203;2176](https://github.com/chartjs/Chart.js/issues/2176) - Fix legend sizing [#&#8203;2152](https://github.com/chartjs/Chart.js/issues/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 [#&#8203;2277](https://github.com/chartjs/Chart.js/issues/2277) - Only use visible datasets for the time scale limit determination. [#&#8203;2394](https://github.com/chartjs/Chart.js/issues/2394) Thanks [@&#8203;Lighnat0r](https://github.com/Lighnat0r) - Fix an issue in the docs where the pie chart had sensitive click areas [#&#8203;2389](https://github.com/chartjs/Chart.js/issues/2389) Thanks to [@&#8203;dougmolineux](https://github.com/dougmolineux) - Pie chart sample now randomizes colors as well. [#&#8203;2421](https://github.com/chartjs/Chart.js/issues/2421) Thanks to [@&#8203;mchateloin](https://github.com/mchateloin) #### Config Changes The old options will still work in this release. - Renamed dataset `tension` property to `lineTension`. [#&#8203;2314](https://github.com/chartjs/Chart.js/issues/2314) Thanks to [@&#8203;jachstet-sea](https://github.com/jachstet-sea) - Renamed dataset `radius` property to `pointRadius` [#&#8203;2314](https://github.com/chartjs/Chart.js/issues/2314) Thanks to [@&#8203;jachstet-sea](https://github.com/jachstet-sea) - `Chart.defaults.Line` renamed to `Chart.defaults.line` [#&#8203;2340](https://github.com/chartjs/Chart.js/issues/2340) Thanks to [@&#8203;DaanDeMeyer](https://github.com/DaanDeMeyer) - `Chart.defaults.Bar` renamed to `Chart.defaults.bar` [#&#8203;2340](https://github.com/chartjs/Chart.js/issues/2340) Thanks to [@&#8203;DaanDeMeyer](https://github.com/DaanDeMeyer) ### [`v2.0.2`](https://github.com/chartjs/Chart.js/releases/tag/2.0.2): Version 2.0.2 [Compare Source](https://github.com/chartjs/Chart.js/compare/v2.0.1...2.0.2) The release of Chart.js 2.0.2 provides a few new enhancements . Documentation is available at <http://nnnick.github.io/Chart.js/docs-v2/> #### Enhancements - Added rotation and circumference properties to doughnut/pie charts (See [#&#8203;2271](https://github.com/chartjs/Chart.js/issues/2271)) - Better default settings for tick rotation for better space utilization and legibility ### [`v2.0.1`](https://github.com/chartjs/Chart.js/releases/tag/v2.0.1): Version 2.0.1 [Compare Source](https://github.com/chartjs/Chart.js/compare/v2.0.0...v2.0.1) The release of Chart.js 2.0.1 consists of mostly bug fixes. Documentation is available at <http://nnnick.github.io/Chart.js/docs-v2/> #### Enhancements - Improved handling of canvas gradient objects. Thanks [@&#8203;tomduncalf](https://github.com/tomduncalf) - Optimized animation frame requests. Thanks [@&#8203;simonbrunel](https://github.com/simonbrunel) - Sample file with showing how to add labels for each bar. Thanks [@&#8203;thukaramvh](https://github.com/thukaramvh) - Updated custom tooltip sample to work with relative positions. Thanks [@&#8203;HarvestingClouds](https://github.com/HarvestingClouds) #### Fixed Issues - Better documentation of point radius setting. Thanks [@&#8203;jamiepenney](https://github.com/jamiepenney) - Incorrect string measurements when the scale `callback` returned `null` or `undefined` - Incorrect main file path in package.json. Thanks [@&#8203;troywarr](https://github.com/troywarr) - Incorrect HTML legend generation. Thanks [@&#8203;dibsyjr1](https://github.com/dibsyjr1) ### [`v2.0.0`](https://github.com/chartjs/Chart.js/releases/tag/v2.0.0): Version 2.0.0 [Compare Source](https://github.com/chartjs/Chart.js/compare/v1.1.1...v2.0.0) The release of Chart.js 2.0.0 adds many new features over version 1. Documentation is available at <http://nnnick.github.io/Chart.js/docs-v2/> #### Major new features - Charts that combine visual types such as bars and lines - Chart titles - Built-in legends that are interactive by default - New scale types including native logarithmic and time/date support - Multiple X and Y axes are supported - Stacked bar and area charts - Tooltip customization - Enhanced ability to modify the chart data dynamically. - Generic layout system for placing objects on the canvas - Controllers for each dataset that are easy to extend #### Features since 2.0.0-beta2 - Allow setting the number of tick marks using `ticks.maxTicksLimit` ([#&#8203;1859](https://github.com/chartjs/Chart.js/issues/1859)) Thanks [@&#8203;morleyzhi](https://github.com/morleyzhi) - Performance improvements when charts have a lot of data ([#&#8203;1882](https://github.com/chartjs/Chart.js/issues/1882)). Big thanks to [@&#8203;mathiask88](https://github.com/mathiask88) - Allow custom point styles including any canvas image object. ([#&#8203;1905](https://github.com/chartjs/Chart.js/issues/1905)). Thanks [@&#8203;mathiask88](https://github.com/mathiask88) - Improved test coverage for dataset controllers - Added global default font options to customize all fonts at once - Added `ticks.stepSize` to the linear scale. Allows setting a fixed delta between tick marks . ([#&#8203;1978](https://github.com/chartjs/Chart.js/issues/1978)). Thanks [@&#8203;roben](https://github.com/roben) - Added browserify build. `dist` folder now has bundled versions that include moment.js ([#&#8203;2007](https://github.com/chartjs/Chart.js/issues/2007)) Thanks [@&#8203;tannerlinsley](https://github.com/tannerlinsley) - Updated all sample files to consistent style ([#&#8203;2018](https://github.com/chartjs/Chart.js/issues/2018)). Big thanks to [@&#8203;hamalaiv](https://github.com/hamalaiv) - Allow the time scale to use multiples of the base units (second, minute, etc). ([#&#8203;2101](https://github.com/chartjs/Chart.js/issues/2101)) - Exposed `xAlign` and `yAlign` options for tooltips. ([#&#8203;2116](https://github.com/chartjs/Chart.js/issues/2116)). Thanks [@&#8203;100000001](https://github.com/100000001) - Clip chart objects outside of chart area in preparation for zoom and pan support. [#&#8203;2209](https://github.com/chartjs/Chart.js/issues/2209) - Added `ticks.min` and `ticks.max` support to the category scale. The value of these settings must be something in the data.labels array. [#&#8203;2209](https://github.com/chartjs/Chart.js/issues/2209) - Allow percentages as max-width and max-height styles on parent container ([#&#8203;2081](https://github.com/chartjs/Chart.js/issues/2081)) #### Bug fixes since 2.0.0-beta2 - Draw borders at edge of scales ([#&#8203;1740](https://github.com/chartjs/Chart.js/issues/1740)) - Improved scale fitting ([#&#8203;1766](https://github.com/chartjs/Chart.js/issues/1766)) - Prevent flickering of bars that represent `NaN` data ([#&#8203;1822](https://github.com/chartjs/Chart.js/issues/1822)) - Add `suggestedMin`, `suggestedMax`, `min`, and `max` options to radial linear scale ([#&#8203;1461](https://github.com/chartjs/Chart.js/issues/1461)) - Better support for stacking bars correctly ([#&#8203;1862](https://github.com/chartjs/Chart.js/issues/1862)) - Don't use undefined axis constructors ([#&#8203;1871](https://github.com/chartjs/Chart.js/issues/1871)) - Allow drawing a line chart with points on ([#&#8203;1882](https://github.com/chartjs/Chart.js/issues/1882)). Thanks [@&#8203;mathiask88](https://github.com/mathiask88) - First and last ticks are always shown on the axis. ([#&#8203;1884](https://github.com/chartjs/Chart.js/issues/1884)) - Fixed an issue with undefined functions when trying to align tooltips. ([#&#8203;1891](https://github.com/chartjs/Chart.js/issues/1891)). Thanks [@&#8203;davis](https://github.com/davis) - Fixed an issue with numerical error on the linear axis ([#&#8203;1890](https://github.com/chartjs/Chart.js/issues/1890)) - Fixed an issue when an axis was reversed ([#&#8203;1907](https://github.com/chartjs/Chart.js/issues/1907)) - Fixed an issue when resizing and the animation duration was 0ms. ([#&#8203;1910](https://github.com/chartjs/Chart.js/issues/1910)). Thanks [@&#8203;mathiask88](https://github.com/mathiask88) - Fixed an issue where the last grid line of an axis was drawn differently. ([#&#8203;1914](https://github.com/chartjs/Chart.js/issues/1914)) - Fixed an issue when a new dataset was added to a chart with time scales ([#&#8203;1917](https://github.com/chartjs/Chart.js/issues/1917)) - Fixed `min` and `max` settings for time scales ([#&#8203;1941](https://github.com/chartjs/Chart.js/issues/1941)) - Made it easier to use axis callbacks to change ticks array ([#&#8203;1942](https://github.com/chartjs/Chart.js/issues/1942)) - Disabled auto-skipping in time scale by default ([#&#8203;1962](https://github.com/chartjs/Chart.js/issues/1962)) - Fixed an issue with stacked bar charts ([#&#8203;1963](https://github.com/chartjs/Chart.js/issues/1963)) - Fixed an issue where lines were not shown in combo charts ([#&#8203;1971](https://github.com/chartjs/Chart.js/issues/1971)) - Take padding into account when calculating model coordinates from event coordinates ([#&#8203;1996](https://github.com/chartjs/Chart.js/issues/1996)) - Fixed bar and doughnut chart animations ([#&#8203;2022](https://github.com/chartjs/Chart.js/issues/2022)) - Fixed stacking tooltip order ([#&#8203;2027](https://github.com/chartjs/Chart.js/issues/2027)). Thanks [@&#8203;tannerlinsley](https://github.com/tannerlinsley) - Allow the user to specify the alpha value for tooltip colours. ([#&#8203;2036](https://github.com/chartjs/Chart.js/issues/2036)) Thanks [@&#8203;hamalaiv](https://github.com/hamalaiv) - Fixed animation bug where tooltips did not always fade away ([#&#8203;2037](https://github.com/chartjs/Chart.js/issues/2037)) - Allow line chart point radius to be set to 0. ([#&#8203;2040](https://github.com/chartjs/Chart.js/issues/2040)) - Fixed on-canvas legend generation when no datasets are present ([#&#8203;2070](https://github.com/chartjs/Chart.js/issues/2070)) - Improved custom time parsing ([#&#8203;2086](https://github.com/chartjs/Chart.js/issues/2086)). Thanks [@&#8203;MatthiasWinkelmann](https://github.com/MatthiasWinkelmann) - Fixed an issue when reseting the page zoom to 100% ([#&#8203;1904](https://github.com/chartjs/Chart.js/issues/1904)) - Throw an error in the time scale when created if moment is not defined. ([#&#8203;2110](https://github.com/chartjs/Chart.js/issues/2110)) - Better support when there is no `datasets` object in the chart data ([#&#8203;2115](https://github.com/chartjs/Chart.js/issues/2115)) - Fixed missing whitespace & code markup errors in documentation. ([#&#8203;2125](https://github.com/chartjs/Chart.js/issues/2125)). Thanks [@&#8203;The-Smallest](https://github.com/The-Smallest) - Allow borders on rectanges to be skipped ([#&#8203;2128](https://github.com/chartjs/Chart.js/issues/2128)). Thanks [@&#8203;The-Smallest](https://github.com/The-Smallest) - Fixed axis IDs error in documentation ([#&#8203;2131](https://github.com/chartjs/Chart.js/issues/2131)) - Add support for v2 branch in composer.json ([#&#8203;2133](https://github.com/chartjs/Chart.js/issues/2133)). Thanks [@&#8203;borancar](https://github.com/borancar) - Better use of default scale types ([#&#8203;2154](https://github.com/chartjs/Chart.js/issues/2154)) - Better merging when the xAxes object is specified but the type is not ([#&#8203;2157](https://github.com/chartjs/Chart.js/issues/2157)) - Removed unnecessary default padding ([#&#8203;2173](https://github.com/chartjs/Chart.js/issues/2173)). Thanks [@&#8203;niemyjski](https://github.com/niemyjski) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xMzAuMCIsInVwZGF0ZWRJblZlciI6IjQxLjEzMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
chore(deps): update dependency chart.js to v4
Some checks failed
Build / container (push) Failing after 32s
6d486bd59e
renovate scheduled this pull request to auto merge when all checks succeed 2025-10-31 06:04:11 +00:00
Some checks failed
Build / container (push) Failing after 32s
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/chart.js-4.x:renovate/chart.js-4.x
git switch renovate/chart.js-4.x

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff renovate/chart.js-4.x
git switch renovate/chart.js-4.x
git rebase main
git switch main
git merge --ff-only renovate/chart.js-4.x
git switch renovate/chart.js-4.x
git rebase main
git switch main
git merge --no-ff renovate/chart.js-4.x
git switch main
git merge --squash renovate/chart.js-4.x
git switch main
git merge --ff-only renovate/chart.js-4.x
git switch main
git merge renovate/chart.js-4.x
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
fleaz/schmeckels!8
No description provided.