Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cace57e

Browse files
committed
Clean data when addTraces is called
1 parent ebdb86e commit cace57e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/plot_api/plot_api.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,6 +1427,7 @@ Plotly.addTraces = function addTraces (gd, traces, newIndices) {
14271427
if (!Array.isArray(traces)) {
14281428
traces = [traces];
14291429
}
1430+
cleanData(traces, gd.data);
14301431

14311432
// add the traces to gd.data (no redrawing yet!)
14321433
for (i = 0; i < traces.length; i += 1) {

0 commit comments

Comments
 (0)