Skip to content

Commit

Permalink
fix: correctly read default bandPosition
Browse files Browse the repository at this point in the history
  • Loading branch information
kanitw committed Oct 5, 2023
1 parent 0770130 commit 8097fab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/channeldef.ts
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ export function getBandPosition({
if (isFieldDef(fieldDef)) {
const {timeUnit, bin} = fieldDef;
if (timeUnit && !fieldDef2) {
return isRectBasedMark(mark.type) ? 0 : getMarkConfig('timeUnitBandPosition', mark, config);
return getMarkConfig('timeUnitBandPosition', mark, config);
} else if (isBinning(bin)) {
return 0.5;
}
Expand Down

0 comments on commit 8097fab

Please sign in to comment.