]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Stop defaulting to `r` axis for Scale with id `r` (#8477)
authorJukka Kurkela <jukka.kurkela@gmail.com>
Sun, 21 Feb 2021 14:13:16 +0000 (16:13 +0200)
committerGitHub <noreply@github.com>
Sun, 21 Feb 2021 14:13:16 +0000 (09:13 -0500)
src/core/core.config.js

index 580082b292455b6d0b0dff28d98b7e463b070be3..d2fa83cb025f06305eaa041552d5d31e1ca23af4 100644 (file)
@@ -34,7 +34,7 @@ function axisFromPosition(position) {
 }
 
 export function determineAxis(id, scaleOptions) {
-  if (id === 'x' || id === 'y' || id === 'r') {
+  if (id === 'x' || id === 'y') {
     return id;
   }
   return scaleOptions.axis || axisFromPosition(scaleOptions.position) || id.charAt(0).toLowerCase();