DEV Community

Cover image for Chart.js Data Points and Labels

Chart.js Data Points and Labels

JWP on December 02, 2019

Have you ever tried to plot live data in Chart.js only to find, that only two points at a time are plotted? Labels The official documentation doe...
Collapse
 
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 :/

Collapse
 
jwp profile image
JWP • Edited

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