@@ -22,7 +22,7 @@ describe('multiple transforms:', function() {
22
22
transforms : [ {
23
23
type : 'groupby' ,
24
24
groups : [ 'a' , 'a' , 'b' , 'a' , 'b' , 'b' , 'a' ] ,
25
- groupColors : { a : 'red' , b : 'blue' }
25
+ style : { a : { marker : { color : 'red' } } , b : { marker : { color : 'blue' } } }
26
26
} , {
27
27
type : 'filter' ,
28
28
operation : '>'
@@ -36,7 +36,7 @@ describe('multiple transforms:', function() {
36
36
transforms : [ {
37
37
type : 'groupby' ,
38
38
groups : [ 'b' , 'a' , 'b' , 'b' , 'b' , 'a' , 'a' ] ,
39
- groupColors : { a : 'green' , b : 'black' }
39
+ style : { a : { marker : { color : 'green' } } , b : { marker : { color : 'black' } } }
40
40
} , {
41
41
type : 'filter' ,
42
42
operation : '<' ,
@@ -126,7 +126,7 @@ describe('multiple transforms:', function() {
126
126
expect ( gd . _fullData [ 1 ] . marker . opacity ) . toEqual ( 1 ) ;
127
127
128
128
return Plotly . restyle ( gd , {
129
- 'transforms[0].groupColors ' : { a : 'green' , b : 'red' } ,
129
+ 'transforms[0].style ' : { a : { marker : { color : 'green' } } , b : { marker : { color : 'red' } } } ,
130
130
'marker.opacity' : 0.4
131
131
} ) ;
132
132
} ) . then ( function ( ) {
@@ -234,7 +234,7 @@ describe('multiple traces with transforms:', function() {
234
234
transforms : [ {
235
235
type : 'groupby' ,
236
236
groups : [ 'a' , 'a' , 'b' , 'a' , 'b' , 'b' , 'a' ] ,
237
- groupColors : { a : 'red' , b : 'blue' }
237
+ style : { a : { marker : { color : 'red' } } , b : { marker : { color : 'blue' } } }
238
238
} , {
239
239
type : 'filter' ,
240
240
operation : '>'
@@ -305,7 +305,7 @@ describe('multiple traces with transforms:', function() {
305
305
} ) ;
306
306
307
307
return Plotly . restyle ( gd , {
308
- 'transforms[0].groupColors ' : { a : 'green' , b : 'red' } ,
308
+ 'transforms[0].style ' : { a : { marker : { color : 'green' } } , b : { marker : { color : 'red' } } } ,
309
309
'marker.opacity' : [ 0.4 , 0.6 ]
310
310
} ) ;
311
311
} ) . then ( function ( ) {
0 commit comments