Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions draftlogs/7018_fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix disappearing traces when using `scattergl` and `xaxis.type: 'date'` [[#7018](https://github.com/plotly/plotly.js/pull/7018)]
7 changes: 2 additions & 5 deletions src/plots/cartesian/dragbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -886,14 +886,11 @@ function makeDragBox(gd, plotinfo, x, y, w, h, ns, ew) {
ya = sp.yaxis;

if(sp._scene) {
var xrng = Lib.simpleMap(xa.range, xa.r2l);
var yrng = Lib.simpleMap(ya.range, ya.r2l);

if(xa.limitRange) xa.limitRange();
if(ya.limitRange) ya.limitRange();

xrng = xa.range;
yrng = ya.range;
var xrng = Lib.simpleMap(xa.range, xa.r2l);
var yrng = Lib.simpleMap(ya.range, ya.r2l);

sp._scene.update({range: [xrng[0], yrng[0], xrng[1], yrng[1]]});
}
Expand Down