File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ impl GeomTrait for Bar {
3636 // translate it to 'size'.
3737 defaults : & [
3838 ( "pos1" , DefaultAestheticValue :: Dummy ) , // Optional - stat synthesises a dummy if omitted
39- ( "pos2" , DefaultAestheticValue :: Null ) , // Optional - stat computes count when omitted
39+ ( "pos2" , DefaultAestheticValue :: Null ) , // Optional - stat computes count when omitted
4040 ( "pos2end" , DefaultAestheticValue :: Delayed ) ,
4141 ( "weight" , DefaultAestheticValue :: Null ) ,
4242 ( "fill" , DefaultAestheticValue :: String ( "black" ) ) ,
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ fn detect_from_scales(
166166 Geom :: from_type( * geom) . aesthetics( ) . get( "pos1" ) ,
167167 Some ( DefaultAestheticValue :: Dummy )
168168 ) ;
169- if has_pos2 && !has_pos1 && ! ( pos1_is_dummy && ! has_pos1_mapping) {
169+ if has_pos2 && !has_pos1 && ( ! pos1_is_dummy || has_pos1_mapping) {
170170 return TRANSPOSED ;
171171 }
172172 if has_pos1 && !has_pos2 {
You can’t perform that action at this time.
0 commit comments