File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ exports.prependTraces = Plotly.prependTraces;
1818exports . addTraces = Plotly . addTraces ;
1919exports . deleteTraces = Plotly . deleteTraces ;
2020exports . moveTraces = Plotly . moveTraces ;
21+ exports . setPlotConfig = require ( './plot_api/set_plot_config' ) ;
2122
2223// unofficial 'beta' plot methods, use at your own risk
2324exports . Plots = Plotly . Plots ;
Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+
3+ var Plotly = require ( '../plotly' ) ;
4+
5+ /**
6+ * Extends the plot config
7+ *
8+ * @param {object } configObj partial plot configuration object
9+ * to extend the current plot configuration.
10+ *
11+ */
12+ module . exports = function setPlotConfig ( configObj ) {
13+ return Plotly . Lib . extendFlat ( Plotly . defaultConfig , configObj ) ;
14+ } ;
You can’t perform that action at this time.
0 commit comments