Change 'points' on a line chart to donuts using Chart.js

šŸ‘:0

Ah, I seem to have overlooked the option in the documentation. For future readers:
pointDotStrokeWidth: 1 will set the points. There is also datasetStrokeWidth: 2. Also, strokeColor: '#fff' actually uses Canvasā€™ strokeStyle method, so you can use gradients and such to style those, if needed.

Leave a comment