Change https://github.com/plotly/plotly.js/blob/master/src/components/drawing/index.js#L54 from `if(isNumeric(x) && isNumeric(y)) {` to `if(isNumeric(x) && isNumeric(y) && sel.node()) {` solved this problem. Demo: https://jsfiddle.net/indream/6L8nLgr1/