When I try to plot a horizontal bar chart with many categories, Iโm having issues with overlapping Y axis tick labels. Below is some sample data to illustrate this:
tick_labs = ["label " + i for i in "abcdefghijklmnopqrstuvwxyz"]
values = [i for i in range(0,26)]
trace1 = go.Bar(
y=tick_labs,
x=values,
orientation='h'
)
data = [trace1]
layout = go.Layout(
yaxis={
'dtick': 1,
}
)
go.Figure(data, layout).show()
Is there a way to insert space between each tick so the labels are more legible? Iโve had no luck adjusting bar width, graph height, or using a lot of the tick-specific parameters.
Turns out it was just adjusting the height parameter, like in Divisorโs solution. For whatever reason, this wasnโt working when I posted the question, but itโs more or less solved the problem now.