Skip to content

Commit c14ab5f

Browse files
committed
Update approximate marker padding calculation
1 parent 89bf4db commit c14ab5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/scattergl/calc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ module.exports = function calc(gd, trace) {
8585
if(!hasTooManyPoints) {
8686
ppad = calcMarkerSize(trace, len);
8787
} else if(opts.marker) {
88-
ppad = 2 * (opts.marker.sizeAvg || Math.max(opts.marker.size, 3));
88+
ppad = opts.marker.sizeAvg || Math.max(opts.marker.size, 3);
8989
}
9090
calcAxisExpansion(gd, trace, xa, ya, x, y, ppad);
9191
if(opts.errorX) expandForErrorBars(trace, xa, opts.errorX);

0 commit comments

Comments
 (0)