I’m constructing a series of sunburst graphs using
plotly.go.Sunburst and would like to change to a different discrete color scheme. The documentation makes this seem easy when using plotly express (default plotly palette is
px.colors.qualitative.Plotly), but there is no information on how to change to a different custom color palette/swatch using
go.Sunburst since it lacks a
Does anyone know how I can change the default color palette? The inputs and categories vary based on end-user choices in the dashboard i’m building, so hard-coding color handling would be a huge pain in the ass. If I can just feed in an array of hex or rgb values to replace the default Plotly palette that would be ideal.