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(
data = [trace1]
layout = go.Layout(
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.
I was trying to sort this as well, the best I have is a workaround which sets the height of the plot based on the number of categories
fig_delivery = ff.create_gantt(
height=(number_categories / 40) * 1000,
The default height is 600, I just played around with numbers to get the 40 and 1000 figures that suited me.
Did you ever find a solution? Argument, method ? @aareay
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.