# Vertical line on barplot

**URL:** <https://community.plotly.com/t/vertical-line-on-barplot/25319>\
**Category:** 📊 Plotly Python\
**Created:** [July 2, 2019, 2:01pm UTC](https://community.plotly.com/t/vertical-line-on-barplot/25319 "2019-07-02T14:01:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivoan](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@ivoan](https://community.plotly.com/u/ivoan)\
**Post date:** [July 2, 2019, 2:01pm UTC](https://community.plotly.com/t/vertical-line-on-barplot/25319/1 "2019-07-02T14:01:36Z")

</div>

I have a barplot and I want to plot a vertical line at x =3:

go.Bar(x=[1, 2, 3, 4],  
y=[‘aa’, ‘bb’, ‘cc’, ‘dd’],  
orientation=‘h’  
)

What value should have y0 and y1 from from property ‘shapes’ since y does not have numeric values:

layout={  
‘shapes’: [  
{  
‘type’: ‘line’,  
‘xref’: ‘x’,  
‘yref’: ‘y’,  
‘x0’: 3,  
‘y0’: ?,  
‘x1’: 3,  
‘y1’: ?}  
}  
}

---

<div class="post-metadata">

**Author:** ![russellthehippo](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/russellthehippo/32/25312_2.png) [@russellthehippo](https://community.plotly.com/u/russellthehippo)\
**Post date:** [July 2, 2019, 6:51pm UTC](https://community.plotly.com/t/vertical-line-on-barplot/25319/2 "2019-07-02T18:51:13Z")

</div>

Moved to API - Python section for better relevance and answers. 🙂
