move & refactor period dtick logic inside a function
move & refactor period dtick logic inside a function

plotly/plotly.js,plotly/plotly.js,etpinard/plotly.js,plotly/plotly.js,plotly/plotly.js,etpinard/plotly.js,etpinard/plotly.js