1 thought on “Conditionally display gridlines? [QUESTION]

  1. You can remove individual lines. I also made a mistake in my previous comment. You return undefined not NaN.

    options: : {
      scales: {
        yAxes: [{
          ticks: {
            callback: function(tick, index, ticksArray) {
              // return the string representation of the tick value. Return undefined to hide the grid line
            }
          }
        }]
      }
    }

Comments are closed.