docs/migration/v4-migration.md
Chart.js 4.0 introduces a number of breaking changes. We tried keeping the amount of breaking changes to a minimum. For some features and bug fixes it was necessary to break backwards compatibility, but we aimed to do so only when worth the benefit.
x/y. Defining xAxes in your config will now create a second scale instead of overriding the default x axis.A number of changes were made to the configuration options passed to the Chart constructor. Those changes are documented below.
destroy plugin hook has been removed and replaced with afterDestroy.scales[id].grid.drawBorder has been renamed to scales[id].border.display.scales[id].grid.borderWidth has been renamed to scales[id].border.width.scales[id].grid.borderColor has been renamed to scales[id].border.color.scales[id].grid.borderDash has been renamed to scales[id].border.dash.scales[id].grid.borderDashOffset has been renamed to scales[id].border.dashOffset.5% of the max value to the range if the min and max are the same instead of 1.undefined, then the default callback will be used.maintainAspectRatio respects container height.ticks.stepSize instead of time.stepSize, which has been removed.maxTickslimit won't be used for the ticks in autoSkip if the determined max ticks is less then the maxTicksLimit.dist/chart.js has been removed.dist/chart.min.js has been renamed to dist/chart.umd.min.js (and before 4.5.0 dist/chart.umd.js).dist/chart.esm.js has been renamed to dist/chart.js.ChartMeta parameters have been changed from <Element, DatasetElement, Type> to <Type, Element, DatasetElement>.package.json:
{
"type": "module"
}
fontColor for the legend text and strikethrough color.config._chart fallback for this.chart in the filler plugin.this._chart in the filler plugin.