File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -154,11 +154,11 @@ function transformOne(trace, state) {
154154 }
155155
156156 // An index to map group name --> expanded trace index
157- var groupIndex = { } ;
157+ var indexLookup = { } ;
158158
159159 for ( i = 0 ; i < groupNames . length ; i ++ ) {
160160 groupName = groupNames [ i ] ;
161- groupIndex [ groupName ] = i ;
161+ indexLookup [ groupName ] = i ;
162162
163163 // Start with a deep extend that just copies array references.
164164 newTrace = newData [ i ] = Lib . extendDeepNoArrays ( { } , trace ) ;
@@ -199,7 +199,7 @@ function transformOne(trace, state) {
199199 // Send each data point to the appropriate expanded trace:
200200 for ( j = 0 ; j < len ; j ++ ) {
201201 // Map group data --> trace index --> array and push data onto it
202- arrayLookup [ groupIndex [ groups [ j ] ] ] . push ( srcArray [ j ] ) ;
202+ arrayLookup [ indexLookup [ groups [ j ] ] ] . push ( srcArray [ j ] ) ;
203203 }
204204 }
205205
You can’t perform that action at this time.
0 commit comments