mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-11 02:36:52 +01:00
Category scale filter function will hide the grid line if null or undefined returned.
This commit is contained in:
@@ -230,7 +230,8 @@
|
||||
}
|
||||
|
||||
helpers.each(this.labels, function(label, index) {
|
||||
if (skipRatio > 1 && index % skipRatio > 0) {
|
||||
// Blank labels
|
||||
if ((skipRatio > 1 && index % skipRatio > 0) || (label === undefined || label === null)) {
|
||||
return;
|
||||
}
|
||||
var xLineValue = this.getPixelForValue(label, index, null, false); // xvalues for grid lines
|
||||
|
||||
Reference in New Issue
Block a user