@@ -2,7 +2,7 @@ import {InternMap, cumsum, greatest, group, groupSort, max, min, rollup, sum} fr
2
2
import { ascendingDefined , descendingDefined } from "../defined.js" ;
3
3
import { withTip } from "../mark.js" ;
4
4
import { 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" ;
6
6
import { basic } from "./basic.js" ;
7
7
import { exclusiveFacets } from "./exclusiveFacets.js" ;
8
8
@@ -87,7 +87,7 @@ function stack(x, y = one, kx, ky, {offset, order, reverse}, options) {
87
87
return [
88
88
basic ( options , ( data , facets , plotOptions ) => {
89
89
( { 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 ] ) ) ;
91
91
const Y = valueof ( data , y , Float64Array ) ;
92
92
const Z = valueof ( data , z ) ;
93
93
const compare = order && order ( data , X , Y , Z ) ;
0 commit comments