Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

plotly color specific color

fig = px.bar(df,
             color=columnName,
             color_discrete_map= {'Coal': 'black',
                                  'Oil': 'grey',
                                  'Gas': 'blue'}
            )
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #plotly #color #specific #color
ADD COMMENT
Topic
Name
2+3 =