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

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.