Zolotoy
December 14, 2019, 9:22am
1
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?
Thanks
etienne
December 16, 2019, 3:21pm
2
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
doubleClick: {
valType: 'enumerated',
values: [false, 'reset', 'autosize', 'reset+autosize'],
dflt: 'reset+autosize',
description: [
'Sets the double click interaction mode.',
'Has an effect only in cartesian plots.',
'If *false*, double click is disable.',
'If *reset*, double click resets the axis ranges to their initial values.',
'If *autosize*, double click set the axis ranges to their autorange values.',
'If *reset+autosize*, the odd double clicks resets the axis ranges',
'to their initial values and even double clicks set the axis ranges',
'to their autorange values.'
].join(' ')
},
Zolotoy
December 16, 2019, 3:43pm
3
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.