]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Update interpolation-modes sample to new defaults (#8093)
authorJukka Kurkela <jukka.kurkela@gmail.com>
Mon, 23 Nov 2020 13:17:40 +0000 (15:17 +0200)
committerGitHub <noreply@github.com>
Mon, 23 Nov 2020 13:17:40 +0000 (08:17 -0500)
samples/charts/line/interpolation-modes.html

index 6a7550f54ca5706ae47801fdab0d8de14b9b278f..819bc284e84c90b6f7cead123d5c745781eaa1a7 100644 (file)
                                        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: {