diff --git a/src/plot_api/to_image.js b/src/plot_api/to_image.js index 11491416f01..45cf5e3ac5a 100644 --- a/src/plot_api/to_image.js +++ b/src/plot_api/to_image.js @@ -29,6 +29,7 @@ var attrs = { width: { valType: 'number', min: 1, + dflt: null, description: [ 'Sets the exported image width.', 'Defaults to the value found in `layout.width`', @@ -38,6 +39,7 @@ var attrs = { height: { valType: 'number', min: 1, + dflt: null, description: [ 'Sets the exported image height.', 'Defaults to the value found in `layout.height`',