# How to generate plotly inside a javascript loop with unique identification for each plot?

**URL:** <https://community.plotly.com/t/how-to-generate-plotly-inside-a-javascript-loop-with-unique-identification-for-each-plot/25628>\
**Category:** plotly.js\
**Created:** [July 9, 2019, 2:32am UTC](https://community.plotly.com/t/how-to-generate-plotly-inside-a-javascript-loop-with-unique-identification-for-each-plot/25628 "2019-07-09T02:32:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajiv](https://avatars.discourse-cdn.com/v4/letter/r/b3f665/32.png) [@rajiv](https://community.plotly.com/u/rajiv)\
**Post date:** [July 9, 2019, 2:32am UTC](https://community.plotly.com/t/how-to-generate-plotly-inside-a-javascript-loop-with-unique-identification-for-each-plot/25628/1 "2019-07-09T02:32:05Z")

</div>

Is it possible to generate and render multiple plots in a single page using plotly from a javascript loop so that the range of one plot would not impact range of another plot when relayout or update dots in the plots? I am having range issue and all my plots generated from javascript loop have same range as of my last plot when clicking on any among the plots. If I click on autoscale of a plot it works for that particular plot and all other plots would autorange to the scale of that particular plot. I think I am missing something that could uniquely identify each plots and do not interfere with each other.
