@@ -6,7 +6,7 @@ import {defined} from "./defined.js";
6
6
import { Dimensions } from "./dimensions.js" ;
7
7
import { facetTranslate , filterFacets , maybeFacet , facetReindex } from "./facet.js" ;
8
8
import { Legends , exposeLegends } from "./legends.js" ;
9
- import { arrayify , isDomainSort , isScaleOptions , map , maybeNamed , range , where , yes } from "./options.js" ;
9
+ import { arrayify , isDomainSort , isScaleOptions , map , maybeNamed , range , where } from "./options.js" ;
10
10
import { Scales , ScaleFunctions , autoScaleRange , exposeScales } from "./scales.js" ;
11
11
import { position , registry as scaleRegistry } from "./scales/index.js" ;
12
12
import { applyInlineStyles , maybeClassName , maybeClip , styles } from "./style.js" ;
@@ -514,7 +514,10 @@ export function plot(options = {}) {
514
514
}
515
515
516
516
// Initalize the scales and axes.
517
- const scaleDescriptors = Scales ( addScaleChannels ( channelsByScale , stateByMark ) , options ) ;
517
+ const scaleDescriptors = Scales (
518
+ addScaleChannels ( channelsByScale , stateByMark , ( scale ) => ! [ "fx" , "fy" ] . includes ( scale ) ) ,
519
+ options
520
+ ) ;
518
521
const scales = ScaleFunctions ( scaleDescriptors ) ;
519
522
const axes = Axes ( scaleDescriptors , options ) ;
520
523
const dimensions = Dimensions ( scaleDescriptors , axes , options ) ;
@@ -848,7 +851,7 @@ function inferChannelScale(channels) {
848
851
}
849
852
}
850
853
851
- function addScaleChannels ( channelsByScale , stateByMark , filter = yes ) {
854
+ function addScaleChannels ( channelsByScale , stateByMark , filter ) {
852
855
for ( const { channels} of stateByMark . values ( ) ) {
853
856
for ( const name in channels ) {
854
857
const channel = channels [ name ] ;
0 commit comments