mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-07 04:39:06 +02:00
Bail out, same as the x axis
This commit is contained in:
parent
fff13f2692
commit
14b6fdd51e
@ -467,6 +467,11 @@
|
|||||||
var xTickEnd = this.options.position == "right" ? this.left + 5 : this.right;
|
var xTickEnd = this.options.position == "right" ? this.left + 5 : this.right;
|
||||||
|
|
||||||
helpers.each(this.ticks, function(label, index) {
|
helpers.each(this.ticks, function(label, index) {
|
||||||
|
// If the callback returned a null or undefined value, do not draw this line
|
||||||
|
if (label === undefined || label === null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var yLineValue = this.getPixelForTick(index); // xvalues for grid lines
|
var yLineValue = this.getPixelForTick(index); // xvalues for grid lines
|
||||||
|
|
||||||
if (this.options.gridLines.show) {
|
if (this.options.gridLines.show) {
|
||||||
|
Loading…
Reference in New Issue
Block a user