# Horizontal line with annotation

**URL:** <https://community.plotly.com/t/horizontal-line-with-annotation/48862>\
**Category:** Dash Python\
**Created:** [January 10, 2021, 10:37pm UTC](https://community.plotly.com/t/horizontal-line-with-annotation/48862 "2021-01-10T22:37:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elesar01](https://avatars.discourse-cdn.com/v4/letter/e/e56c9b/32.png) [@Elesar01](https://community.plotly.com/u/Elesar01)\
**Post date:** [January 10, 2021, 10:37pm UTC](https://community.plotly.com/t/horizontal-line-with-annotation/48862/1 "2021-01-10T22:37:34Z")

</div>

Hello, I would like to create something similar with Dash Plotly.

 ![Screenshot 2021-01-10 at 23.30.48](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/3/391b66838d73cde5d8d45e084f33a6f10557b349.png)

I would like to draw a horizontal line across candlestick chart, based on the values from a dataframe and display that value as “annotation” attached to a line.

I’ve managed to draw horizontal shapes based on values from a dataframe but that Limit and price label/annotation on the left is essential and I have no idea how to achieve it.

Is that possible in Dash/Plotly and could you please point me in the rigth direction please?  
Thank you

---

<div class="post-metadata">

**Author:** ![matsujju](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/matsujju/32/13952_2.png) [@matsujju](https://community.plotly.com/u/matsujju)\
**Post date:** [January 11, 2021, 2:14pm UTC](https://community.plotly.com/t/horizontal-line-with-annotation/48862/2 "2021-01-11T14:14:17Z")

</div>

Do you want to show these annotations permanently or on hovering?

---

<div class="post-metadata">

**Author:** ![Elesar01](https://avatars.discourse-cdn.com/v4/letter/e/e56c9b/32.png) [@Elesar01](https://community.plotly.com/u/Elesar01)\
**Post date:** [January 11, 2021, 9:12pm UTC](https://community.plotly.com/t/horizontal-line-with-annotation/48862/3 "2021-01-11T21:12:18Z")

</div>

Permanently. Or at least on one of the y axis.

---

<div class="post-metadata">

**Author:** ![Elesar01](https://avatars.discourse-cdn.com/v4/letter/e/e56c9b/32.png) [@Elesar01](https://community.plotly.com/u/Elesar01)\
**Post date:** [January 15, 2021, 8:20am UTC](https://community.plotly.com/t/horizontal-line-with-annotation/48862/4 "2021-01-15T08:20:49Z")

</div>

But even on hovering will do if you have any idea please. Thank you

---

<div class="post-metadata">

**Author:** ![matsujju](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/matsujju/32/13952_2.png) [@matsujju](https://community.plotly.com/u/matsujju)\
**Post date:** [January 15, 2021, 10:08am UTC](https://community.plotly.com/t/horizontal-line-with-annotation/48862/5 "2021-01-15T10:08:57Z")

</div>

What type of chart you will use?

---

<div class="post-metadata">

**Author:** ![Elesar01](https://avatars.discourse-cdn.com/v4/letter/e/e56c9b/32.png) [@Elesar01](https://community.plotly.com/u/Elesar01)\
**Post date:** [January 15, 2021, 12:11pm UTC](https://community.plotly.com/t/horizontal-line-with-annotation/48862/6 "2021-01-15T12:11:26Z")

</div>

It’s scattergl on top of candlestick chart.Thank you so much

---

<div class="post-metadata">

**Author:** ![matsujju](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/matsujju/32/13952_2.png) [@matsujju](https://community.plotly.com/u/matsujju)\
**Post date:** [January 15, 2021, 12:16pm UTC](https://community.plotly.com/t/horizontal-line-with-annotation/48862/7 "2021-01-15T12:16:07Z")

</div>

I don’t know candlestick chart exist in Plotly.
