Skip to content

Commit 04466db

Browse files
committed
getDataToPixel: If shift is undefined, set it to 0
1 parent 1bfb22d commit 04466db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/shapes/helpers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ exports.extractPathCoords = function(path, paramsToUse, isRaw) {
5656
exports.getDataToPixel = function(gd, axis, shift, isVertical, refType) {
5757
var gs = gd._fullLayout._size;
5858
var dataToPixel;
59+
shift = shift || 0;
5960

6061
if(axis) {
6162
if(refType === 'domain') {

0 commit comments

Comments
 (0)