# How to change the posithion of legend

**URL:** https://community.plotly.com/t/how-to-change-the-posithion-of-legend/12073
**Category:** 📊 Plotly Python
**Created:** [July 25, 2018, 2:32am UTC](https://community.plotly.com/t/how-to-change-the-posithion-of-legend/12073 "2018-07-25T02:32:21Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![tasselmi](https://avatars.discourse-cdn.com/v4/letter/t/9d8465/32.png) [@tasselmi](https://community.plotly.com/u/tasselmi)
#### Post date: [July 25, 2018, 2:32am UTC](https://community.plotly.com/t/how-to-change-the-posithion-of-legend/12073/1 "2018-07-25T02:32:21Z")

</div>

as said in title: how to change the posithion of legend?  
position of legend of plotly graph is at right-top corner.  
I read the docs of plotly , but I did not find the information related.  
Could some one help me? thanks.

---

<div class="post-metadata">

### Author: ![bcd](https://avatars.discourse-cdn.com/v4/letter/b/ec9cab/32.png) [@bcd](https://community.plotly.com/u/bcd)
#### Post date: [July 25, 2018, 10:11am UTC](https://community.plotly.com/t/how-to-change-the-posithion-of-legend/12073/2 "2018-07-25T10:11:54Z")

</div>

Hey @tasselmi

There is an example here [https://plot.ly/python/legend/#legend-position](https://plot.ly/python/legend/#legend-position) and you can view the legend attributes here [https://plot.ly/python/reference/#layout-legend](https://plot.ly/python/reference/#layout-legend)

---

<div class="post-metadata">

### Author: ![tasselmi](https://avatars.discourse-cdn.com/v4/letter/t/9d8465/32.png) [@tasselmi](https://community.plotly.com/u/tasselmi)
#### Post date: [July 25, 2018, 2:31pm UTC](https://community.plotly.com/t/how-to-change-the-posithion-of-legend/12073/3 "2018-07-25T14:31:44Z")

</div>

Thank you VERY MUCH.  
If THERE any method to disable these tools ?  
I can’t find it. PLZ help me.

 ![33](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/a/a9d316632c2ea6476a76ecbe87e40d8c4c6959f7.png)

---

<div class="post-metadata">

### Author: ![michaelbabyn](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/michaelbabyn/32/3569_2.png) [@michaelbabyn](https://community.plotly.com/u/michaelbabyn)
#### Post date: [July 25, 2018, 3:05pm UTC](https://community.plotly.com/t/how-to-change-the-posithion-of-legend/12073/4 "2018-07-25T15:05:03Z")

</div>

There is more information on how to disable the modebar here [Disable modebar/hover tool?](https://community.plotly.com/t/disable-modebar-hover-tool/1347)

---

<div class="post-metadata">

### Author: ![tasselmi](https://avatars.discourse-cdn.com/v4/letter/t/9d8465/32.png) [@tasselmi](https://community.plotly.com/u/tasselmi)
#### Post date: [July 25, 2018, 3:26pm UTC](https://community.plotly.com/t/how-to-change-the-posithion-of-legend/12073/5 "2018-07-25T15:26:41Z")

</div>

THANKS.

I also want to know : the plotly transfers all of my date string like ‘2018-08-01’ to datetime ,but i want to display string not datetime, how to avoid it?

and , when i hover on data ,it display 500000 as 0.5M , but I want to display directly the number…  
Could you help me?

---

<div class="post-metadata">

### Author: ![tasselmi](https://avatars.discourse-cdn.com/v4/letter/t/9d8465/32.png) [@tasselmi](https://community.plotly.com/u/tasselmi)
#### Post date: [July 25, 2018, 3:26pm UTC](https://community.plotly.com/t/how-to-change-the-posithion-of-legend/12073/6 "2018-07-25T15:26:56Z")

</div>

THANKS.

I also want to know : the plotly transfers all of my date string like ‘2018-08-01’ to datetime ,but i want to display string not datetime, how to avoid it?

and , when i hover on data ,it display 500000 as 0.5M , but I want to display directly the number…  
Could you help me?

---

<div class="post-metadata">

### Author: ![tasselmi](https://avatars.discourse-cdn.com/v4/letter/t/9d8465/32.png) [@tasselmi](https://community.plotly.com/u/tasselmi)
#### Post date: [July 25, 2018, 3:27pm UTC](https://community.plotly.com/t/how-to-change-the-posithion-of-legend/12073/7 "2018-07-25T15:27:13Z")

</div>

THANKS.

I also want to know : the plotly transfers all of my date string like ‘2018-08-01’ to datetime ,but i want to display string not datetime, how to avoid it?

and , when i hover on data ,it display 500000 as 0.5M , but I want to display directly the number…  
Could you help me? sos
