File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ exports.attributes = {
35
35
'with `x` [1, 3] and one trace with `x` [2, 4].'
36
36
] . join ( ' ' )
37
37
} ,
38
- namepattern : {
38
+ nameformat : {
39
39
valType : 'string' ,
40
40
dflt : '%g (%t)' ,
41
41
description : [
@@ -50,7 +50,7 @@ exports.attributes = {
50
50
description : [
51
51
'An array of trace names based on group name. Each entry must be an' ,
52
52
'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 `.'
54
54
] . join ( ' ' )
55
55
} ,
56
56
styles : {
@@ -102,7 +102,7 @@ exports.supplyDefaults = function(transformIn) {
102
102
103
103
coerce ( 'groups' ) ;
104
104
coerce ( 'groupnames' ) ;
105
- coerce ( 'namepattern ' ) ;
105
+ coerce ( 'nameformat ' ) ;
106
106
107
107
var styleIn = transformIn . styles ;
108
108
var styleOut = transformOut . styles = [ ] ;
@@ -202,7 +202,7 @@ function transformOne(trace, state) {
202
202
if ( suppliedName ) {
203
203
newTrace . name = suppliedName ;
204
204
} else {
205
- newTrace . name = computeName ( opts . namepattern , trace . name , groupName ) ;
205
+ newTrace . name = computeName ( opts . nameformat , trace . name , groupName ) ;
206
206
}
207
207
208
208
// In order for groups to apply correctly to other transform data (e.g.
You can’t perform that action at this time.
0 commit comments