@@ -2,7 +2,7 @@ import {InternMap, cumsum, greatest, group, groupSort, max, min, rollup, sum} fr
22import { ascendingDefined , descendingDefined } from "../defined.js" ;
33import { withTip } from "../mark.js" ;
44import { maybeApplyInterval , maybeColumn , maybeZ , maybeZero } from "../options.js" ;
5- import { column , field , mid , one , range , valueof } from "../options.js" ;
5+ import { column , field , maybeValue , mid , one , range , valueof } from "../options.js" ;
66import { basic } from "./basic.js" ;
77import { exclusiveFacets } from "./exclusiveFacets.js" ;
88
@@ -87,7 +87,7 @@ function stack(x, y = one, kx, ky, {offset, order, reverse}, options) {
8787 return [
8888 basic ( options , ( data , facets , plotOptions ) => {
8989 ( { data, facets} = exclusiveFacets ( data , facets ) ) ;
90- const X = x == null ? undefined : setX ( maybeApplyInterval ( valueof ( data , x ) , plotOptions ?. [ kx ] ) ) ;
90+ const X = x == null ? undefined : setX ( maybeApplyInterval ( valueof ( data , maybeValue ( x ) . value ) , plotOptions ?. [ kx ] ) ) ;
9191 const Y = valueof ( data , y , Float64Array ) ;
9292 const Z = valueof ( data , z ) ;
9393 const compare = order && order ( data , X , Y , Z ) ;
0 commit comments