Black Lives Matter. Please consider donating to Black Girls Code today.

Pie chart label colors

Is there a way to set colors to the text inside each sector?
I am able to customize the sector colors using data marker colors. So I want to set contrasting colors for the text.

Using plotly in React.

This https://plot.ly/javascript/reference/#pie-textfont-color should do the trick.

Thanks.
Can I set a different font color per sector using this?