✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🧬 Learn how to build RNA-Seq data apps with Python & Dash. Register for the May 20 Webinar!

Creating a pie chart with interactive colors to each slice

Hello all,

I want to create a pie chart with 4 slices. Where the color of each slice is given through a dropdown button. Is there a way to create it ?

Welcome to the Dash community, @naveen2014
This Tutorial should be helpful, since it covers the creation of a Pie chart together with a Dropdown.

In theory, the values of the Dropdown would be color codes, and you would create a callback that connects the Dropdown “values” to the Pie chart “color” property.