10000 make 'traces' Plotly.restyle arg map to gd.data (not gd._fullData) · xiaoaiwhc/plotly.js@15c4c48 · GitHub
[go: up one dir, main page]

Skip to content

Commit 15c4c48

Browse files
committed
make 'traces' Plotly.restyle arg map to gd.data (not gd._fullData)
1 parent 23dc6e7 commit 15c4c48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plot_api/plot_api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1564,9 +1564,9 @@ Plotly.restyle = function restyle(gd, astr, val, traces) {
15641564

15651565
if(Object.keys(aobj).length) gd.changed = true;
15661566

1567-
if(isNumeric(traces)) traces=[traces];
1567+
if(isNumeric(traces)) traces = [traces];
15681568
else if(!Array.isArray(traces) || !traces.length) {
1569-
traces=gd._fullData.map(function(v,i) { return i; });
1569+
traces = gd.data.map(function(v, i) { return i; });
15701570
}
15711571

15721572
// recalcAttrs attributes need a full regeneration of calcdata

0 commit comments

Comments
 (0)
0