Skip to content

Commit 88b5673

Browse files
committed
Select less deliberately confusing name for variable
1 parent 364f8f7 commit 88b5673

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/transforms/groupby.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)