You can pass the marker argument to go.Bar
There is a good example of this in Shaun’s blog post
In this case he passes marker=dict(color='#0343df') to set the colour.
self.plot_1.data = [
go.Bar(
x = [1, 2, 3],
y = [3, 1, 6],
name = 'Bar Chart Example',
marker=dict(color='#123456'),
width=0.5
)
]
self.init_components(**properties) '''
Please forgive another basic question though, why does your code have the square brackets before the go.Bar. Sometimes the go.Bar doesn't seem to need the [] to work.
The square brackets are there because originally there was also a scatter plot afterwards but I got rid of it. You can ignore them. I have basically accidentally formed a list of length 1. I have now amended it for you.