Skip to content

Commit 66915b4

Browse files
committed
fix scattercarpet backoff in the first plot
1 parent 48a809a commit 66915b4

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/components/drawing/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1546,7 +1546,6 @@ function getMarkerStandoff(d, trace) {
15461546
return -standoff;
15471547
}
15481548

1549-
15501549
return standoff;
15511550
}
15521551

src/traces/scattercarpet/plot.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,17 @@ module.exports = function plot(gd, plotinfoproxy, data, layer) {
1919
plot: plotinfoproxy.plot,
2020
};
2121

22-
scatterPlot(gd, plotinfo, data, layer);
23-
2422
for(i = 0; i < data.length; i++) {
2523
trace = data[i][0].trace;
2624

2725
trace._xA = xaxis;
2826
trace._yA = yaxis;
27+
}
28+
29+
scatterPlot(gd, plotinfo, data, layer);
30+
31+
for(i = 0; i < data.length; i++) {
32+
trace = data[i][0].trace;
2933

3034
// Note: .select is adequate but seems to mutate the node data,
3135
// which is at least a bit surprising and causes problems elsewhere
-21 Bytes
Loading

0 commit comments

Comments
 (0)