@@ -31,19 +31,19 @@ describe('aggregate', function() {
3131 groups : [ 'a' , 'b' , 'a' , 'a' , 'a' ] ,
3232 aggregations : [
3333 // missing array - the entry is ignored
34- { array : '' , func : 'avg' } ,
35- { array : 'x' , func : 'sum' } ,
34+ { target : '' , func : 'avg' } ,
35+ { target : 'x' , func : 'sum' } ,
3636 // non-numerics will not count toward numerator or denominator for avg
37- { array : 'y' , func : 'avg' } ,
38- { array : 'marker.size' , func : 'min' } ,
39- { array : 'marker.color' , func : 'max' } ,
37+ { target : 'y' , func : 'avg' } ,
38+ { target : 'marker.size' , func : 'min' } ,
39+ { target : 'marker.color' , func : 'max' } ,
4040 // marker.opacity doesn't have an entry, but it will default to first
41- // as if it were {array : 'marker.opacity', func: 'first'},
42- { array : 'marker.line.color' , func : 'last' } ,
41+ // as if it were {target : 'marker.opacity', func: 'first'},
42+ { target : 'marker.line.color' , func : 'last' } ,
4343 // not present in data, but that's OK for count
44- { array : 'marker.line.width' , func : 'count' } ,
44+ { target : 'marker.line.width' , func : 'count' } ,
4545 // duplicate entry - discarded
46- { array : 'x' , func : 'min' }
46+ { target : 'x' , func : 'min' }
4747 ]
4848 } ]
4949 } ] , {
@@ -76,16 +76,16 @@ describe('aggregate', function() {
7676 // will always compare as strings = so 1 === '1' === 1.0 !== '1.0'
7777 groups : [ 1 , 2 , '1' , 1.0 , 1 ] ,
7878 aggregations : [
79- { array : 'x' , func : 'avg' } ,
80- { array : 'y' , func : 'min' } ,
81- { array : 'text' , func : 'max' } ,
79+ { target : 'x' , func : 'avg' } ,
80+ { target : 'y' , func : 'min' } ,
81+ { target : 'text' , func : 'max' } ,
8282 // hovertext doesn't have a func, default to first
83- { array : 'hovertext' } ,
84- { array : 'customdata' , func : 'last' } ,
83+ { target : 'hovertext' } ,
84+ { target : 'customdata' , func : 'last' } ,
8585 // not present in data, but that's OK for count
86- { array : 'marker.line.width' , func : 'count' } ,
86+ { target : 'marker.line.width' , func : 'count' } ,
8787 // duplicate entry - discarded
88- { array : 'x' , func : 'min' }
88+ { target : 'x' , func : 'min' }
8989 ]
9090 } ]
9191 } ] ) ;
@@ -111,14 +111,14 @@ describe('aggregate', function() {
111111 type : 'aggregate' ,
112112 groups : [ 1 , 2 , 1 , 1 , 1 ] ,
113113 aggregations : [
114- { array : 'x' , func : 'min' } ,
115- { array : 'y' , func : 'max' } ,
116- { array : 'text' , func : 'last' } ,
114+ { target : 'x' , func : 'min' } ,
115+ { target : 'y' , func : 'max' } ,
116+ { target : 'text' , func : 'last' } ,
117117 // hovertext doesn't have an entry, but it will default to first
118118 // not present in data, but that's OK for count
119- { array : 'marker.line.width' , func : 'count' } ,
119+ { target : 'marker.line.width' , func : 'count' } ,
120120 // duplicate entry - discarded
121- { array : 'x' , func : 'max' }
121+ { target : 'x' , func : 'max' }
122122 ]
123123 } ]
124124 } ] , {
@@ -148,9 +148,9 @@ describe('aggregate', function() {
148148 type : 'aggregate' ,
149149 groups : [ 1 , 1 , 2 , 2 ] ,
150150 aggregations : [
151- { array : 'x' , func : 'sum' } ,
152- { array : 'y' , func : 'sum' } ,
153- { array : 'text' , func : 'avg' }
151+ { target : 'x' , func : 'sum' } ,
152+ { target : 'y' , func : 'sum' } ,
153+ { target : 'text' , func : 'avg' }
154154 ]
155155 } ]
156156 } ] ) ;
@@ -175,8 +175,8 @@ describe('aggregate', function() {
175175 type : 'aggregate' ,
176176 groups : 'marker.size' ,
177177 aggregations : [
178- { array : 'x' , func : 'sum' } ,
179- { array : 'y' , func : 'avg' }
178+ { target : 'x' , func : 'sum' } ,
179+ { target : 'y' , func : 'avg' }
180180 ]
181181 } ]
182182 } ] ) ;
0 commit comments