Dtick and autotick usage


#1

Hi,

When I am using "autotick: false ,dtick: ‘1’, , in the starting of plot it get scaled , but in rest of plot it get scaled only on zoom.
can you please explain the reason for that?


#2

Looks like a bug. Can you share a reproducible example?


#3

I am not able to reproduce that example in codepen.

I am using like below Do you see any issue?
var layout = {title: ‘Timeline of WLAN Protocol events’, width: 1540 , height: 540 , xaxis: {showgrid: true,showline: true,linecolor: ‘rgb(102, 102, 102)’,titlefont: {font: {color: ‘rgb(204, 204, 204)’}},autotick: false ,dtick: ‘1’,title:‘Time of the event’,},yaxis: {showgrid : true,showline : true,fixedrange: true,linecolor: ‘rgb(102, 102, 102)’,titlefont: {font: {color: ‘rgb(204, 204, 204)’}},tickfont: {font: {color: ‘rgb(102, 102, 102)’}},title: ‘WLAN Protocol Event Type’, },margin: {l: 140,r: 40,b: 100,t: 50},hovermode: ‘closest’};Plotly.newPlot(myPlot, data, layout,{dragmode:‘pan’});myPlot.on(‘plotly_click’, function(data){var i = data.points.length - 1; var x = data.points[i].x; var y = data.points[i].y };