Update interpolation-modes sample to new defaults (#8093)

This commit is contained in:
Jukka Kurkela 2020-11-23 15:17:40 +02:00 committed by GitHub
parent fa997f06e2
commit c2beebf12b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,20 +38,21 @@
borderColor: window.chartColors.red,
backgroundColor: 'rgba(0, 0, 0, 0)',
fill: false,
cubicInterpolationMode: 'monotone'
cubicInterpolationMode: 'monotone',
tension: 0.4
}, {
label: 'Cubic interpolation (default)',
label: 'Cubic interpolation',
data: datapoints,
borderColor: window.chartColors.blue,
backgroundColor: 'rgba(0, 0, 0, 0)',
fill: false,
tension: 0.4
}, {
label: 'Linear interpolation',
label: 'Linear interpolation (default)',
data: datapoints,
borderColor: window.chartColors.green,
backgroundColor: 'rgba(0, 0, 0, 0)',
fill: false,
tension: 0
fill: false
}]
},
options: {