
Looking to understand what is ideal metric to modify to position it in the center of each bar?

Looking to understand what is ideal metric to modify to position it in the center of each bar?
HI @shubhams_09 how did you create this plot?
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?