DEV Community


Discussion on: Chart.js Data Points and Labels

emjayess profile image
Matthew J. Sorenson

"there is a one to one relationship on a data point and a corresponding label on the x-axis"

I have been exploring this, and so far have discovered only very hackish ways around it. It seems like "365 points, 12 labels for months" would be a more common use case :/

jwp profile image
John Peters Author

Matthew, would it work if you push ( 365 - 12 ) blank labels and then strategically pushing month values where needed?