We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd8b3d3 commit 6d0e221Copy full SHA for 6d0e221
src/index.js
@@ -18,6 +18,7 @@ exports.prependTraces = Plotly.prependTraces;
18
exports.addTraces = Plotly.addTraces;
19
exports.deleteTraces = Plotly.deleteTraces;
20
exports.moveTraces = Plotly.moveTraces;
21
+exports.setPlotConfig = require('./plot_api/set_plot_config');
22
23
// unofficial 'beta' plot methods, use at your own risk
24
exports.Plots = Plotly.Plots;
src/plot_api/set_plot_config.js
@@ -0,0 +1,14 @@
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
+};
0 commit comments