How to set the colour of a donut chart

How can I change the colour to a certain colour for a donut chart.
eg. I want Male to show in Blue and Female to show in pink.

does anyone have any ideas??

@Teodor It’s this question

I haven’t tested, but in codeview add dmx-bind:colors="['#ffc0cb', '#c0ebff']" to the chart element.

1 Like

@patrick absolutely perfect buddy, thanks for that one.
Keep up the good work with Wappler, its evolving into a powerful beast, credit to you guys :grinning:

2 Likes