# Dynamically modify the Range

**URL:** <https://community.plotly.com/t/dynamically-modify-the-range/3642>\
**Category:** plotly.js\
**Created:** [March 15, 2017, 6:30am UTC](https://community.plotly.com/t/dynamically-modify-the-range/3642 "2017-03-15T06:30:29Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![etienne](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/etienne/32/17_2.png) [@etienne](https://community.plotly.com/u/etienne)\
**Post date:** [March 16, 2017, 1:19pm UTC](https://community.plotly.com/t/dynamically-modify-the-range/3642/4 "2017-03-16T13:19:22Z")

</div>

Ah I see. The only way I can think of is to call `Plotly.relayout(divname, 'yaxis.range', [/* new range /*])` after you `extendTraces` call.

---

_[View the full topic](https://community.plotly.com/t/dynamically-modify-the-range/3642)._
