From def6751c6666f2443ea10563972df7e5bdc410dc Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Tue, 5 Nov 2019 15:40:31 -0800 Subject: [PATCH] Fix undefined variable --- 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 82bd4a2a56c..c1e589d218a 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.