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 = {
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.
You can’t perform that action at this time.
0 commit comments