Skip to content

Time with tick callback return null still shows grid line #9247

@gakinson

Description

@gakinson

Screen Shot 2021-06-09 at 4 05 52 PM

Expected Behavior

Grid line is only showed on the chart if the tick callback returns a value

Current Behavior

Grid line is showing when the tick callback returns null or undefined. Also the tick label is showing "undefined"

Possible Solution

Steps to Reproduce

https://codepen.io/gakinson/pen/LYWJgJZ

Context

Environment

  • Chart.js version: ^3.3.2
  • Time adapter version: chartjs-adapter-luxon - ^1.0.0
  • Browser name and version: chrome 91.0.4472.77
  • Link to your project:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions