From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Sun, 10 Nov 2019 02:54:51 +0000 (-0800) Subject: Fix undefined variable (#6698) X-Git-Tag: v2.9.3~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c44229fb9669ed927615cae5def45734bef52aa8;p=thirdparty%2FChart.js.git Fix undefined variable (#6698) --- diff --git a/src/core/core.scale.js b/src/core/core.scale.js index 914bdefaa..0c1413d4a 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.