Vertical range changes after double click

Two things are happening that I cannot explain. First, when chart is rendered double clicking on it has an effect. Why would it do it if I haven’t zoomed in it yet? Second, when it starts it looks like this:

Which is wrong. I do have zeros for y values. Why it’s not showing it? But after double clicking it looks like this:

Which right now in regards of zero values.

Any ideas?


Does the range change back to its original value when you double-click a second time?

If that’s the case, you may want to change the doubleClick config option to ''reset

No, it doesn’t. What was happening is that I am adding a subplot before addTraces. I wasn’t doing relayout wrongly assuming addTraces will do it.