Hi!
I have some scatter chart which uses the range/autorange feature only for one end of the y-axis. The upper end range is set to 100, while to lower end should be dynamically/auto-ranged.
Here is the relevant code for the axis:
var layout = {
// ...
yaxis: {
range: [null,100],
autorange: 'min'
},
// ...
This is working fine, if only a single line is shown in a chart. As soon as I add a second line with its own y-axis, the first line seems to have autorange enabled for both ends of the axis, i.e. the range: [null,100]
configuration is ignored.
I’ve created a simple demo on CodePen to show the behavior. Initially only a single line is shown and the y-axis ranges up to 100. As soon as you enable the second line and axis by uncommenting line 8, the range for the first y-axis changes unexpectedly.
Is this a bug or do I miss something that needs to be set to keep the desired behavior?
Thx,
martin
BTW, I’m using Plotly.JS version 2.35.2.