'getting-started/installation',
'getting-started/integration',
'getting-started/usage',
- 'getting-started/v3-migration'
]
},
{
'developers/updates',
]
},
+ {
+ title: 'Migration',
+ children: [
+ 'migration/v4-migration',
+ 'migration/v3-migration',
+ ]
+ },
],
}
}
--- /dev/null
+# 4.x Migration Guide
+
+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 backwars compatibility, but we aimed to do so only when worth the benefit.
+
+## End user migration
+
+### Options
+
+A number of changes were made to the configuration options passed to the `Chart` constructor. Those changes are documented below.
+
+#### Specific changes
+
+* The radialLinear grid indexable and scriptable options don't decrease the index of the specified grid line anymore.
this.ticks.forEach((tick, index) => {
if (index !== 0) {
offset = this.getDistanceFromCenterForValue(tick.value);
- const optsAtIndex = grid.setContext(this.getContext(index - 1));
+ const optsAtIndex = grid.setContext(this.getContext(index));
drawRadiusLine(this, optsAtIndex, offset, labelCount);
}
});