Skip to content

Commit e6f5e13

Browse files
committed
Rename namepattern --> nameformat
1 parent d886c9e commit e6f5e13

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/transforms/groupby.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ exports.attributes = {
3535
'with `x` [1, 3] and one trace with `x` [2, 4].'
3636
].join(' ')
3737
},
38-
namepattern: {
38+
nameformat: {
3939
valType: 'string',
4040
dflt: '%g (%t)',
4141
description: [
@@ -50,7 +50,7 @@ exports.attributes = {
5050
description: [
5151
'An array of trace names based on group name. Each entry must be an',
5252
'object `{name: "group", value: "trace name"}` which is then applied',
53-
'to the particular group, overriding the name derived from `namepattern`.'
53+
'to the particular group, overriding the name derived from `nameformat`.'
5454
].join(' ')
5555
},
5656
styles: {
@@ -102,7 +102,7 @@ exports.supplyDefaults = function(transformIn) {
102102

103103
coerce('groups');
104104
coerce('groupnames');
105-
coerce('namepattern');
105+
coerce('nameformat');
106106

107107
var styleIn = transformIn.styles;
108108
var styleOut = transformOut.styles = [];
@@ -202,7 +202,7 @@ function transformOne(trace, state) {
202202
if(suppliedName) {
203203
newTrace.name = suppliedName;
204204
} else {
205-
newTrace.name = computeName(opts.namepattern, trace.name, groupName);
205+
newTrace.name = computeName(opts.nameformat, trace.name, groupName);
206206
}
207207

208208
// In order for groups to apply correctly to other transform data (e.g.

0 commit comments

Comments
 (0)