Hi everyone !
I was wondering if it was possible to fix the color in a pie chart (using plotly) without knowing the number of labels in it before… Let me explain :
I have a lot of reports on different parts, and each report contains a lot of data. I have done a pie chart of the decision for each report, but for more precisions, my streamlit app allows you to choose the supplier for a given part, and an other pie of the decision of the concern reports appears. My problem here is that for a given supplier, there can be sometimes only accepted reports, sometimes rejected, and sometimes both…
Plotly fix a default color for each decision, but I want to fix the color myself in order to keep consistency with my previous pie.
Hope everything is clear
Thanks in advance for any help.