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 ada31b5 commit a71efa7Copy full SHA for a71efa7
src/plots/plots.js
@@ -216,6 +216,16 @@ plots.getSubplotIds = function getSubplotIds(layout, type) {
216
return subplotIds;
217
};
218
219
+/**
220
+ * Get the data trace(s) associated with a given subplot.
221
+ *
222
+ * @param {array} data plotly full data array.
223
+ * @param {object} layout plotly full layout object.
224
+ * @param {string} subplotId subplot ids to look for.
225
226
+ * @return {array} list of trace objects.
227
228
+ */
229
plots.getSubplotData = function getSubplotData(data, type, subplotId) {
230
if(plots.subplotsRegistry[type] === undefined) return [];
231
0 commit comments