Plotly JS - horizontal bar graph not working

Hello, I'm trying to add a horizontal bar graph to my app, I copied the JSON directly from plotly JS docs. While the regular bar chart works fine, the horiztonal type shows an empty chart:

Thanks for your help

I managed to find the solution here:

took out 'type' : 'linear'