Category scale filter function will hide the grid line if null or undefined returned.

This commit is contained in:
Evert Timberg
2015-08-23 13:20:43 -04:00
parent 28b3a90723
commit 04d1f0f710
3 changed files with 6 additions and 2 deletions

View File

@@ -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