I have just created a scatter plot which contains some data of which the x and y values are very small (or big) to eachother. The pan movement is causing the xaxis range to be set to the one of the yaxis. How can I prevent this from happening?
An example can be seen here.
I am using the following data and layout objects:
data: [{
name: name,
x: x,
y: y,
mode: 'lines',
type: 'scatter'
}],
layout: {
title: {
text: 'Plot Title',
},
xaxis (also yaxis): {
title: {
text: '',
},
showgrid: false,
zeroline: true,
showline: true,
showticklabels: true,
ticks: 'outside',
mirror: 'ticks'
},
autosize: true
}
The variables (x etc) are set by data fetched from a database.