I can’t turn the bar chart and https:// plot.ly/python/table/ into horizontal – I tried to use type='barh', or orientation = 'h', but both failed. Here is a piece of the code:
That should be go.Bar not go.Scatter (the example at https://plot.ly/python/table/ has been updated to reflect this)
Then orientation = 'h' should work
Further, there is no much room to display full y-lables. All my labels are arranged such that the words from the beginning of the label are much more important than the ending. So it is also possible to show the beginning of the label instead of the end of it, if there isn’t enough room to display all.
Taking a look at your example it looks like the axis you want to reverse is actually yaxis2 so you can run
yaxis2=dict(
autorange='reversed'
)
)```
For the other issue I would suggest editing the margins. There's some information on that on our reference page here: https://plot.ly/python/reference/#layout-margin