I want to fix the x-axis range so that when you clear a trace in the legend, the x-axis range doesn’t change—even if one trace has a different range.
range: ["2016-05-01", "2016-05-05"]
Seems this should be all it takes, but the x-axis range still changes.
If I set
autorange: false in the
layout object, the plot fails. The x-axis values and ticks are all messed up. Why is this?
However, if I set the autorange property after the layout object definition with
layout_autorange_after = false;
Then all goes well.