I'm working on a project that's already heavily invested in the Chart.js library, so I'd rather not have to use something else if at all possible.
A new requirement has come through for chart segments to have patterns, for the company's accessibility requirements. I can ask them to explore different avenues if this is too difficult, but I said I'd see if there's a relatively easy way of getting this working first.
So, is there a relatively easy way to fill each doughnut segment with a different pattern?
Figured out I can just create a canvas pattern and pass it through to the Chart.js data object for each segment's color property, as below. It's a bit dirty, but it works and will suffice!