Hey All ,
Excuse the frustration. I am trying to find what I need to set in update_layout of plotly graph objects to show the background grid.
I want it in light great dashed lines.
I have spent about an hour trying to find what Iโm looking for but to no avail.
i have the following code
fig = go.Figure(
data = [
go.Candlestick(
x = df.index,
low = df['Low'],
high = df['High'],
close = df['Close'],
open = df['Open'],
increasing_line_color = 'green',
decreasing_line_color = 'red'
)
]
)
fig.update_layout(xaxis_rangeslider_visible = False, height = 800)
fig.update_layout(
title = 'Microsoft Share Price 1st Jan 2023 - 1st Jan 2024',
xaxis_title = 'Date',
yaxis_title = 'Stock Price - USD ($)',
plot_bgcolor="rgba(0, 0, 0, 0)",
)
fig.show()
Wwhich created a Shareprice chart quite happily. I have the background colour set to white but I would like to put some x and y grid lines.
I feel that we should be able to finds this stuff easily, either that or Iโm really tired.
I also looked for an โAnatomy of a chartโ incise I was using the wrong terminology but I cant find one of them either.
@adamschroeder maybe an idea for a future article.
anyone point me at the right place or just suggest what is should stick in my code?
thanks
Tom โ Iโm off to bedโ