Plotly: histogram with no fill color

I'm using Plotly's graphic_objects.Histogram. I am trying to draw several histograms on the same plot. I'm not satisfied with the results of the 'overlay' option. I would like to draw histograms with no fill colour like in this example, with only the borders of the boxes drawn.

I was trying to fiddle with marker.pattern options but this doesn't seem to work. What would be the way to accomplish this, if this is possible?

Topic histogram plotly visualization

Category Data Science


Expanding on @Oxbowerce's suggestion, this gives an OK look (however, ideally I'd like to only use the 'roof' of each bin and not the vertical lines, I suspect that's not possible though)

fig = px.histogram(...)
for i in range(len(fig.data)):
    fig.data[i].marker.line.width = 3
    fig.data[i].marker.line.color = fig.data[i].marker.color
    fig.data[i].marker.color = "rgba(255, 255, 255, 0)"

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.