diff --git a/src/plot_api/plot_api.js b/src/plot_api/plot_api.js index 7046e3adcc7..15d51de7604 100644 --- a/src/plot_api/plot_api.js +++ b/src/plot_api/plot_api.js @@ -823,8 +823,7 @@ Plotly.redraw = function(gd) { gd = getGraphDiv(gd); if(!Lib.isPlotDiv(gd)) { - Lib.warn('This element is not a Plotly plot.', gd); - return; + throw new Error('This element is not a Plotly plot: ' + gd); } gd.calcdata = undefined;