From 3102fab0447d13a2515130a4f7e29b86313bf8db Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Sat, 9 Nov 2019 18:54:51 -0800 Subject: [PATCH] Fix undefined variable (#6698) --- src/core/core.scale.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/core.scale.js b/src/core/core.scale.js index 914bdefaae1..0c1413d4a03 100644 --- a/src/core/core.scale.js +++ b/src/core/core.scale.js @@ -356,7 +356,7 @@ var Scale = Element.extend({ */ _getLabels: function() { var data = this.chart.data; - return this.options.labels || (this.isHorizontal() ? data.xLabels : data.yLabels) || data.labels; + return this.options.labels || (this.isHorizontal() ? data.xLabels : data.yLabels) || data.labels || []; }, // These methods are ordered by lifecyle. Utilities then follow.