]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Turns off interpolation per default (#7386)
authorSebastian Niemann <5516578+sebiniemann@users.noreply.github.com>
Fri, 12 Jun 2020 22:03:52 +0000 (00:03 +0200)
committerGitHub <noreply@github.com>
Fri, 12 Jun 2020 22:03:52 +0000 (18:03 -0400)
Co-authored-by: Sebastian Niemann <sn@wertpapiertreuhand.de>
46 files changed:
docs/docs/charts/line.mdx
package-lock.json
src/elements/element.line.js
test/fixtures/controller.line/backgroundColor/scriptable.png
test/fixtures/controller.line/backgroundColor/value.png
test/fixtures/controller.line/borderColor/scriptable.png
test/fixtures/controller.line/borderColor/value.png
test/fixtures/controller.line/borderDash/scriptable.png
test/fixtures/controller.line/borderDash/value.png
test/fixtures/controller.line/borderWidth/scriptable.png
test/fixtures/controller.line/borderWidth/value.png
test/fixtures/controller.line/clip/default-x-max.png
test/fixtures/controller.line/clip/default-x-min.png
test/fixtures/controller.line/clip/default-x.png
test/fixtures/controller.line/clip/default-y-max.png
test/fixtures/controller.line/clip/default-y-min.png
test/fixtures/controller.line/clip/default-y.png
test/fixtures/controller.line/clip/specified.png
test/fixtures/controller.line/cubicInterpolationMode/scriptable.js
test/fixtures/controller.line/cubicInterpolationMode/value.js
test/fixtures/controller.line/fill/order-default.png
test/fixtures/controller.line/fill/order.png
test/fixtures/controller.line/fill/scriptable.png
test/fixtures/controller.line/fill/value.png
test/fixtures/controller.line/non-numeric-y.png
test/fixtures/controller.line/stacking/order-default.png
test/fixtures/controller.line/stacking/order-specified.png
test/fixtures/core.layouts/long-labels.png
test/fixtures/element.line/default.png
test/fixtures/element.line/tension/default.png
test/fixtures/plugin.filler/fill-line-boundary-origin-spline-above.png
test/fixtures/plugin.filler/fill-line-boundary-origin-spline-span.png
test/fixtures/plugin.filler/fill-line-boundary-origin-spline.png
test/fixtures/plugin.filler/fill-line-dataset-spline-span-above.png
test/fixtures/plugin.filler/fill-line-dataset-spline-span-below.png
test/fixtures/plugin.filler/fill-line-dataset-spline-span.png
test/fixtures/plugin.filler/fill-line-dataset-spline.png
test/fixtures/plugin.filler/fill-line-dataset-stepped.png
test/fixtures/scale.time/data-ty.png
test/fixtures/scale.time/data-xy.png
test/fixtures/scale.time/source-auto-linear.png
test/fixtures/scale.time/source-data-linear.png
test/fixtures/scale.time/source-labels-linear-offset-min-max.png
test/fixtures/scale.time/source-labels-linear.png
test/fixtures/scale.time/ticks-reverse-linear-min-max.png
test/fixtures/scale.time/ticks-reverse-linear.png

index eac6ace0f9fb16a06abba9794cfc802c498b848f..19279229acd9388e9678c9687754c3735bca2bcb 100644 (file)
@@ -72,7 +72,7 @@ The line chart allows a number of properties to be specified for each dataset. T
 | [`hoverBorderJoinStyle`](#line-styling) | `string` | Yes | - | `undefined`
 | [`hoverBorderWidth`](#line-styling) | `number` | Yes | - | `undefined`
 | [`label`](#general) | `string` | - | - | `''`
-| [`lineTension`](#line-styling) | `number` | - | - | `0.4`
+| [`lineTension`](#line-styling) | `number` | - | - | `0`
 | [`order`](#general) | `number` | - | - | `0`
 | [`pointBackgroundColor`](#point-styling) | `Color` | Yes | Yes | `'rgba(0, 0, 0, 0.1)'`
 | [`pointBorderColor`](#point-styling) | `Color` | Yes | Yes | `'rgba(0, 0, 0, 0.1)'`
index d7e855725d319d3fbca56b37a5ff82349b3799b1..6ca9da985cdf6884a711a0ec53953b2009103a13 100644 (file)
         "@babel/types": "^7.7.0",
         "eslint-visitor-keys": "^1.0.0",
         "resolve": "^1.12.0"
+      },
+      "dependencies": {
+        "@babel/generator": {
+          "version": "7.9.6",
+          "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.9.6.tgz",
+          "integrity": "sha512-+htwWKJbH2bL72HRluF8zumBxzuX0ZZUFl3JLNyoUjM/Ho8wnVpPXM6aUz8cfKDqQ/h7zHqKt4xzJteUosckqQ==",
+          "dev": true,
+          "requires": {
+            "@babel/types": "^7.9.6",
+            "jsesc": "^2.5.1",
+            "lodash": "^4.17.13",
+            "source-map": "^0.5.0"
+          }
+        },
+        "@babel/helper-function-name": {
+          "version": "7.9.5",
+          "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.9.5.tgz",
+          "integrity": "sha512-JVcQZeXM59Cd1qanDUxv9fgJpt3NeKUaqBqUEvfmQ+BCOKq2xUgaWZW2hr0dkbyJgezYuplEoh5knmrnS68efw==",
+          "dev": true,
+          "requires": {
+            "@babel/helper-get-function-arity": "^7.8.3",
+            "@babel/template": "^7.8.3",
+            "@babel/types": "^7.9.5"
+          }
+        },
+        "@babel/helper-get-function-arity": {
+          "version": "7.8.3",
+          "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz",
+          "integrity": "sha512-FVDR+Gd9iLjUMY1fzE2SR0IuaJToR4RkCDARVfsBBPSP53GEqSFjD8gNyxg246VUyc/ALRxFaAK8rVG7UT7xRA==",
+          "dev": true,
+          "requires": {
+            "@babel/types": "^7.8.3"
+          }
+        },
+        "@babel/helper-split-export-declaration": {
+          "version": "7.8.3",
+          "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz",
+          "integrity": "sha512-3x3yOeyBhW851hroze7ElzdkeRXQYQbFIb7gLK1WQYsw2GWDay5gAJNw1sWJ0VFP6z5J1whqeXH/WCdCjZv6dA==",
+          "dev": true,
+          "requires": {
+            "@babel/types": "^7.8.3"
+          }
+        },
+        "@babel/highlight": {
+          "version": "7.9.0",
+          "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.9.0.tgz",
+          "integrity": "sha512-lJZPilxX7Op3Nv/2cvFdnlepPXDxi29wxteT57Q965oc5R9v86ztx0jfxVrTcBk8C2kcPkkDa2Z4T3ZsPPVWsQ==",
+          "dev": true,
+          "requires": {
+            "@babel/helper-validator-identifier": "^7.9.0",
+            "chalk": "^2.0.0",
+            "js-tokens": "^4.0.0"
+          }
+        },
+        "@babel/parser": {
+          "version": "7.9.6",
+          "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.9.6.tgz",
+          "integrity": "sha512-AoeIEJn8vt+d/6+PXDRPaksYhnlbMIiejioBZvvMQsOjW/JYK6k/0dKnvvP3EhK5GfMBWDPtrxRtegWdAcdq9Q==",
+          "dev": true
+        },
+        "@babel/template": {
+          "version": "7.8.6",
+          "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.8.6.tgz",
+          "integrity": "sha512-zbMsPMy/v0PWFZEhQJ66bqjhH+z0JgMoBWuikXybgG3Gkd/3t5oQ1Rw2WQhnSrsOmsKXnZOx15tkC4qON/+JPg==",
+          "dev": true,
+          "requires": {
+            "@babel/code-frame": "^7.8.3",
+            "@babel/parser": "^7.8.6",
+            "@babel/types": "^7.8.6"
+          },
+          "dependencies": {
+            "@babel/code-frame": {
+              "version": "7.8.3",
+              "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz",
+              "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==",
+              "dev": true,
+              "requires": {
+                "@babel/highlight": "^7.8.3"
+              }
+            }
+          }
+        },
+        "@babel/traverse": {
+          "version": "7.9.6",
+          "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.9.6.tgz",
+          "integrity": "sha512-b3rAHSjbxy6VEAvlxM8OV/0X4XrG72zoxme6q1MOoe2vd0bEc+TwayhuC1+Dfgqh1QEG+pj7atQqvUprHIccsg==",
+          "dev": true,
+          "requires": {
+            "@babel/code-frame": "^7.8.3",
+            "@babel/generator": "^7.9.6",
+            "@babel/helper-function-name": "^7.9.5",
+            "@babel/helper-split-export-declaration": "^7.8.3",
+            "@babel/parser": "^7.9.6",
+            "@babel/types": "^7.9.6",
+            "debug": "^4.1.0",
+            "globals": "^11.1.0",
+            "lodash": "^4.17.13"
+          },
+          "dependencies": {
+            "@babel/code-frame": {
+              "version": "7.8.3",
+              "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz",
+              "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==",
+              "dev": true,
+              "requires": {
+                "@babel/highlight": "^7.8.3"
+              }
+            }
+          }
+        },
+        "@babel/types": {
+          "version": "7.9.6",
+          "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.6.tgz",
+          "integrity": "sha512-qxXzvBO//jO9ZnoasKF1uJzHd2+M6Q2ZPIVfnFps8JJvXy0ZBbwbNOmE6SGIY5XOY6d1Bo5lb9d9RJ8nv3WSeA==",
+          "dev": true,
+          "requires": {
+            "@babel/helper-validator-identifier": "^7.9.5",
+            "lodash": "^4.17.13",
+            "to-fast-properties": "^2.0.0"
+          }
+        }
       }
     },
     "babel-helper-call-delegate": {
index 9e45e22d54b7e8702bf16c58ef5e216f82c0fbbc..c29cb5519043e64b1a81239ff726b3bfb83dcf4e 100644 (file)
@@ -18,7 +18,7 @@ defaults.set(scope, {
        borderWidth: 3,
        capBezierPoints: true,
        fill: true,
-       tension: 0.4
+       tension: 0
 });
 
 defaults.route(scope, ['backgroundColor', 'borderColor'], '', 'color');
index 00f11aa55b09237184a89f898a07250210826a57..81831ec6c2082baea1d56df40d7da99a9fa1dfd2 100644 (file)
Binary files a/test/fixtures/controller.line/backgroundColor/scriptable.png and b/test/fixtures/controller.line/backgroundColor/scriptable.png differ
index 4e31ae42b28c36e90a328b35a023ce5348a171c1..3f303d0242d0ee6c347326e100458f5da7fc9333 100644 (file)
Binary files a/test/fixtures/controller.line/backgroundColor/value.png and b/test/fixtures/controller.line/backgroundColor/value.png differ
index 5df5acb7f76428fcab4b50a3f93b1103d939742a..02a9ea274208cabe34d74ffc2a6471aa04153587 100644 (file)
Binary files a/test/fixtures/controller.line/borderColor/scriptable.png and b/test/fixtures/controller.line/borderColor/scriptable.png differ
index 53a2dafb048709b15477e15478f6d16daefb1f9f..a5807456380effe50ddc5074a0f98d28b01b7c33 100644 (file)
Binary files a/test/fixtures/controller.line/borderColor/value.png and b/test/fixtures/controller.line/borderColor/value.png differ
index aca33c7d28789a95a62a84d90bbd261c802462bf..fab773b823ae64ac6cfcab50cae5cf96bc0e42c8 100644 (file)
Binary files a/test/fixtures/controller.line/borderDash/scriptable.png and b/test/fixtures/controller.line/borderDash/scriptable.png differ
index 0704b19bf8b491d29cc583dea760565f6aa132ea..8a68ce751ffe49cc946983979382fbae46b35334 100644 (file)
Binary files a/test/fixtures/controller.line/borderDash/value.png and b/test/fixtures/controller.line/borderDash/value.png differ
index ab54b5a99a3bfbb4c63865663019dd4e95e113d5..2e77d049ed5fb4a2ca93740f12fe81b5e490b1d5 100644 (file)
Binary files a/test/fixtures/controller.line/borderWidth/scriptable.png and b/test/fixtures/controller.line/borderWidth/scriptable.png differ
index 715ea7200e2cf2ba7b45d3b47b0ce8d237439215..6c18e4999cb04946ccc398b40e4303f1678f4449 100644 (file)
Binary files a/test/fixtures/controller.line/borderWidth/value.png and b/test/fixtures/controller.line/borderWidth/value.png differ
index 1b1ff84f819c95feb467e2b215980d2fe7877c24..d5010ad1726e9c3c570c7e2a6ba145c5a83e1bd4 100644 (file)
Binary files a/test/fixtures/controller.line/clip/default-x-max.png and b/test/fixtures/controller.line/clip/default-x-max.png differ
index 44dce35d73780108053439b87d9ad837786dbae9..7f406b11e95cca748e82808f688f76f0b63ddd66 100644 (file)
Binary files a/test/fixtures/controller.line/clip/default-x-min.png and b/test/fixtures/controller.line/clip/default-x-min.png differ
index f6601de6983d1f3d15b12d75415b1098b58e7bf9..a409d197968113c3dd233996f26546c7bb2f290b 100644 (file)
Binary files a/test/fixtures/controller.line/clip/default-x.png and b/test/fixtures/controller.line/clip/default-x.png differ
index 33473b8af6d752417fe9a60006115776ba7dda9a..be188dec95e62997f632c3feccd4d519da24bfe2 100644 (file)
Binary files a/test/fixtures/controller.line/clip/default-y-max.png and b/test/fixtures/controller.line/clip/default-y-max.png differ
index 7ae2e6510a4b738db3d1126034bcc25e995f7225..356eff3b076d0c1778f081f7a611109048da2b05 100644 (file)
Binary files a/test/fixtures/controller.line/clip/default-y-min.png and b/test/fixtures/controller.line/clip/default-y-min.png differ
index 7878ab657067ee779f9fc319e95c0b5e89ede82e..2def4c523d82f870443aca5caa1968dd09f34f5b 100644 (file)
Binary files a/test/fixtures/controller.line/clip/default-y.png and b/test/fixtures/controller.line/clip/default-y.png differ
index 60e60b23447bd8c1967c3b5fba4ef040a584ae43..6aa531c976d96de23384c3d43eb4c7703aea09b7 100644 (file)
Binary files a/test/fixtures/controller.line/clip/specified.png and b/test/fixtures/controller.line/clip/specified.png differ
index 39f8ed56f6af59eb8f3e96b6f33e66d020d15849..d2dfd54b104900d81715c0c10dd8926a144ff720 100644 (file)
@@ -28,7 +28,8 @@ module.exports = {
                                        cubicInterpolationMode: function(ctx) {
                                                return ctx.datasetIndex === 0 ? 'monotone' : 'default';
                                        },
-                                       fill: false
+                                       fill: false,
+                                       tension: 0.4
                                }
                        },
                        layout: {
index 6183d4630b4535f1e587e24063e8c03b7089af92..516eb97976c443e5728d489c8a4ac4fa57309c46 100644 (file)
@@ -25,6 +25,7 @@ module.exports = {
                                        borderWidth: 20,
                                        cubicInterpolationMode: 'default',
                                        fill: false,
+                                       tension: 0.4
                                }
                        },
                        layout: {
index 6c07bd20b10da8deb10a310e014e052159e2e468..958d591ab88cbce55ed3466e7a66357553abe43a 100644 (file)
Binary files a/test/fixtures/controller.line/fill/order-default.png and b/test/fixtures/controller.line/fill/order-default.png differ
index 6ff1a054fe59285a41978cecb6b9d2327198a3b0..6660cb8f22975a90c818185118acef77811cdd52 100644 (file)
Binary files a/test/fixtures/controller.line/fill/order.png and b/test/fixtures/controller.line/fill/order.png differ
index bd93389a65da0cdbb2b78ad6d572c92d59cea98c..8127ec409f7db9d3cef36dc660c6a1b70b56bb21 100644 (file)
Binary files a/test/fixtures/controller.line/fill/scriptable.png and b/test/fixtures/controller.line/fill/scriptable.png differ
index 4ec8a8311744cecb09e89f5b409533073538da70..6f0601c89123b3a7f9872722e4839517b00b8182 100644 (file)
Binary files a/test/fixtures/controller.line/fill/value.png and b/test/fixtures/controller.line/fill/value.png differ
index 5ebecd597b5c127faf76dae0837ed9a3a4eae94d..856197ab7bb0bfc4c507d58cf496b0347b86db83 100644 (file)
Binary files a/test/fixtures/controller.line/non-numeric-y.png and b/test/fixtures/controller.line/non-numeric-y.png differ
index 3355da629235094ec460b10b7ca579aaac678661..2e93a7bf93d4a426c58d8d3802937f9468c2df15 100644 (file)
Binary files a/test/fixtures/controller.line/stacking/order-default.png and b/test/fixtures/controller.line/stacking/order-default.png differ
index ff3edfaf1120ee50120186d18b76e3cac666ff0f..b832bd9db9823a23133e27124652f60b600ddfa8 100644 (file)
Binary files a/test/fixtures/controller.line/stacking/order-specified.png and b/test/fixtures/controller.line/stacking/order-specified.png differ
index fdb60452613ee10aaac5a83e8dc9a626ed85f982..49d1637ba2ee454c178eef2872384c639ae2656b 100644 (file)
Binary files a/test/fixtures/core.layouts/long-labels.png and b/test/fixtures/core.layouts/long-labels.png differ
index b686f4d4972ec4f121bac093c95163123e22886d..adf64009b170b576c3202a9ee87c607cf2dc5165 100644 (file)
Binary files a/test/fixtures/element.line/default.png and b/test/fixtures/element.line/default.png differ
index d8aeba911caec8120512b258c741d20ce77453e5..1b1515894f469324e1e273a9cd73b1b724739fa2 100644 (file)
Binary files a/test/fixtures/element.line/tension/default.png and b/test/fixtures/element.line/tension/default.png differ
index c0b25469d6900651f0c026224412ceed61fef591..3b3caff7391f48f39b134bcebc23902a43f6a5bf 100644 (file)
Binary files a/test/fixtures/plugin.filler/fill-line-boundary-origin-spline-above.png and b/test/fixtures/plugin.filler/fill-line-boundary-origin-spline-above.png differ
index 75aef6a768fd640ffe2bd0d314313fbc6059c09d..a93784a2a0eaea5d9fb388bc1c875f32bac54d61 100644 (file)
Binary files a/test/fixtures/plugin.filler/fill-line-boundary-origin-spline-span.png and b/test/fixtures/plugin.filler/fill-line-boundary-origin-spline-span.png differ
index 3e22492e5083bd415d49f318d287057b2a8e8ac9..4d67822d5d838fa15f17d0a4f6a3fefae9386ada 100644 (file)
Binary files a/test/fixtures/plugin.filler/fill-line-boundary-origin-spline.png and b/test/fixtures/plugin.filler/fill-line-boundary-origin-spline.png differ
index 838a24b5db3f11c9ea0fe9df3eb09b0910d559ec..4814932317189f94d8dc8c883534a72f7aa2c4d6 100644 (file)
Binary files a/test/fixtures/plugin.filler/fill-line-dataset-spline-span-above.png and b/test/fixtures/plugin.filler/fill-line-dataset-spline-span-above.png differ
index 68a20e2eeeae72d6ff5d2447df65eb11d70e7aab..5eb6663b778306ae4ff83b27d2a3a41e5b6d7bd3 100644 (file)
Binary files a/test/fixtures/plugin.filler/fill-line-dataset-spline-span-below.png and b/test/fixtures/plugin.filler/fill-line-dataset-spline-span-below.png differ
index 97cbb6d2f508c623e15d027abbcee553a8841ac1..feb4fefb9a4658dcdaf70c51ac8d5c6ab3a62c25 100644 (file)
Binary files a/test/fixtures/plugin.filler/fill-line-dataset-spline-span.png and b/test/fixtures/plugin.filler/fill-line-dataset-spline-span.png differ
index 8147e4d8073d5fa8b45f1107ad52f5532a61516f..ed02242e339713a17043316d2dccf10d367c51da 100644 (file)
Binary files a/test/fixtures/plugin.filler/fill-line-dataset-spline.png and b/test/fixtures/plugin.filler/fill-line-dataset-spline.png differ
index 072fc76bf7de38ad0992420672095ac2fd3e0cc9..418bca44e03f2b3c6e5149da329e96c512b37b59 100644 (file)
Binary files a/test/fixtures/plugin.filler/fill-line-dataset-stepped.png and b/test/fixtures/plugin.filler/fill-line-dataset-stepped.png differ
index 1690650c49d3f9d3ebcad9832e3b790d1d4b1cb0..acb6dd5a44ab69b375fde322e58326af844febff 100644 (file)
Binary files a/test/fixtures/scale.time/data-ty.png and b/test/fixtures/scale.time/data-ty.png differ
index 1690650c49d3f9d3ebcad9832e3b790d1d4b1cb0..acb6dd5a44ab69b375fde322e58326af844febff 100644 (file)
Binary files a/test/fixtures/scale.time/data-xy.png and b/test/fixtures/scale.time/data-xy.png differ
index 80eb07c736246ec9d0c53a75e7cc86430bc75c50..bedfde067f3d65c04047dc46939e3326f41b3351 100644 (file)
Binary files a/test/fixtures/scale.time/source-auto-linear.png and b/test/fixtures/scale.time/source-auto-linear.png differ
index 7200319e39b84de17710b0bad4e0c0e1e4802d88..a86d1954fcca9a6027e2dbfc17ba61dd7e6c138c 100644 (file)
Binary files a/test/fixtures/scale.time/source-data-linear.png and b/test/fixtures/scale.time/source-data-linear.png differ
index 1f9bf9045560ee5e93a4e1d96b968973d354766e..47463888222a50fb8cae16a3c081bb75674dac04 100644 (file)
Binary files a/test/fixtures/scale.time/source-labels-linear-offset-min-max.png and b/test/fixtures/scale.time/source-labels-linear-offset-min-max.png differ
index 7200319e39b84de17710b0bad4e0c0e1e4802d88..a86d1954fcca9a6027e2dbfc17ba61dd7e6c138c 100644 (file)
Binary files a/test/fixtures/scale.time/source-labels-linear.png and b/test/fixtures/scale.time/source-labels-linear.png differ
index 5a2871571ceedae767d17a4290bc77394ccaa734..8da6a228a80c6000be3a04ad8a1f84f2d46e1e78 100644 (file)
Binary files a/test/fixtures/scale.time/ticks-reverse-linear-min-max.png and b/test/fixtures/scale.time/ticks-reverse-linear-min-max.png differ
index 6c12592cf48fefdb28c46fb67511ae1a1b9eb3f7..ec0e7be091607abf545a5665c03d6698fb13fbac 100644 (file)
Binary files a/test/fixtures/scale.time/ticks-reverse-linear.png and b/test/fixtures/scale.time/ticks-reverse-linear.png differ