Skip to content

Commit 6aefb41

Browse files
committed
Fix group -> target in groupby styles
1 parent daac59d commit 6aefb41

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/legend/draw.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ function drawTexts(g, gd) {
414414
var groupbyIndices = Registry.getTransformIndices(fullInput, 'groupby');
415415
var index = groupbyIndices[groupbyIndices.length - 1];
416416

417-
var carr = Lib.keyedContainer(fullInput, 'transforms[' + index + '].styles', 'group', 'value.name');
417+
var carr = Lib.keyedContainer(fullInput, 'transforms[' + index + '].styles', 'target', 'value.name');
418418

419419
if(BLANK_STRING_REGEX.test(origText)) {
420420
carr.remove(legendItem.trace._group);

src/transforms/groupby.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ function transformOne(trace, state) {
167167
}
168168

169169
if(opts.styles) {
170-
groupNameObj = Lib.keyedContainer(opts, 'styles', 'group', 'value.name');
170+
groupNameObj = Lib.keyedContainer(opts, 'styles', 'target', 'value.name');
171171
}
172172

173173
// An index to map group name --> expanded trace index

0 commit comments

Comments
 (0)