Closed jordanvanbergen closed 5 months ago
@jordanvanbergen have a look here https://codepen.io/stockinail/pen/KKEZvLZ if it is ok for you. I'm using latest version of chartjs.
That's nice @stockiNail ! Thanks.
I found this solution as well: https://stackoverflow.com/questions/50043412/how-to-add-a-second-set-of-labels-to-a-chart-js-doughnut-chart
You can see it work in action: https://www.donateursbelangen.nl/goede-doel/aidsfonds/r/recXjmq6pxNuuehr6
@jordanvanbergen nice!
If I may, just 1 small thing:
As use can see, hovering the arc, the arc is not well drawn because the hover offset is pushing the arc out of canvas, I guess. To avoid it, you could add layout.padding.top to the chart.options, to have empty space on the top and then draw the arc in the canvas,
@jordanvanbergen nice!
If I may, just 1 small thing:
As use can see, hovering the arc, the arc is not well drawn because the hover offset is pushing the arc out of canvas, I guess. To avoid it, you could add layout.padding.top to the chart.options, to have empty space on the top and then draw the arc in the canvas,
Thanks for the tip. Fixed.
Feature Proposal
See this jsfiddle:
https://jsfiddle.net/jordanvanbergen/Ltufh018/23/
This Doughnut diagram has multiple rings with different arrays of labels. This is the code for chartjs below version 3 and in this case 2.5.0.
How to make a doughnut diagram with multiple rings with different arrays of labels work as of version 3 and above?
Possible Implementation
No response