mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Update interpolation-modes sample to new defaults (#8093)
This commit is contained in:
parent
fa997f06e2
commit
c2beebf12b
@ -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: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user