Update chart (doughnut) display options by pressing a button | XM Community
Skip to main content

Hello,
My participants get to see a doughnut with nine slices, generated using the chart.js library in JavaScript. I would like them to be able to press a custom button which, based on a randomly generated integer between 1-9, would put a black border around the slice corresponding to that random number.
Thanks in advance!

Be the first to reply!

Leave a Reply