mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Fix undefined variable (#6699)
This commit is contained in:
parent
fcf76c5edd
commit
46aff21a3d
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user