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;
18
18
exports . addTraces = Plotly . addTraces ;
19
19
exports . deleteTraces = Plotly . deleteTraces ;
20
20
exports . moveTraces = Plotly . moveTraces ;
21
+ exports . setPlotConfig = require ( './plot_api/set_plot_config' ) ;
21
22
22
23
// unofficial 'beta' plot methods, use at your own risk
23
24
exports . 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