I am making a bar chart in R using Plotly.
plot_ly(y = times_by_country$Country, x= times_by_country$avg_finish_time_sec, type = "bar", orientation="h") %>%
layout(
title="Average Finish Time by Country",
yaxis= list(title="Country", categoryorder= "total descending"),
xaxis= list(title="Mean Finish Time")
)
It produces the following chart, but since there are so many bars, we're unable to see the labels of each.
How could we set the bar width / height such that we can see each bar's label?
I tried the bar gap parameter, but that controls the gap between bars, not their size.