From 46aff21a3d5b8391c1f0204b6fe2a33c20de8cd0 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Fri, 8 Nov 2019 16:59:44 -0800 Subject: [PATCH] Fix undefined variable (#6699) --- 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 82bd4a2a5..c1e589d21 100644 --- a/src/core/core.scale.js +++ b/src/core/core.scale.js @@ -400,7 +400,7 @@ class Scale extends Element { */ _getLabels() { 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. -- 2.47.2