Looking to understand what is ideal metric to modify to position it in the center of each bar?
I used this as follows:
fig = go.Figure(
data=go.Bar(
x=x,
y=y,
marker={"color": "#79CCCD"},
orientation="h",
text=x,
textposition="outside",
offset=0,
),
layout={
"height":((TEAM_TABLE_CELL_HEIGHT + bar_gap_approx) * len(x))+20,
"xaxis": {
"title": title,
"zeroline": False,
"showticklabels": False,
"range": [0, max(x)*1.2],
},
"yaxis": {
"tickmode": "array",
"tickvals": tickvals,
"ticktext": team_names,
}
},
)
could you add some (dummy) data?