Remove tension option backwards compatibility (#6692)

This commit is contained in:
Ben McCann
2019-11-05 04:11:53 -08:00
committed by Evert Timberg
parent 83d447f317
commit f0fb2c65b1
2 changed files with 1 additions and 5 deletions

View File

@@ -29,6 +29,7 @@ Chart.js is no longer providing the `Chart.bundle.js` and `Chart.bundle.min.js`.
### Options
* The dataset option `tension` was renamed to `lineTension`
* `scales.[x/y]Axes.barPercentage` was moved to dataset option `barPercentage`
* `scales.[x/y]Axes.barThickness` was moved to dataset option `barThickness`
* `scales.[x/y]Axes.categoryPercentage` was moved to dataset option `categoryPercentage`

View File

@@ -82,11 +82,6 @@ module.exports = DatasetController.extend({
// Update Line
if (showLine) {
// Compatibility: If the properties are defined with only the old name, use those values
if (config.tension !== undefined && config.lineTension === undefined) {
config.lineTension = config.tension;
}
// Utility
line._datasetIndex = me.index;
// Data