Thanks Chris,
Your explanation makes sense.
The reason I resorted to using ‘style’ as an explicit inline dictionary in the graph’s div, was because my attempts set the graph’s properties using a stand-alone, offline CSS stylesheet kept failing.
I was using the the method off styling graphs using an offline CSS, as you recommended here:
I found that when I used the offline CSS, my plot’s height style wasn’t being inherited. I was using the syntax:
html.Div([
dcc.Dropdown(),
html.Div(dcc.Graph(),className=“class in style sheet”)
])
Your explanation seems to encompass that use case. I’ll go back and see if this was a manifestation of the same bug. Every time used the browser’s inspection tool I could see that my plot height was never inherited.
The big unknown to me at the time, was if the behavior was due:
- The fact that I’m new to plotly, and was perhaps just using it incorrectly, or
- a bug
Thanks again