Skip to content

Releases: chartjs/Chart.js

v3.0.0-beta.13

06 Mar 15:52
1e6a3fb
Compare
Choose a tag to compare
v3.0.0-beta.13 Pre-release
Pre-release

Essential Links

Breaking Changes

  • #8563 Relocate chart type and dataset type defaults
  • #8576 Rename scaleLabel to title in scale options

Enhancements

  • #8563 Relocate chart type and dataset type defaults
  • #8579 Enable multi-line axis titles
  • #8561 Tooltip specific scriptable context
  • #8553 Add _allKeys descriptor for Object.keys behavior
  • #8429 Provide auto-registering entry point

Bugs Fixed

  • #8567 Fix layout refit logic
  • #8569 Linear: Skip ticks that would overlap with min/max
  • #8560 Time: limit offset to sane values, gen >= 2 ticks
  • #8547 Fix normalize when null values at edge of dataset
  • #8545 Fix function support on _fallback
  • #8542 Resolve to false only when _fallback is used
  • #8534 Options need to include dataset level defaults from main chart type

Types

  • #8556 Types: Update ScriptableContext
  • #8555 Types: Update LayotPosition

Documentation

  • #8554 update defaults in tooltip
  • #8549 Fixes sample in the doc about missing animations configuration
  • #8540 Update chart extension docs + add samples
  • #8537 Clarify interaction docs to indicate they apply to all interactions

Development

  • #8580 Bump to 3.0.0-beta.13
  • #8570 Move niceNum to helpers.math, cleanup IE fallbacks
  • #8559 Remove distribution option from fixtures
  • #8552 Add test for normalized option with null data on edge
  • #8550 Remove empty dependencies block from package.json

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

v3.0.0-beta.12

27 Feb 18:36
f23807f
Compare
Choose a tag to compare
v3.0.0-beta.12 Pre-release
Pre-release

Essential Links

  • #8474 Update dependencies

Breaking Changes

  • #8523 rename tooltip.custom property to tooltip.external
  • #8521 Remove unused getRingIndex from Doughnut
  • #8514 Rename cutoutPercentage to cutout + chores
  • #8493 Merge tooltip padding settings
  • #8466 Stop reading fixedStepSize from tick options

Enhancements

  • #8510 Use null for skipped values instead of NaN
  • #8514 Rename cutoutPercentage to cutout + chores
  • #8509 Add resizeDelay option
  • #8492 Sample plugin in docs for canvas background
  • #8493 Merge tooltip padding settings
  • #8487 Add outerRadius option to doughnut/pie
  • #8468 LTTB Decimation

Bugs Fixed

  • #8529 Fix calling of onResize
  • #8520 Fix stacking bug when a dataset is removed
  • #8516 Config is no longer updated by options setter
  • #8517 Reduce duplication in PointElement
  • #8507 Fix layout bug when there are no visible boxes
  • #8508 Time scale: skip invalid data
  • #8506 Fix set/delete oprations on Proxies
  • #8497 Plugin options default scriptable/indexable=false
  • #8483 Only consider visible vertical boxes in layout
  • #8482 Fix ticks.mirror
  • #8477 Stop defaulting to `r` axis for Scale with id `r`
  • #8467 Decimation plugin fixes
  • #8465 Disable fastPathSegment when data is decimated
  • #8464 Only use Path2D caching when available

Types

  • #8526 Types: Add couple of tests, move utils to new file
  • #8525 Update types so instance can be assigned to a variable of type Chart
  • #8503 update borderskipped typing
  • #8491 Document stacked parsed data
  • #8488 Document the `fullSize` property of the title plugin
  • #8480 Provide a chart-type specific definition for ParsedData
  • #8478 Added 'hidden: boolean' in index.esm.d.ts to ControllerDatasetOptions type
  • #8472 Update index.esm.d.ts
  • #8476 Fix animation types, add test

Documentation

  • #8533 Update wording in docs about merging options
  • #8504 data type is correct for all chart types
  • #8500 Perf docs: tension is now 0 by default
  • #8492 Sample plugin in docs for canvas background
  • #8488 Document the `fullSize` property of the title plugin
  • #8478 Added 'hidden: boolean' in index.esm.d.ts to ControllerDatasetOptions type

Development

  • #8532 Bump version to beta.12
  • #8523 rename tooltip.custom property to tooltip.external
  • #8526 Types: Add couple of tests, move utils to new file
  • #8518 Clean up easing functions
  • #8521 Remove unused getRingIndex from Doughnut
  • #8517 Reduce duplication in PointElement
  • #8513 Remove unreachable code paths from plugins
  • #8512 Remove debug option from animation
  • #8466 Stop reading fixedStepSize from tick options

Thanks to @LeeLenaleee, @benmccann, @etimberg, @kashifshamaz21 and @kurkle

v3.0.0-beta.11

20 Feb 15:12
d63542c
Compare
Choose a tag to compare
v3.0.0-beta.11 Pre-release
Pre-release

Essential Links

Breaking Changes

  • #8318 Add raw data to context and rename dataPoint to parsed
  • #8332 Isolate properties / modes from animation options
  • #8437 Round canvas size to 0.1px resolution
  • #8374 Option resolution with proxies
  • #8393 Remove options.scale, in favor of options.scales.r

Enhancements

  • #8332 Isolate properties / modes from animation options
  • #8456 Update resolver fallback logic
  • #8452 Add support for common object methods to Proxies
  • #8437 Round canvas size to 0.1px resolution
  • #8431 Make Chart static properties and methods read only
  • #8374 Option resolution with proxies
  • #8425 Provide a method to quickly register all imports in ESM builds
  • #8318 Add raw data to context and rename dataPoint to parsed

Performance

  • #8435 perf: resolver caching
  • #8434 perf: resolveObjectKey
  • #8413 Optimize context object construction

Bugs Fixed

  • #8459 Fix/getRelativePosition NaN value with native event
  • #8462 Remove core plugin fallbacks to root options
  • #8444 Fix controller specific animations
  • #8439 Fix couple of animation bugs
  • #8438 Fix memory leak on destroy
  • #8388 Fix element creation for large dataset
  • #8379 Prevent 2nd parse call with zero count

Types

  • #8390 Update ScriptableContext, reduce warnings
  • #8377 Fix/type dateadapter override
  • #8389 Update types for indexAxis

Documentation

  • #8463 Fix broken links in documentation
  • #8427 Clarify options placement
  • #8447 add clarification about object data structure
  • #8436 Add a note about hover options
  • #8430 Add `Decimation` to all available imports list
  • #8404 Fixes wrong and missing options to bar element and dataset documentation
  • #8395 Update anchorlinks and offscreen canvas compatibility
  • #8383 Improve radial gradient sample

Development

  • #8441 Bump version to 3.0.0-beta.11
  • #8461 Update polar animation tests to less error prone
  • #8457 Update doughnut animation fixture
  • #8455 Add tests for polarArea chart animations
  • #8433 Remove unused typedoc option that is deprecated
  • #8432 Update typedoc to fix dependabot alert
  • #8408 Small chores
  • #8393 Remove options.scale, in favor of options.scales.r

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

v3.0.0-beta.10

01 Feb 21:45
650956b
Compare
Choose a tag to compare
v3.0.0-beta.10 Pre-release
Pre-release

Essential Links

  • #8333 Bump socket.io from 2.3.0 to 2.4.1

Breaking Changes

  • #8356 Update type map names
  • #8358 Rename LayoutItem.fullWidth to fullSize

Enhancements

  • #8255 Create a new hook to enable data decimation
  • #8359 align text inside chart for far-aligned labels passing test
  • #8354 Fix/scatter tooltip mode
  • #8341 feature: choose custom point style for bar legend display

Performance

  • #8255 Create a new hook to enable data decimation

Bugs Fixed

  • #8328 fix canvas clearRect size calculation

Types

  • #8356 Update type map names
  • #8290 Give elements their own interface definition
  • #8321 Doughnut: complete radians to degrees conversion

Documentation

  • #8336 `getRelativePosition takes` two arguments. Update sample docs
  • #8327 add documentation for vertical line charts
  • #8323 Fix custom pie chart HTML tooltip sample not showing
  • #8321 Doughnut: complete radians to degrees conversion

Development

  • #8364 Bump version number for beta.10
  • #8362 Shave off some bytes
  • #8325 Update to test utils 0.1.2 to track font setting

Thanks to @LeeLenaleee, @dependabot, @dependabot[bot], @etimberg, @iamarcel, @joshkel and @kurkle

v3.0.0-beta.9

16 Jan 19:19
eb88909
Compare
Choose a tag to compare
v3.0.0-beta.9 Pre-release
Pre-release

Essential Links

Bugs Fixed

  • #8319 Disable Path2D caching when chart is animated
  • #8315 Fix reading wrong property from font object for font string

Types

  • #8305 fixes #8304 (Missing type) beta 8 broken typescript

Documentation

  • #8316 Fix broken links in tooltip docs

Development

  • #8320 Bump v3.0.0-beta.9
  • #8312 Revert "Update spelling of cancellable (#8236)"

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

v3.0.0-beta.8

13 Jan 12:52
ad94181
Compare
Choose a tag to compare
v3.0.0-beta.8 Pre-release
Pre-release

Essential Links

Breaking Changes

  • #8248 Skip reset when animations are disabled
  • #8223 Remove duplicate Scriptable definitions
  • #8215 Add options to configure tick styling independent of grid lines

Enhancements

  • #8215 Add options to configure tick styling independent of grid lines
  • #8193 Layout: enforce box limits, reject <0 chartArea
  • #8185 Hover: only update styles of changed elements

Performance

  • #8248 Skip reset when animations are disabled
  • #8246 Line: Update points directly, when possible
  • #8244 Use cached Intl.NumberFormat everywhere
  • #8239 Line: Use Path2D as cache
  • #8240 Cache the lineheight regex
  • #8234 Cache data limits to ensure they are only computed once per update

Bugs Fixed

  • #8302 Only draw points when radius >= 0.1
  • #8291 Skip delete undefined stack
  • #8266 Fix resize bug of line / radar charts
  • #8252 Tooltip: Render when animations are disabled
  • #8250 Line: Set points on resize (to reset Path2D cache)
  • #8253 Fix small bugs when animations are disabled
  • #8247 Always freeze cached options
  • #8226 Enable changing the chart type
  • #8222 Scriptable tick colours
  • #8221 Horizontal axis with center position should display labels
  • #8194 Make PointLabels color scriptable
  • #8195 Update defaults and types for tick stroke
  • #8191 Radius validation for drawRadiusLine
  • #8184 Reject pending promises when animation is updated
  • #8181 Remove dataset while hovered
  • #8168 Fix legend alignment issues
  • #8170 ArcElement: Skip draw when radius is negative
  • #8167 Use correct color for legend labels
  • #8161 Quick exit the legend fit function when the legend is not displayed
  • #8162 Prevent double plugin registers from losing the list of plugins
  • #8142 Respect the set locale in the pie/doughnut tooltips
  • #8139 fix default font color for legend

Types

  • #8263 Standardize type declaration indentation with tabs
  • #8198 Merge TS files into a single file to prevent circular loops
  • #8196 Add color options to documentation and types where missing
  • #8190 TypeScript updates
  • #8195 Update defaults and types for tick stroke
  • #8160 Move tooltip plugin hooks to the core Plugin type
  • #8149 Update docs on printing

Documentation

  • #8289 clarification that strikethrough uses same color as the label color
  • #8283 Add note about v3 dev code in readme
  • #8274 Remove empty line from the options table
  • #8279 Update quotationmark for link
  • #8271 Fix incorrect defaults location for Bubble
  • #8270 Update link to latest version of V2 Docs
  • #8267 Upgrade TypeDoc
  • #8262 Upgrade Docusaurus
  • #8257 Adds backgroundColor and borderColor options to the documentation
  • #8259 Change title font default option in the documentation
  • #8245 Mention npm in installation section
  • #8230 Example code plugin outdated
  • #8216 Ensure that default collections table is clear
  • #8214 Add note about loading fonts and chart updates
  • #8212 Ensure that default animation modes table is clear
  • #8201 Docs/multiline labels
  • #8199 Controller defaults wrong adressing
  • #8196 Add color options to documentation and types where missing
  • #8174 fix: add ArcElement to getting-started.md
  • #8177 added comma to fix syntax issue
  • #8151 Update docs for .resize() method
  • #8156 default values for element background and border color were wrong
  • #8149 Update docs on printing
  • #8138 Clarification: barPercentage vs categoryPercentage

Development

  • #8300 Bump version to beta.8
  • #8267 Upgrade TypeDoc
  • #8262 Upgrade Docusaurus
  • #8263 Standardize type declaration indentation with tabs
  • #8254 Use provided options in tooltip plugin
  • #8238 Rename helpers.clear to helpers.clearCanvas
  • #8236 Update spelling of cancellable
  • #8235 Clean up the LayoutItem type
  • #8227 Create standardized text render method
  • #8223 Remove duplicate Scriptable definitions
  • #8208 Split animation definitions
  • #8206 Split Element type to it's own definition file
  • #8205 Split adapter types to their own definition file
  • #8202 Split geometric types to their own definition file
  • #8109 Legend plugin cleanup

Thanks to @LeeLenaleee, @UrielMaD, @benmccann, @dcyou, @etimberg, @joshkel, @kurkle, @salmankazmi and @stockiNail

v3.0.0-beta.7

04 Dec 21:00
a7ff116
Compare
Choose a tag to compare
v3.0.0-beta.7 Pre-release
Pre-release

Essential Links

Breaking Changes

  • #8111 LineElement: no fill by default
  • #8102 Unify signature of plugin hooks
  • #8089 Move title, tooltip and legend to options.plugins
  • #8090 Restore `datasets` namespace (revert 6955)
  • #8066 Align font options with CSS
  • #8074 Rename uppercase types to camel case
  • #8062 Unify cartesian scale tick order
  • #8009 Drop legacy browser support

Enhancements

  • #8112 Add new scale hooks for plugins
  • #8103 Add new hooks for plugins
  • #8102 Unify signature of plugin hooks
  • #8050 Allow single parameter to Defaults.set
  • #8060 Enable bounds option to all cartesian axes
  • #8053 CategoryScale: automatically add missing labels

Performance

  • #8049 Events: Only render when needed

Bugs Fixed

  • #8101 Fix CategoryScale.getValueForPixel with autoSkip
  • #8097 Fix disabling hover
  • #8082 Do not use offsetX/Y in shadow DOM
  • #8052 Chart.register: preserve existing defaults
  • #8024 dataset tooltip now shows correctly

Types

  • #8118 [v3] Add locale to ChartOptions type
  • #8110 fix color type & add background and border color
  • #8074 Rename uppercase types to camel case
  • #8048 Add plugins to CoreChartOptions
  • #8027 [beta.6][types] fix inconsistency in types for LABEL

Documentation

  • #8118 [v3] Add locale to ChartOptions type
  • #8113 Fix/area fill and chart titles
  • #8107 Fix typo in performance.md
  • #8099 fixed samples: area dataset (line), Radar and Logarithmic scale scatter
  • #8093 Update interpolation-modes sample to new defaults
  • #8081 Place scatter chart example options in the correct spot
  • #8080 made scatter chart a lot better readable, removed unnecesarry notes
  • #8076 Remove classic style extensions from docs/tests
  • #8070 fix broken url in docs
  • #8071 v2 note not nessecary in v3 docs and update example
  • #8065 Add missing import to styling.mdx
  • #8061 Update axis documentation
  • #8047 Update v3-migration.md
  • #8041 Fix broken link
  • #8039 Fix import names in integration example
  • #8037 documentation error
  • #8072 Fix url bug

Development

  • #8104 Title plugin cleanup
  • #8057 Refactor/cleanup range option handling
  • #8036 Try and get the version number without a `v`
  • #8028 Add tests and clean up resolveObjectKey helper
  • #8128 Bump highlight.js from 10.3.1 to 10.4.1

Thanks to @IVIosi, @LeeLenaleee, @dependabot, @dependabot[bot], @etimberg, @kurkle, @lab900-marcel-samyn, @lpellegr, @saintmalik, @wenfangdu and @xr0master

v3.0.0-beta.6

08 Nov 15:16
7ad9181
Compare
Choose a tag to compare
v3.0.0-beta.6 Pre-release
Pre-release

Essential Links

Breaking Changes

  • #8017 Remove I prefix from TS types

Enhancements

  • #8007 Add type to context objects

Bugs Fixed

  • #8013 When data is removed, remove from stacks too
  • #8006 Use same merging logic for init and update
  • #7996 Remove use of null propagation operator since it's still in a draft state

Types

  • #8025 Improved types for defaults
  • #8017 Remove I prefix from TS types
  • #8001 [types][beta-5] fixed stacked scale, changed default type for data.labels

Documentation

  • #8004 Destroy example charts on unmount

Development

  • #8018 Bubble: Use point.size() in getMaxOverflow
  • #8014 Remove +-10px limit from bar controller
  • #8015 Normalize rotation and circumference resolution

Thanks to @emmcbd, @etimberg, @kurkle and @xr0master

v3.0.0-beta.5

01 Nov 13:31
4daf37e
Compare
Choose a tag to compare
v3.0.0-beta.5 Pre-release
Pre-release

Essential Links

Breaking Changes

  • #7989 Delay resize to just before draw when animating
  • #7979 Relocate dataset defaults to defaults.controllers
  • #7949 Add `args.mode` to before/after update plugin hooks
  • #7936 Rename showLines to showLine
  • #7924 Rename elements to mark as elements, i.e. Arc -> ArcElement
  • #7900 Document getElementsAtEventForMode and remove APIs that can be replaced by it

Enhancements

  • #7981 Preserve scriptable context
  • #7972 feat: Draw tooltips with point styles. Closes #7774
  • #7968 feat: Make options.layout.padding scriptable. Closes #7873
  • #7951 feat: add borderRadius to bar charts. Closes #7701
  • #7959 Enable overriding the legend pointStyle using new `pointStyle` option
  • #7955 Enable suggestedMin and suggestedMax settings for logarithmic axes
  • #7949 Add `args.mode` to before/after update plugin hooks
  • #7924 Rename elements to mark as elements, i.e. Arc -> ArcElement
  • #7905 Ability to fill a line to a specified value along an axis
  • #7904 Bar chart base value overrides

Bugs Fixed

  • #7989 Delay resize to just before draw when animating
  • #7986 Check index bounds of datasets for isDatasetVisible
  • #7983 Tooltip: clear cached animations on initialize
  • #7964 Legend item lineWidth is the average of borderWidth when set as object (Bar)
  • #7919 Block incorrect keys in merge code to prevent prototype pollution
  • #7917 Use Object.create(null) as merge target, to prevent prototype pollution
  • #7910 Render points while animations are active
  • #7908 Reduce tooltip implied padding at top and bottom edges of the canvas
  • #7906 Fix Maximum call stack size exception in _computeLabelSizes
  • #7899 Fix beginAtZero for logarithmic axes
  • #7897 Share min sample size with all bars on the same scale

Types

  • #7961 fix return type for setActiveElements

Documentation

  • #7988 Use TypeScript syntax highlight for TypeScript code
  • #7957 Update stacked line sample to remove duplicate dataset names
  • #7953 Update category scale labels types to include string[][]
  • #7914 Documentation Typos
  • #7913 Minor Typos
  • #7912 Fix broken url in docs
  • #7909 Fix version numbers in Developers section of docs
  • #7900 Document getElementsAtEventForMode and remove APIs that can be replaced by it

Development

  • #7978 Rename lineTension back to tension
  • #7979 Relocate dataset defaults to defaults.controllers
  • #7939 Move config handling to a dedicated script
  • #7949 Add `args.mode` to before/after update plugin hooks
  • #7936 Rename showLines to showLine
  • #7915 Update dependencies
  • #7911 Stop deploying docs / drafting releases from forks
  • #7902 Renamed .browserlistrc to .browserslistrc
  • #7898 Remove circular dependencies from helpers

Thanks to @danmana, @etimberg, @fab313, @indigolain, @kurkle, @paul-cheung, @silentmatt, @stockiNail and @Yash-Singh1

v2.9.4

19 Oct 12:24
Compare
Choose a tag to compare

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

Bugs Fixed

  • #7404 - Preserve prototypes when cloning. Thanks @iddings
  • #7587 - Fix docs for external moment.js. Thanks @mojoaxel
  • #7853 - Fix box recursion when dimensions are NaN. Thanks @alessandroasm
  • #7883 - Fix call stack exception when computing label sizes. Thanks @silentmatt
  • #7918 - Prevent global prototype pollution via the merge helper
  • #7920 - Use Object.create(null) as merge target, to prevent prototype pollution