mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
Fix undefined variable (#6698)
This commit is contained in:
parent
a985fecc98
commit
c44229fb96
@ -356,7 +356,7 @@ var Scale = Element.extend({
|
|||||||
*/
|
*/
|
||||||
_getLabels: function() {
|
_getLabels: function() {
|
||||||
var data = this.chart.data;
|
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.
|
// These methods are ordered by lifecyle. Utilities then follow.
|
||||||
|
Loading…
Reference in New Issue
Block a user